Use of the DB2 Universal JDBC Driver Provider with a version 4 data source results in a NullPointerException
 Technote (troubleshooting)
 
Problem(Abstract)
If you create a Data Source (Version 4) data source on a DB2® Universal JDBC™ Driver Provider to connect to a DB2 v8.1 database, attempting to establish the connection fails with a java.lang.NullPointerException. The DB2 Universal JDBC Driver uses the DB2 JCC driver (type 4), which is contained in the db2jcc.jar.
 
Cause
The full text of the error message follows:

DataSourceCon E DSRA8040I: Failed to connect to the DataSource. Encountered :
java.lang.NullPointerException
at com.ibm.ws.management.DataSourceConfigHelperMBean.extractWCCMCommonInfo(DataSourceConfigHelperMBean.java:598)
at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnection(DataSourceConfigHelperMBean.java:363)

 
Resolving the problem
Use the DB2 Legacy CLI-based Type 2 JDBC Driver for Data Sources (Version 4) data source. This uses the DB2 JDBC App Driver (Type 2 CLI Driver) contained in the db2java.zip.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java 2 Connectivity (J2C)
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1116117
IBM Group: Software Group
Modified date: Jul 29, 2004