[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-402) Remoting proxies are not declaring serialVersionUIDs

cosmin c (JIRA) jira-events at jboss.com
Thu Sep 7 07:52:44 EDT 2006


    [ http://jira.jboss.com/jira/browse/EJBTHREE-402?page=comments#action_12343008 ] 
            
cosmin c commented on EJBTHREE-402:
-----------------------------------

Hi, I want to do a JUnit Test and I have this problem too ....

avax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.IsLocalInterceptor;
    local class incompatible: stream classdesc serialVersionUID = -3758782076801249473, local class serialVersionUID = 595045557897063404]
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
	at javax.naming.InitialContext.lookup(Unknown Source)
	at com.nortel.emp.utils.DeviceProfileManagementTest.getInventory(DeviceProfileManagementTest.java:35)
	at com.nortel.emp.utils.DeviceProfileManagementTest.testLookupInventoryService(DeviceProfileManagementTest.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.IsLocalInterceptor; local class incompatible: 
    stream classdesc serialVersionUID = -3758782076801249473, local class serialVersionUID = 595045557897063404
	at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
	at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
	at java.io.ObjectInputStream.readClassDesc(Unknown Source)
	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
	at java.io.ObjectInputStream.readObject0(Unknown Source)
	at java.io.ObjectInputStream.readArray(Unknown Source)
	at java.io.ObjectInputStream.readObject0(Unknown Source)
	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
	at java.io.ObjectInputStream.readSerialData(Unknown Source)
	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
	at java.io.ObjectInputStream.readObject0(Unknown Source)
	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
	at java.io.ObjectInputStream.readSerialData(Unknown Source)
.......

It seems that I have different version of class org.jboss.ejb3.remoting.IsLocalInterceptor and this is right, but I have a problem when I tried to fix this one. This class apear in my repository in jboss-ejb3-client-4.0.4.jar and in jboss(jboss-ejb3 I have) in jboss-ejb3.jar. Those jars didn't match but if I change only the class IsLocalInterceptor from one to another the test will work, but I can di that, I have to find a better solution. I don't know exactly why I have an older version on jboss server because I have the last version on jboss-ejb3. 

Do you have any ideeas ....

Thanks.



> Remoting proxies are not declaring serialVersionUIDs
> ----------------------------------------------------
>
>                 Key: EJBTHREE-402
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-402
>             Project: EJB 3.0
>          Issue Type: Bug
>    Affects Versions: EJB 3.0 RC3
>            Reporter: Scott M Stark
>            Priority: Critical
>             Fix For: EJB 3.0 RC9 - FD
>
>
> Same old lack of explicit serialVersionUIDs causing major incompatibilities across releases:
> java: org.jnp.interfaces.NamingContext at bd0108
> Looking up RemoteCalculator
> javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.stateless.StatelessRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 2583299153931800023, local class serialVersionUID = 8144530673853515126]
> 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
> 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
> 	at javax.naming.InitialContext.lookup(InitialContext.java:351)
> 	at trail.client.RemoteCalculatorClient.main(RemoteCalculatorClient.java:38)
> Caused by: java.io.InvalidClassException: org.jboss.ejb3.stateless.StatelessRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 2583299153931800023, local class serialVersionUID = 8144530673853515126
> 	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
> 	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
> 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
> 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
> 	at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
> 	at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
> 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list