Bugs item #889263, was opened at 2004-02-02 21:52
Message generated for change (Comment added) made by lkral
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889263&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Kral (lkral)
Assigned to: Nobody/Anonymous (nobody)
Summary: IllegalStateException in getEJBObject()

Initial Comment:
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


----------------------------------------------------------------------

>Comment By: Lars Kral (lkral)
Date: 2004-03-08 01:58

Message:
Logged In: YES 
user_id=936392

Yes, I have added a invoker-proxy-binding and the 
ProxyFactoryFinderInterceptor, but even with the defaults 
from standardjboss.xml the IllegalStateException is thrown.

To reproduce the problem I have created some simple session 
beans and deployed them in a clean JBoss environment. And 
again, the container complains about "No remote interface 
defined".

Please have a look at the attached jar file... (sources are 
included)

----------------------------------------------------------------------

Comment By: Adrian Brock (ejort)
Date: 2004-03-06 14:48

Message:
Logged In: YES 
user_id=9459

Post your jboss.xml
Have you updated it for the invoker-proxy-binding changes in
3.2.x?

Regards,
Adrian

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889263&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to