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

Assignee

Benjamin Graf

Reporter

Andre Schlegel

Labels

None

Fix versions

Affects versions

Priority

Major
Configure