You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/08/07 14:02:45 UTC

[Bug 55357] Cannot deserialize session when it contains Externalizable objects (using PersistentManager)

https://issues.apache.org/bugzilla/show_bug.cgi?id=55357

maxime.falaize@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from maxime.falaize@gmail.com ---
My workaround to make it working is to add
Thread.currentThread().setContextClassLoader(classLoader) in the JDBCStore
(between line 644 and 645 in method load(String):Session) :

if (classLoader != null)
   Thread.currentThread().setContextClassLoader(classLoader);
   ois = new CustomObjectInputStream(bis, classLoader);
} else {
   ois = new ObjectInputStream(bis);
}

Maybe add a try catch to catch the SecurityException thrown by the
setContextClassLoader method.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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