[JBoss JIRA] Commented: (EJBTHREE-402) Remoting proxies are not declaring serialVersionUIDs
by Scott M Stark (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-402?page=comments#action_12348109 ]
Scott M Stark commented on EJBTHREE-402:
----------------------------------------
Running the following script from the jbossas/varia module produced the attached warnings.txt that highlights classes without
explicit serialVersionUIDs. There are 989 of them. Many are coming from trove, hibernate. It at least gives a reference for what
a classes serialVersionUID was as of the previous ejb3 release.
#!/bin/bash
JB=/home/cvs/Releases/jboss-4.0.4.GA/
CP=output/classes
CP="$CP:$JB/lib/dom4j.jar"
CP="$CP:$JB/lib/jboss-jmx.jar"
CP="$CP:$JB/lib/jboss-system.jar"
CP="$CP:$JB/client/antlr-2.7.6.jar"
CP="$CP:$JB/client/log4j.jar"
CP="$CP:$JB/client/commons-logging.jar"
CP="$CP:$JB/client/concurrent.jar"
CP="$CP:$JB/client/jbossall-client.jar"
CP="$CP:$JB/server/all/lib/jboss.jar"
CP="$CP:$JB/server/all/lib/jbosssx.jar"
CP="$CP:$JB/server/all/lib/jboss-cache.jar"
CP="$CP:$JB/server/all/lib/jbossha.jar"
CP="$CP:$JB/server/all/lib/jgroups.jar"
CP="$CP:$JB/server/all/lib/jboss-remoting.jar"
CP="$CP:$JB/server/all/lib/jbossmq.jar"
CP="$CP:$JB/server/all/lib/jboss-transaction.jar"
CP="$CP:$JB/server/all/lib/cglib.jar"
CP="$CP:$JB/server/all/deploy/jbossweb-tomcat55.sar/tomcat-coyote.jar"
CP="$CP:$JB/server/all/deploy/jbossweb-tomcat55.sar/tomcat-http.jar"
CP="$CP:$JB/server/all/deploy/jbossweb-tomcat55.sar/tomcat-util.jar"
java -cp "$CP" org.jboss.tools.SerialVersionUID /home/cvs/Releases/jboss-EJB-3.0_RC9-FD/
> 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: Blocker
> Fix For: EJB 3.0 RC10 - FD
>
> Attachments: warnings.txt
>
>
> Same old lack of explicit serialVersionUIDs causing major incompatibilities across releases:
> java: org.jnp.interfaces.NamingContext@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
17 years, 5 months
[JBoss JIRA] Updated: (EJBTHREE-402) Remoting proxies are not declaring serialVersionUIDs
by Anonymous (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-402?page=all ]
Attachment: warnings.txt
> 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: Blocker
> Fix For: EJB 3.0 RC10 - FD
>
> Attachments: warnings.txt
>
>
> Same old lack of explicit serialVersionUIDs causing major incompatibilities across releases:
> java: org.jnp.interfaces.NamingContext@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
17 years, 5 months
[JBoss JIRA] Updated: (EJBTHREE-402) Remoting proxies are not declaring serialVersionUIDs
by Scott M Stark (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-402?page=all ]
Scott M Stark updated EJBTHREE-402:
-----------------------------------
Priority: Blocker (was: Critical)
This has got to be solved for the next release. I'm seeing different serialVersionUIDs based on what compiler is used. If I run with the eclipse-classes dir first in the classpath I see one serialVersionUID:
[starksm@succubus output]$ java -cp /home/svn/JBossHead/jboss-head/varia/output/classes/:/home/svn/JBossHead/jboss-head/ejb3/output/eclipse-classes:/home/svn/JBossHead/jboss-head/thirdparty/jboss/aop/lib/jboss-aop-jdk50.jar:/home/svn/JBossHead/jboss-head/j2ee/output/classes:jboss-ejb3.jar:jboss-annotations-ejb3.jar:hibernate-client.jar:/home/svn/JBossHead/jboss-head/aspects/output/classes:/home/svn/JBossHead/jboss-head/thirdparty/jboss/common-logging-spi/lib/jboss-logging-spi.jar:/home/svn/JBossHead/jboss-head/thirdparty/jboss/remoting/lib/jboss-remoting.jar org.jboss.tools.ClassVersionInfo org.jboss.ejb3.stateless.StatelessRemoteProxy
ClassVersionInfo{serialVersion=2583299153931800023, hasExplicitSerialVersionUID=false, name=org.jboss.ejb3.stateless.StatelessRemoteProxy, location=file:/home/svn/JBossHead/jboss-head/ejb3/output/eclipse-classes/}
If I run with jboss-ejb3.jar generated using the sun compiler I see a different serialVersionUID:
[starksm@succubus lib]$ java -cp /home/svn/JBossHead/jboss-head/varia/output/classes/:/home/svn/JBossHead/jboss-head/thirdparty/jboss/aop/lib/jboss-aop-jdk50.jar:/home/svn/JBossHead/jboss-head/j2ee/output/classes:jboss-ejb3.jar:jboss-annotations-ejb3.jar:hibernate-client.jar:/home/svn/JBossHead/jboss-head/aspects/output/classes:/home/svn/JBossHead/jboss-head/thirdparty/jboss/common-logging-spi/lib/jboss-logging-spi.jar:/home/svn/JBossHead/jboss-head/thirdparty/jboss/remoting/lib/jboss-remoting.jar org.jboss.tools.ClassVersionInfo org.jboss.ejb3.stateless.StatelessRemoteProxy
ClassVersionInfo{serialVersion=-9097306519795868, hasExplicitSerialVersionUID=false, name=org.jboss.ejb3.stateless.StatelessRemoteProxy, location=file:/home/svn/JBossHead/jboss-head/ejb3/output/lib/jboss-ejb3.jar}
> 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: Blocker
> Fix For: EJB 3.0 RC10 - FD
>
>
> Same old lack of explicit serialVersionUIDs causing major incompatibilities across releases:
> java: org.jnp.interfaces.NamingContext@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
17 years, 5 months
[JBoss JIRA] Created: (EJBTHREE-800) RuntimeException thrown by @Remove method is swallowed and rethrown as javax.ejb.EJBNoSuchObjectException
by Gavin King (JIRA)
RuntimeException thrown by @Remove method is swallowed and rethrown as javax.ejb.EJBNoSuchObjectException
---------------------------------------------------------------------------------------------------------
Key: EJBTHREE-800
URL: http://jira.jboss.com/jira/browse/EJBTHREE-800
Project: EJB 3.0
Issue Type: Bug
Reporter: Gavin King
If a runtimeexception is thrown by the @Remove method of an SFSB, the EJB container swallows it and instead throws this exception:
javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 3j001-5jww5u-ev92gcva-1-ev93yypo-z
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.removeSession(StatefulRemoveInterceptor.java:127)
at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:87)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
at $Proxy235.destroy(Unknown Source)
--
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
17 years, 5 months