{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/issues/166","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/issues/166/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/issues/166/events","html_url":"https://github.com/spring-cloud/spring-cloud-stream-modules/issues/166","id":128590709,"number":166,"title":"PMML processor doesn't work","user":{"login":"sabbyanandan","id":1562654,"avatar_url":"https://avatars.githubusercontent.com/u/1562654?v=3","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},"labels":[{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/labels/in%20pr","name":"in pr","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"ericbottard","id":313494,"avatar_url":"https://avatars.githubusercontent.com/u/313494?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbottard","html_url":"https://github.com/ericbottard","followers_url":"https://api.github.com/users/ericbottard/followers","following_url":"https://api.github.com/users/ericbottard/following{/other_user}","gists_url":"https://api.github.com/users/ericbottard/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbottard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbottard/subscriptions","organizations_url":"https://api.github.com/users/ericbottard/orgs","repos_url":"https://api.github.com/users/ericbottard/repos","events_url":"https://api.github.com/users/ericbottard/events{/privacy}","received_events_url":"https://api.github.com/users/ericbottard/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/milestones/2","html_url":"https://github.com/spring-cloud/spring-cloud-stream-modules/milestones/M3","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/milestones/2/labels","id":1497938,"number":2,"title":"M3","description":"","creator":{"login":"sabbyanandan","id":1562654,"avatar_url":"https://avatars.githubusercontent.com/u/1562654?v=3","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},"open_issues":13,"closed_issues":4,"state":"open","created_at":"2016-01-11T18:05:41Z","updated_at":"2016-02-01T17:12:44Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-25T17:14:56Z","updated_at":"2016-02-02T22:54:03Z","closed_at":null,"body":"As a user, I'm trying to use `pmml` processor, but I'm getting an exception while consuming `json` from an upstream module and augmenting the payload with predicted outcomes. \r\n\r\n**stream:**\r\n```\r\nstream create --name pmml1 --definition \"http --server.port=9001 | pmml --modelName=iris-flower-classifier-1 --modelLocation=file:/Users/sanandan/Downloads/test.xml --inputs='Sepal.Length=sepalLength,Sepal.Width=sepalWidth,Petal.Length=petalLength,Petal.Width=petalWidth' --outputs='Predicted_Species=predictedSpecies' --inputType='application/json' | log\" --deploy\r\n```\r\n**post:**\r\n```\r\nhttp post --target http://localhost:9001 --contentType application/json --data \"{ \\\"sepalLength\\\": 6.4, \\\"sepalWidth\\\": 3.2, \\\"petalLength\\\":4.5, \\\"petalWidth\\\":1.5 }\"\r\n```\r\n\r\n**error:**\r\n```\r\nCaused by: org.springframework.expression.spel.SpelEvaluationException: EL1010E:(pos 8): Property or field 'Species' cannot be set on object of type 'java.lang.String' - maybe not public?\r\n\tat org.springframework.expression.spel.ast.PropertyOrFieldReference.writeProperty(PropertyOrFieldReference.java:270) ~[spring-expression-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]\r\n\tat org.springframework.expression.spel.ast.PropertyOrFieldReference.access$300(PropertyOrFieldReference.java:46) ~[spring-expression-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]\r\n\tat org.springframework.expression.spel.ast.PropertyOrFieldReference$AccessorLValue.setValue(PropertyOrFieldReference.java:384) ~[spring-expression-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]\r\n\tat org.springframework.expression.spel.ast.CompoundExpression.setValue(CompoundExpression.java:95) ~[spring-expression-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]\r\n\tat org.springframework.expression.spel.standard.SpelExpression.setValue(SpelExpression.java:422) ~[spring-expression-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]\r\n\tat org.springframework.cloud.stream.module.pmml.processor.PmmlProcessor.evaluate(PmmlProcessor.java:130) ~[pmml-processor-1.0.0.BUILD-SNAPSHOT-exec.jar!/:1.0.0.BUILD-SNAPSHOT]\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/issues/comments/178873480","html_url":"https://github.com/spring-cloud/spring-cloud-stream-modules/issues/166#issuecomment-178873480","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream-modules/issues/166","id":178873480,"user":{"login":"markpollack","id":247466,"avatar_url":"https://avatars.githubusercontent.com/u/247466?v=3","gravatar_id":"","url":"https://api.github.com/users/markpollack","html_url":"https://github.com/markpollack","followers_url":"https://api.github.com/users/markpollack/followers","following_url":"https://api.github.com/users/markpollack/following{/other_user}","gists_url":"https://api.github.com/users/markpollack/gists{/gist_id}","starred_url":"https://api.github.com/users/markpollack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markpollack/subscriptions","organizations_url":"https://api.github.com/users/markpollack/orgs","repos_url":"https://api.github.com/users/markpollack/repos","events_url":"https://api.github.com/users/markpollack/events{/privacy}","received_events_url":"https://api.github.com/users/markpollack/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T22:54:03Z","updated_at":"2016-02-02T22:54:03Z","body":"I could not have picked up the right snapshot, but with changing TupleBuilder.tuple() to be the immutable tuple, I think it is resulting in the same error.  The IT tests pass, but those don't look to take any --inputType convertion into account.  Need to investigate more."}}