This content has been marked as final.
Show 3 replies
-
1. Re: serialization issue
murtuza52 Jun 30, 2005 3:10 PM (in response to doofus)I have similar problem can anyone show what is the problem. On my side i cannot run the client even then i restart the application server. The error thrown is
java.lang.RuntimeException: java.io.InvalidClassException: com.kt.inventory.entity.bean.Category; local class incompatible: stream classdesc serialVersionUID = 7532859717847406178, local class serialVersionUID = -2072288254546005124 at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:213) at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:179) at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
-
2. Re: serialization issue
bill.burke Jun 30, 2005 3:17 PM (in response to doofus)So, you are allocating an instance of Category on the client and passing it as an argument to the server?
My guess is the problem is exactly what the error message is telling you, that the client's class is incompatible with the servers. Are you sure the client and server jars are the same? Check your build scripts. -
3. Re: serialization issue
kkoster Jul 1, 2005 8:08 AM (in response to doofus)It has often been suggested to supply your own serialVerisionUID so versioning can be managed the developer. Do this by supplying a private static final long named serialVersionUID within the serializable classes.