[
https://issues.apache.org/jira/browse/APEXMALHAR-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Priyanka Gugale resolved APEXMALHAR-2330.
-----------------------------------------
Resolution: Fixed
Fix Version/s: 3.7.0
> JdbcPOJOPollInputOperator fails with NullPointerException when PostgreSQL
> driver
> --------------------------------------------------------------------------------
>
> Key: APEXMALHAR-2330
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2330
> Project: Apache Apex Malhar
> Issue Type: Bug
> Reporter: Deepak Narkhede
> Assignee: Deepak Narkhede
> Fix For: 3.7.0
>
>
> Here is the description:
> Problem:
> JdbcPOJOPollInputOperator fails with NullPointerException when PostgreSQL
> driver.
> Problem Description:
> 1) When JdbcPOJOPollInputOperator tries to populateColumnDataTypes, column
> names retrieved from resultmetadata from database ( this case : Postgres) are
> all lowercase.
> 2) Whereas columnDatatypes specified in fieldinfos might be in same case.
> 3) Internally hashmap ( nameToType) is used which mismatches if column name
> and fieldinfo are not in same case. Hence columnDataTypes is empty which
> causes null exception in activate call.
> Proposed Solution:
> Using similar case for hashmap and column names irrespective of any database
> used for JdbcPOJOPollInputOperator.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)