Postgresql version 9.4-1200-jdbc41 contains serious bug -> upgrade features to 9.4-1203-jdbc41

Description

The Postgresql version 9.4-1200-jdbc41 contains a bug

refer https://github.com/pgjdbc/pgjdbc/pull/257 and https://github.com/pgjdbc/pgjdbc/issues/258

2015-10-01 16:38:59,458 | ERROR | s4j.datasource]) | DbcpPooledDataSourceFactory | 121 - org.ops4j.pax.jdbc.pool.dbcp2 - 0.8.0.SNAPSHOT | Error creating pooled datasourcenull
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:459)
at java.util.Properties.setProperty(Properties.java:166)
at org.postgresql.ds.common.BaseDataSource.setProperty(BaseDataSource.java:1030)
at org.postgresql.ds.common.BaseDataSource.setUrl(BaseDataSource.java:964)
at org.postgresql.osgi.PGDataSourceFactory.configureBaseDataSource(PGDataSourceFactory.java:65)
.
.
.

Fix by updating the jdbc/pom.xml to 9.4-1203-jdbc41

<!--
<postgresql.version>9.4-1200-jdbc41</postgresql.version>
-->
<postgresql.version>9.4-1203-jdbc41</postgresql.version>

The following features were installed

feature:install scr
feature:install jpa/2.1.0
feature:install hibernate/4.3.6.Final
feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.8.0-SNAPSHOT/xml/features
feature:install transaction
feature:install pax-jdbc-postgresql
feature:install pax-jdbc-pool-dbcp2
feature:install pax-jdbc-config
service:list javax.sql.DataSource

org.ops4j.datasource-tasklist.cfg contained

osgi.jdbc.driver.name=PostgreSQL JDBC Driver-pool
url=jdbcostgresql://localhost:5432/blahblah
user=blahblah
password=blahblah
dataSourceName=tasklist

Environment

Karaf 4.0.1

Activity

Show:
Christian Schneider
January 8, 2016, 1:33 PM

Updated the postgres version

Assignee

Christian Schneider

Reporter

Tim Jones

Labels

Fix versions

Affects versions

Priority

Major
Configure