{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/issues/6","repository_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform","labels_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/issues/6/comments","events_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/issues/6/events","html_url":"https://github.com/spring-cloud-stream-app-starters/transform/issues/6","id":375936170,"node_id":"MDU6SXNzdWUzNzU5MzYxNzA=","number":6,"title":"Spring Cloud Consumer argument payload is always getting byte array object.","user":{"login":"suresh-chidham","id":29041520,"node_id":"MDQ6VXNlcjI5MDQxNTIw","avatar_url":"https://avatars0.githubusercontent.com/u/29041520?v=4","gravatar_id":"","url":"https://api.github.com/users/suresh-chidham","html_url":"https://github.com/suresh-chidham","followers_url":"https://api.github.com/users/suresh-chidham/followers","following_url":"https://api.github.com/users/suresh-chidham/following{/other_user}","gists_url":"https://api.github.com/users/suresh-chidham/gists{/gist_id}","starred_url":"https://api.github.com/users/suresh-chidham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suresh-chidham/subscriptions","organizations_url":"https://api.github.com/users/suresh-chidham/orgs","repos_url":"https://api.github.com/users/suresh-chidham/repos","events_url":"https://api.github.com/users/suresh-chidham/events{/privacy}","received_events_url":"https://api.github.com/users/suresh-chidham/received_events","type":"User","site_admin":false},"labels":[{"id":1126380660,"node_id":"MDU6TGFiZWwxMTI2MzgwNjYw","url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/labels/ready","name":"ready","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-31T12:21:50Z","updated_at":"2018-11-26T13:49:13Z","closed_at":"2018-11-26T13:49:13Z","author_association":"NONE","body":"I have created testprocessor app using spring cloud stream 2.0.\r\nCreated the sample stream\r\nstream create TEST1 --definition \"http --server.port=8888  | testprocessor  | uploader --spring.cloud.stream.bindings.input.contentType='text/plain1' \" \r\n\r\nDeployed in Spring cloud local server.\r\n\r\ntestprocessor app's method signature is \r\n@StreamListener(Processor.INPUT)\r\n\t@SendTo(Processor.OUTPUT)\r\n\tpublic String transform(Object payload)\r\n\r\nIn application.properties of this app, i have configured below\r\nspring.cloud.stream.bindings.input.content-type=application/json\r\nspring.cloud.stream.bindings.output.content-type=application/json\r\n\r\nSample input data:\r\nhttp post --contentType 'application/json' --data '{\"isbn\": \"1599869772\", \"title\": \"The Art of War\", \"author\": \"Sun Tzu\"}' --target http://localhost:8888\r\n\r\nWhen i post above sample data, i am always getting Object payload is byte[] object like [B@5b2ff6e7 but not getting actual JSON String. \r\nPlease can you help on this issue?\r\n\r\nNote: If i build same testprocessor app using spring cloud stream 1.3.1 version. It is working fine. I am getting JSON string.  Why it is not working using spring cloud stream 2.0.1 "},"comment":{"url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/issues/comments/441644842","html_url":"https://github.com/spring-cloud-stream-app-starters/transform/issues/6#issuecomment-441644842","issue_url":"https://api.github.com/repos/spring-cloud-stream-app-starters/transform/issues/6","id":441644842,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTY0NDg0Mg==","user":{"login":"sabbyanandan","id":1562654,"node_id":"MDQ6VXNlcjE1NjI2NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1562654?v=4","gravatar_id":"","url":"https://api.github.com/users/sabbyanandan","html_url":"https://github.com/sabbyanandan","followers_url":"https://api.github.com/users/sabbyanandan/followers","following_url":"https://api.github.com/users/sabbyanandan/following{/other_user}","gists_url":"https://api.github.com/users/sabbyanandan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabbyanandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabbyanandan/subscriptions","organizations_url":"https://api.github.com/users/sabbyanandan/orgs","repos_url":"https://api.github.com/users/sabbyanandan/repos","events_url":"https://api.github.com/users/sabbyanandan/events{/privacy}","received_events_url":"https://api.github.com/users/sabbyanandan/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T13:49:13Z","updated_at":"2018-11-26T13:49:13Z","author_association":"CONTRIBUTOR","body":"We have addressed this problem in SCSt Elmhurst.SR2 and as well in all the associated Apps including the `transform` processor. \r\n\r\n@suresh-chidham: please retry it on [Darwin.SR3](https://docs.spring.io/spring-cloud-stream-app-starters/docs/Darwin.SR3/reference/htmlsingle/) apps - we have new bit.ly links, too. If you're building a custom app, you'd have to be on Elmhurst.SR2 foundation and set the content-type to `text/plain` - see [here](https://github.com/spring-cloud-stream-app-starters/transform/commit/87fe62ff6d2d7f6f3ba2d506e1ed9d3994739f52).\r\n\r\nFeel free to open a new issue if you see any other anomaly."}}
{"actor":{"display_login":"sabbyanandan"}}