{"action":"created","issue":{"url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/issues/15","labels_url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/issues/15/comments","events_url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/issues/15/events","html_url":"https://github.com/IBMStreams/streamsx.jdbc/issues/15","id":121612355,"number":15,"title":"Null values passed to attributes","user":{"login":"chanskw","id":5995019,"avatar_url":"https://avatars.githubusercontent.com/u/5995019?v=3","gravatar_id":"","url":"https://api.github.com/users/chanskw","html_url":"https://github.com/chanskw","followers_url":"https://api.github.com/users/chanskw/followers","following_url":"https://api.github.com/users/chanskw/following{/other_user}","gists_url":"https://api.github.com/users/chanskw/gists{/gist_id}","starred_url":"https://api.github.com/users/chanskw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanskw/subscriptions","organizations_url":"https://api.github.com/users/chanskw/orgs","repos_url":"https://api.github.com/users/chanskw/repos","events_url":"https://api.github.com/users/chanskw/events{/privacy}","received_events_url":"https://api.github.com/users/chanskw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"yiminy","id":15835198,"avatar_url":"https://avatars.githubusercontent.com/u/15835198?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminy","html_url":"https://github.com/yiminy","followers_url":"https://api.github.com/users/yiminy/followers","following_url":"https://api.github.com/users/yiminy/following{/other_user}","gists_url":"https://api.github.com/users/yiminy/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminy/subscriptions","organizations_url":"https://api.github.com/users/yiminy/orgs","repos_url":"https://api.github.com/users/yiminy/repos","events_url":"https://api.github.com/users/yiminy/events{/privacy}","received_events_url":"https://api.github.com/users/yiminy/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-11T01:00:27Z","updated_at":"2015-12-11T03:58:29Z","closed_at":null,"body":"We don't seem to be handling null correctly.\r\nThe database may have empty values, and we are passing null values into the tuple attribute.  I got the following exception:\r\nException in thread \"Thread-14\" java.lang.IllegalArgumentException: Null attribute value passed for index '4\r\n\tat com.ibm.streams.operator.internal.object.ObjectOutputTuple.nullAttribute(ObjectOutputTuple.java:232)\r\n\tat com.ibm.streams.operator.internal.object.ObjectOutputTuple.setString(ObjectOutputTuple.java:155)\r\n\tat com.ibm.streams.operator.internal.object.ObjectOutputTuple.setString(ObjectOutputTuple.java:196)\r\n\tat com.ibm.streamsx.jdbc.JDBCRun.submitOutputTuple(JDBCRun.java:596)\r\n\tat com.ibm.streamsx.jdbc.JDBCRun.processTuple(JDBCRun.java:462)\r\n\tat com.ibm.streamsx.jdbc.AbstractJDBCOperator.process(AbstractJDBCOperator.java:277)\r\n\tat com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.processTuple(OperatorAdapter.java:1465)\r\n\tat com.ibm.streams.operator.internal.runtime.api.OperatorAdapter$1.tuple(OperatorAdapter.java:803)\r\n\tat com.ibm.streams.operator.internal.runtime.api.OperatorAdapter$1.tuple(OperatorAdapter.java:796)\r\n\tat com.ibm.streams.operator.internal.network.DeserializingStream.tuple(DeserializingStream.java:76)\r\n\tat com.ibm.streams.operator.internal.network.DeserializingStream.processRawTuple(DeserializingStream.java:65)\r\n\tat com.ibm.streams.operator.internal.runtime.api.InputPortsConduit.processRawTuple(InputPortsConduit.java:100)\r\n\tat com.ibm.streams.operator.internal.jni.JNIBridge.process(JNIBridge.java:316)"},"comment":{"url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/issues/comments/163833481","html_url":"https://github.com/IBMStreams/streamsx.jdbc/issues/15#issuecomment-163833481","issue_url":"https://api.github.com/repos/IBMStreams/streamsx.jdbc/issues/15","id":163833481,"user":{"login":"yiminy","id":15835198,"avatar_url":"https://avatars.githubusercontent.com/u/15835198?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminy","html_url":"https://github.com/yiminy","followers_url":"https://api.github.com/users/yiminy/followers","following_url":"https://api.github.com/users/yiminy/following{/other_user}","gists_url":"https://api.github.com/users/yiminy/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminy/subscriptions","organizations_url":"https://api.github.com/users/yiminy/orgs","repos_url":"https://api.github.com/users/yiminy/repos","events_url":"https://api.github.com/users/yiminy/events{/privacy}","received_events_url":"https://api.github.com/users/yiminy/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T03:58:29Z","updated_at":"2015-12-11T03:58:29Z","body":"Fixed. If it is a null value from resultset, it will not pass into tuple attribute."}}