I think it is a string of comma separated list of colon separated key value pairs. Have to confirm it from the setter code or its documentation though. On Jan 8, 2016 12:49 AM, "Priyanka Gugale" <[email protected]> wrote:
> Hi, > > I am trying to write an application using JdbcPOJOInputOperator, for this I > am using JDBCStore. > JDBCStore has property named "connectionProperties". There are two setter > methods for same properties. One accepts String and other Properties > object. > > When I set connectionProperties as string from config file, it throws an > exception saying it expects "Properties" object. > Exception: > > > *java.lang.IllegalArgumentException: Cannot invoke > com.datatorrent.lib.db.jdbc.JdbcStore.setConnectionProperties on bean class > 'class com.datatorrent.lib.db.jdbc.JdbcStore' - argument type mismatch - > had objects of type "java.lang.String" but expected signature > "java.util.Properties"* > > I updated malhar code to hide setter which accepts Properties object, then > also String setter isn't invoked, I am getting connection exceptions as > connectionProperties are not set. > > Any idea about this? > > -Priyanka >
