You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/01 22:55:51 UTC

[jira] [Commented] (APEXMALHAR-2239) Null pointer exception in JDBCPojoInputOperator is thrown when we set a query to fetch rows and have additional columns in fieldInfos

    [ https://issues.apache.org/jira/browse/APEXMALHAR-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15849066#comment-15849066 ] 

ASF GitHub Bot commented on APEXMALHAR-2239:
--------------------------------------------

GitHub user d9liang opened a pull request:

    https://github.com/apache/apex-malhar/pull/546

    APEXMALHAR-2239 Handle Null pointer exception in JDBCPojoInputOperator

    This is to handle the exception when we set a query to fetch rows and have additional columns in fieldInfos.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/d9liang/apex-malhar APEXMALHAR-2239

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/apex-malhar/pull/546.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #546
    
----
commit 9a0c73e26753586afb0dd7f28d96251a89eace47
Author: Dongming Liang <d9...@apache.org>
Date:   2017-01-25T15:53:19Z

    testing

commit bc50629fa76eae5fe67e8ce2c68d3cdd15c06644
Author: Dongming Liang <d9...@apache.org>
Date:   2017-01-27T16:43:47Z

    Merge remote-tracking branch 'upstream/master' into APEXMALHAR-2239

commit 9f144059fc6b138b379f43e1525103868093b8e9
Author: Dongming Liang <d9...@apache.org>
Date:   2017-02-01T22:49:53Z

    Add Exception for Extra Field Error

----


> Null pointer exception in JDBCPojoInputOperator is thrown when we set a query to fetch rows and have additional columns in fieldInfos
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 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
>         Attachments: testJdbcPojoInputOperator.txt
>
>
> 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.15#6346)