"java.io.InvalidClassException: com.ibm.ejs.csi.SessionHandle; Local class not compatible" seen in WebSphere Application Server 4.0.3 or higher
 Technote (FAQ)
 
Problem
After upgrading from WebSphere® Application Server 4.0.2 (or earlier) to a later fix pack, when an ejbHandle is serialized for persistence and then deserialized to retrieve the ejbHandle, the following exception is issued:

java.io.InvalidClassException: com.ibm.ejs.csi.SessionHandle; Local class not compatible: stream classdesc
serialVersionUID=-8306538725233355912 local class
serialVersionUID=-8306435371140344968
at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:565)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:609)
...
 
Cause
This is due to a change in the JDK™ that shipped with WebSphere 4.0.3 and later. The problem did not occur with the JDK that shipped with WebSphere 4.0.2 and earlier.
 
Solution
The solution to the problem is to specify a JVM command line argument -Dfile.encoding=ISO8859_1 as follows:

In WebSphere 4.0.x AE,
  1. Start the Administrative Server and open the administrative console.
  2. Expand Nodes, the node name, Application Servers, and the Application Server name.
  3. Select JVM Settings.
  4. Click Add next to System Properties.
  5. For the Name field, type -Dfile.encoding and for the Value, type ISO8859_1.
  6. Click Apply.
  7. Restart the Application Server.

In WebSphere 4.0.x AEs, follow these steps:
  1. Start the server and open the administrative console.
  2. Expand Nodes, the node name, Application Servers, the server name, and Process Definition.
  3. Select JVM Settings.
  4. Scroll down and click System Properties.
  5. Click New.
  6. For the Name, type -Dfile.encoding and for the Value, type ISO8859_1.
  7. Click OK and save the configuration.
  8. Restart the server.
 
 
 


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.7
Software edition:
Reference #: 1116942
IBM Group: Software Group
Modified date: Sep 7, 2004