tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Deconinck <vincent.deconi...@cplus.be>
Subject Session serialization broken ?
Date Fri, 06 Oct 2000 13:02:31 GMT
	I'm using Tomcat 3.2beta4, and my application is session-intensive.
	As you might remember
(http://www.metronet.com/~wjm/tomcat/FromFeb11/msg03664.html), I'm
particularly interested in storing and getting back objects of my own
classes in the session.
	In 3.2beta4, automatic servlet reloading don't throw
ClassCastExceptions anymore, but in some cases, I encounter the
following Exception on the first call after servlet reloading occured,
which I don't quite understand...

	Can I do something about it or is it a bug ?

	Any help is greatly appreciated.


		Vincent.


Error: 500

Location: <myservlet>

Internal Servlet Error:

java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionEvent
        at java.lang.Class.getField0(Native Method)
        at java.lang.Class.getDeclaredField(Class.java:1065)
        at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:249)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.(ObjectStreamClass.java:241)
        at
java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:111)
        at
java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:481)
        at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:785)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:353)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:978)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at java.util.Hashtable.readObject(Hashtable.java:773)
        at java.lang.reflect.Method.invoke(Native Method)
        at
java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:1685)
        at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1165)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at
org.apache.tomcat.session.StandardSession.readObject(StandardSession.java:759)
        at java.lang.reflect.Method.invoke(Native Method)
        at
java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:1685)
        at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1165)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at java.util.Hashtable.readObject(Hashtable.java:773)
        at java.lang.reflect.Method.invoke(Native Method)
        at
java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:1685)
        at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1165)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at
org.apache.tomcat.session.SessionSerializer.doSerialization(SessionSerializer.java:105)
        at
org.apache.tomcat.session.StandardManager.handleReload(StandardManager.java:384)
        at
org.apache.tomcat.session.StandardSessionInterceptor.reload(StandardSessionInterceptor.java:149)
        at
org.apache.tomcat.core.ContextManager.doReload(ContextManager.java,
Compiled Code)
        at
org.apache.tomcat.core.ServletWrapper.handleReload(ServletWrapper.java:416)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:336)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)

-- 
Vincent Deconinck - mailto:vincent.deconinck@cplus.be
CANAL+ Belgique                  Informatique Antenne

Mime
View raw message