File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
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)
 
Similar Threads
JNI Probelm with Oracle iPlanet 7.0.9 Web Server
Callback Servlet from EJB
ClassCastException During Deserialization (Callback)
Callback Servlet from EJB
MarshalException problems