NPE on oracle thin client with TNS key-value syntax in jdbc url

Description

I have karaf 4.2.6 with pax-jdbc 1.3.5, pax-jdbc-oracle and using Oracle JDBC Driver Version 6 (ojdbc6.jar; also testet with ojdbc8.jar).

If I create a new datasource and using the TNS key-value syntax for the oracle thin driver I got an NPE.

I have used this syntax in an older version without any problem. So I have checked the history of the class (https://github.com/ops4j/org.ops4j.pax.jdbc/blob/master/pax-jdbc-config/src/main/java/org/ops4j/pax/jdbc/config/impl/DataSourceConfigManager.java). It seems to me, that the change from the issue causes the problem.

I have no problems if I'm using the simple syntax.

See also: https://docs.oracle.com/cd/B28359_01/java.111/b31224/jdbcthin.htm

Environment

Karaf 4.2.6

Activity

Show:
Grzegorz Grzybek
September 26, 2019, 12:24 PM

may I assign to you?

Benjamin Graf
September 26, 2019, 12:27 PM

Sure

Grzegorz Grzybek
September 27, 2019, 9:28 AM

PR merged. I can release next week, ok?

Benjamin Graf
September 28, 2019, 5:40 AM

Release next week is fine to me.

Assignee

Benjamin Graf

Reporter

Andre Schlegel-Tylla

Labels

None

Fix versions

Affects versions

Priority

Major
Configure