tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36113] - Session persistence for objects with primitive types
Date Thu, 08 Sep 2005 08:32:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36113>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36113





------- Additional Comments From marcus.haarmann@midoco.de  2005-09-08 10:32 -------
Hi, I tried to reproduce the problem using a simple program but I did fail 
(boolean seems to get converted to java.lang.Boolean in any case I tried).
The problem is occurring using a third party library and I am not sure what 
these guys are doing to contain primitive types in the session. This 
application does not work without a very big environment, so it is not possible 
for me to provide a war to test the behaviour.

The proble also occurs in Replication, where the same bug exists.

See the stack trace (from 5.5.9, builtin in JBoss):
08.09.2005 09:46:59.724 titan ERROR - ClassNotFoundException while loading 
persisted sessions: java.lang.ClassNotFoundException: boolean
java.lang.ClassNotFoundException: boolean
	at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1332)
	at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1181)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:242)
	at org.apache.catalina.util.CustomObjectInputStream.resolveClass
(CustomObjectInputStream.java:73)
	at java.io.ObjectInputStream.readNonProxyDesc
(ObjectInputStream.java:1538)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
	at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1427)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1282)
	at java.io.ObjectInputStream.defaultReadFields
(ObjectInputStream.java:1912)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
	at java.util.LinkedList.readObject(LinkedList.java:776)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at java.io.ObjectStreamClass.invokeReadObject
(ObjectStreamClass.java:919)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.defaultReadFields
(ObjectInputStream.java:1912)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
	at java.util.ArrayList.readObject(ArrayList.java:587)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at java.io.ObjectStreamClass.invokeReadObject
(ObjectStreamClass.java:919)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.defaultReadFields
(ObjectInputStream.java:1912)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
	at java.util.ArrayList.readObject(ArrayList.java:587)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at java.io.ObjectStreamClass.invokeReadObject
(ObjectStreamClass.java:919)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.defaultReadFields
(ObjectInputStream.java:1912)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.defaultReadFields
(ObjectInputStream.java:1912)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
	at java.io.ObjectInputStream.readOrdinaryObject
(ObjectInputStream.java:1713)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
	at java.util.ArrayList.readObject(ArrayList.java:587)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25) 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message