Details
-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
-
None
Description
SourceForge Submitter: lkral .
When I call sessionContext.getEJBObject() on session
beans JBoss complains about a missing remote interface
even if there is a remote interface defined. It seems
that the StatefulSessionEnterpriseContext /
StatelessSessionEnterpriseContext is missing a
ProxyFactory while accessing the session bean instance
through its local interface.
Since the affected beans worked great in 3.0.x I assume
that this bug was introduced within the 3.2 branch. In
addition, the bugreport #577711 was raised for the same
issue on entity beans.
Here the relevant StackTrace:
20:34:44,062 ERROR [LogInterceptor]
TransactionRolledbackLocalException in method: public
abstract javax.ejb.EJBObject
de.libra.ejb.StandardSessionEJBLocal.getEJBRemoteObjec
t(), causedBy:
java.lang.IllegalStateException: No remote interface
defined.
at
org.jboss.ejb.StatefulSessionEnterpriseContext$StatefulS
essionContextImpl.getEJBObject
(StatefulSessionEnterpriseContext.java:131)
at
de.libra.ejb.StandardSessionEJBImpl.getEJBRemoteObject
(StandardSessionEJBImpl.java:111)
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.jboss.ejb.StatefulSessionContainer$ContainerIntercep
tor.invoke(StatefulSessionContainer.java:948)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:118)
at
org.jboss.resource.connectionmanager.CachedConnection
Interceptor.invoke
(CachedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.i
nvoke(StatefulSessionInstanceInterceptor.java:269)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invok
e(ProxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.StatefulSessionContainer.internalInvoke
(StatefulSessionContainer.java:416)
at org.jboss.ejb.Container.invoke
(Container.java:700)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke
(BaseLocalProxyFactory.java:375)
at
org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke
(StatefulSessionProxy.java:41)
at $Proxy535.getEJBRemoteObject(Unknown
Source)
at
de.libra.ejb.PaiSessionControllerEJBImpl$SessionBeanEntry
.getRemoteSessionBean
(PaiSessionControllerEJBImpl.java:974)
at
de.libra.ejb.PaiSessionControllerEJBImpl$SessionInfoImpl.g
etRemoteSessionBean
(PaiSessionControllerEJBImpl.java:1416)
at
de.libra.ejb.PaiSessionControllerEJBImpl.getRemoteSession
Bean(PaiSessionControllerEJBImpl.java:868)
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.jboss.ejb.StatefulSessionContainer$ContainerIntercep
tor.invoke(StatefulSessionContainer.java:948)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:118)
at
org.jboss.resource.connectionmanager.CachedConnection
Interceptor.invoke
(CachedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.i
nvoke(StatefulSessionInstanceInterceptor.java:269)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invok
e(ProxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.StatefulSessionContainer.internalInvoke
(StatefulSessionContainer.java:416)
at org.jboss.ejb.Container.invoke
(Container.java:700)
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.jboss.mx.capability.ReflectedMBeanDispatcher.invoke
(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:546)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke
(JRMPInvoker.java:367)
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 sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:261)
at sun.rmi.transport.Transport.run
(Transport.java:148)
at java.security.AccessController.doPrivileged
(Native Method)
at sun.rmi.transport.Transport.serviceCall
(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru
n(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Tested with: JBoss 3.2.3 / JDK 1.4.2_03,Sun
Microsystems Inc. / Windows XP 5.1,x86