aspose file tools*
The moose likes Other Java Products and Servers and the fly likes ClassCastException During Deserialization (Callback) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "ClassCastException During Deserialization (Callback)" Watch "ClassCastException During Deserialization (Callback)" New topic
Author

ClassCastException During Deserialization (Callback)

Giridhar Pendyala
Greenhorn

Joined: Aug 16, 2002
Posts: 6
Hi,
I get this classcast exception when my server calls back client with some
object (CommonObject, which is serializable).
The server is an EJB running in Weblogic, and the client is a servlet running in
iPlanet.
It works fine when I pass the same object from client and server.
It complians with this exception when the server calls back the client with that
object.
Can anybody tell me what the problem could be? I have checked classpaths, jre
paths.
Both client and server seem to using the same JRE, same classes.
Exception at client (servlet on iPlanet):
java.lang.ClassCastException: CommonObject
at TestCallbackServlet.displayTime(TestCallbackServlet.java:75)
at TestCallbackServlet_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:257)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
If you need any other info abt the system, pls. do ask.
TIA,
Giri
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassCastException During Deserialization (Callback)