Did you change your bean recently? It sounds like your remotes are out of
date. Ensure you remotes on the client side match up properly.  Also ensure
any Serialiazable classes you pass via method calls are not updated in only
the client of server.  This error normally happens when you either try to
cast the wrong object (I.e. in Collections this can happen easily if you are
not careful) and serialized objects (when the new class doesn't match up to
the old one).  These will compile fine, but break during runtime.

Without any other information, this is all I can add. 

Hope this helps.

Greg

-----Original Message-----
From: Tim Joyce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 4:16 AM
To: Orion-Interest
Subject: ClassCastException in generated code


Hi,

I am getting a rather nasty ClassCastException when i try and remove a
many-to-many join (implemented like the MovieDatabase example). My question
is how do i go about debugging this? Is it possible to get access to the
generated .java files?

Thanks in advance for any advice

stack traces follow (sorry)

cheers

timj


com.evermind.server.rmi.OrionRemoteException: java.lang.ClassCastException:
ProductJoin_EntityBeanWrapper853
at com.evermind.server.ejb.EJBUtils.getUserException(.:199)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1805)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
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:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)

Nested exception is:
java.lang.ClassCastException: ProductJoin_EntityBeanWrapper853
at
ProductJoinHome_EntityHomeWrapper1381.remove(ProductJoinHome_EntityHomeWrapp
er1381.java:16)
at com.mywds.ejb.entity.EntityProductBean.removeBrand(Unknown Source)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1791)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
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:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)  

Reply via email to