Websphere Liberty password consumer java.lang.NullPointerException

Document ID : KB000004539
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Using Websphere Liberty with an Oracle password consumer. PUPMAgent_Trace.log shows the password being returned correctly, but a connection is not made with the following in the Websphere Liberty console.log 

[ERROR ] J2CA0046E: Method createManagedConnectionWithMCWrapper caught an exception during creation of the ManagedConnection for resource jdbc/myoracle, throwing ResourceAllocationException. Original exception: <=================================>Exception Message -> null 

java.lang.NullPointerException 

Cause:

In you server.xml the following was used: 

CAJDBCPropertyRealDataSourceClass 

Resolution:

It should be: 

CAJDBCPropertyRealDatasourceClass

Note the lower case s in source.