Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassCastException During Deserialization (Callback)  RSS feed

 
Giridhar Pendyala
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!