NullPointerException issued when optimistic locking is enabled for an entity bean in WebSphere Application Server 4.0.x
 Technote (FAQ)
 
Problem
When optimistic locking is enabled for an entity bean, a transaction might roll back due to the issuance of the following exception being thrown:

com.ibm.websphere.cpi.CPIException: java.lang.NullPointerException;
nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at java.lang.reflect.Method.invoke(Native Method)
at
com.ibm.ejs.persistence.EJSJDBCPersister.getDataFromCache(EJSJDBCPersister.java:647)...
 
Solution
This is a known problem that was caused by a defect in the EJB™ deploy tool.

The easiest way to solve the problem is to upgrade to WebSphere® 4.0.5 (or higher) and regenerate the deploy code for the EJBs.

If the code is generated with WebSphere Studio Application Developer, apply Interim Fix JR17508, then regenerate the deploy code. After regenerating the code, re-install the EJB in WebSphere Application Server.

The problem no longer occurs.

 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > EJB Container
Operating system(s): HP-UX
Software version: 4.0
Software edition:
Reference #: 1081427
IBM Group: Software Group
Modified date: Aug 30, 2004