[
https://issues.apache.org/jira/browse/APEXMALHAR-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15805310#comment-15805310
]
venkatesh commented on APEXMALHAR-2239:
---------------------------------------
[~d9liang] I don't have a test case but the way to replicate the issue is by
providing field names in the properties that do not match with the column names
of the table.
Expected result is to throw Exception which indicates the fieldnames provided
in the property do not match with the column names of the btable.
> Null pointer exception in JDBCPojoInputOperator when the field names do not
> match in Pojo, table
> ------------------------------------------------------------------------------------------------
>
> Key: APEXMALHAR-2239
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2239
> Project: Apache Apex Malhar
> Issue Type: Bug
> Affects Versions: 3.5.0
> Reporter: Venkatesh Kottapalli
> Assignee: Dongming Liang
> Priority: Minor
>
> The following exception is thrown in JDBCPojoInputOperator when the field
> names for the table provided in the FieldInfo mapping don't match with the
> column names of the table.
> Exception:
> Abandoning deployment due to setup failure. java.lang.NullPointerException
> at
> com.datatorrent.lib.db.jdbc.JdbcPOJOInputOperator.activate(JdbcPOJOInputOperator.java:366)
> at
> com.datatorrent.lib.db.jdbc.JdbcPOJOInputOperator.activate(JdbcPOJOInputOperator.java:67)
> at com.datatorrent.stram.engine.Node.activate(Node.java:619)
> at
> com.datatorrent.stram.engine.StreamingContainer.setupNode(StreamingContainer.java:1336)
> at
> com.datatorrent.stram.engine.StreamingContainer.access$100(StreamingContainer.java:130)
> at
> com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContainer.java:1388)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)