No setter in class com.ibm.db2.jcc.DB2SimpleDataSource for property url

Description

Using pax-jdbc-db2 data source factory to create data source in Karaf fails on this error:

Caused by: java.lang.IllegalArgumentException: Error setting property url:No setter in class com.ibm.db2.jcc.DB2SimpleDataSource for property url
at org.ops4j.pax.jdbc.common.BeanConfig.trySetProperty(BeanConfig.java:107) ~[?:?]
at org.ops4j.pax.jdbc.common.BeanConfig.configure(BeanConfig.java:80) ~[?:?]
at org.ops4j.pax.jdbc.common.BeanConfig.configure(BeanConfig.java:66) ~[?:?]
at org.ops4j.pax.jdbc.db2.impl.DB2DataSourceFactory.create(DB2DataSourceFactory.java:72) ~[?:?]
... 28 more

Environment

None

Activity

Show:
Jiří Ondrušek
May 13, 2019, 11:53 AM
Edited
Grzegorz Grzybek
May 30, 2019, 12:57 PM
Edited

Fixed here.

Grzegorz Grzybek
October 23, 2019, 2:10 PM

Reopening, because "portNumber" property is not extracted correctly. It is extracted by calling java.net.URI#getPort() which returns int, and it won't propagate, because org.ops4j.pax.jdbc.common.BeanConfig#configure() calls java.util.Properties#stringPropertyNames() which skips non-string values.

Grzegorz Grzybek
October 23, 2019, 2:18 PM

Fixed here. Will be included in 1.4.3 release.

Assignee

Grzegorz Grzybek

Reporter

Jiří Ondrušek

Labels

None

Fix versions

Affects versions

Priority

Major
Configure