APAR status
Closed as program error.
Error description
NullPointerException from setString or setBytes.
External Symptoms:
The SystemOut.log shows an error
■1/15/04 22:38:34:846 EST 609d29ad SystemOut O Error:
Unexpected SQLException:java.lang.NullPointerException
.
If this error occurs on an EJB finder method, it may also contai
n a message like this one
■1/15/04 22:38:34:846 EST 609d29ad SystemOut O Method
ejbFindByPrimaryKey() of class EmployeeBMPBean failed!!!
.
The SystemErr.log contains a java.lang.NullPointerException
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R
java.lang.NullPointerException
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R at
com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.setString(WSJd
bcPreparedStatement.java:1178)
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R at
com.ibm.db2.jcc.sqlj.g.setString(g.java:1282)
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R at
com.db2int.ejbbmp.EmployeeBMPBean.ejbFindByPrimaryKey(EmployeeBM
PBean.sqlj:401)
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R at
com.db2int.ejbbmp.EJSBMPEmployeeBMPHomeBean_c392fcf1.findByPrima
ryKey_Local(EJSBMPEmployeeBMPHomeBean_c392fcf1.java:89)
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R at
com.db2int.ejbbmp.EJSLocalBMPEmployeeBMPHome_c392fcf1.findByPrim
aryKey(EJSLocalBMPEmployeeBMPHome_c392fcf1.java:101)
■1/15/04 22:38:34:846 EST 609d29ad SystemErr R at
com.db2int.ejbbmp.AccessEmployeeBMPBean.getEmployeeInfo(AccessEm
ployeeBMPBean.sqlj:189)
.
This corresponds to cmvc defect 185408.
Local fix
None. Fix is included in WAS 5.0.2.4 and 5.1.0.1
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of JDBC *
* DataSources *
****************************************************************
* PROBLEM DESCRIPTION: NullPointerException from *
* WSJccConnection when the internal *
* helper class is not set. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
The Internal DataStoreHelper was not set in WSJccConnection,
resulting in a NullPointerException when the application calls
setString or SetBytes on a CallableStatement.
Problem conclusion
Called setInternalHelper before setString or setBytes can
cause the NullPointerException.
Temporary fix Comments
APAR information |
APAR number |
PQ83303 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
10W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-01-15 |
Closed date |
2004-03-22 |
Last modified date |
2004-12-02 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|