Tuesday, January 27, 2009

PROBLEM:SEVERE: IOException while loading persisted sessions: java.io.InvalidClassException: org.exoplatform.services.wsrp2.consumer.impl.helpers.UserSessionImpl; no valid constructorjava.io.InvalidClassException: org.exoplatform.services.wsrp2.consumer.impl.helpers.UserSessionImpl; no valid constructor at java.io.ObjectStreamClass.(ObjectStreamClass.java:455) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1439)...

SOLUTION:Author: G R (http://www.jguru.com/guru/viewbio.jsp?EID=999272), Sep 14, 2002Just wanted to correct that if the super class does not have a no argument constructor, then following exception is thrown when you try to deserialize the class. java.io.InvalidClassException: no valid constructor