Bugs item #577711, was opened at 2002-07-05 11:25
Message generated for change (Comment added) made by philipp_meister
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=577711&group_id=22866

Category: JBossServer
Group: v3.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Carsten Teich (cteich)
Assigned to: Nobody/Anonymous (nobody)
Summary: getEJBObject needs ProxyFactory

Initial Comment:
When Accessing the remote interface within a Bean i get the following Exception:

2002-07-05 10:51:13,525 DEBUG [org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] 
invokerBInding is 
null in ProxyFactoryFinder
2002-07-05 10:51:13,535 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException, causedBy:
java.lang.IllegalStateException: No remote interface defined.
        at 
org.jboss.ejb.EntityEnterpriseContext$EntityContextImpl.getEJBObject(EntityEnterpriseContext.java:184)
        at de.bmiag.kredit.entity.entity1.Entity1Bean.getRemote(Entity1Bean.java:67)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1094)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95)
        at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:308)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionIntercepto
r.java:186)
        at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152)
        at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
        at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:108)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:181)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
        at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:481)
        at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:351)
        at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
        at $Proxy34.getRemote(Unknown Source)
        at de.bmiag.kredit.po.PO1Bean.test1(PO1Bean.java:44)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:835)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionIntercepto
r.java:186)
        at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:2
68)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:108)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:181)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
        at 
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:370)
        at org.jboss.ejb.Container.invoke(Container.java:674)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:321)
        at java.lang.reflect.Method.invoke(Native Method)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
        at sun.rmi.transport.Transport$1.run(Transport.java:152)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
        at java.lang.Thread.run(Thread.java:484)
2002-07-05 10:51:13,815 INFO  [STDOUT] 
Fehler!!javax.ejb.TransactionRolledbackLocalException: No 
remote interface defined.; CausedByException is:
        No remote interface defined.



This occurs only if no remote interface was used before. When I create a second Bean 
and retrieve the 
remote interface by PrimaryKey I can then ask the first Bean for its remote Interface 
and it's all fine.

I think the problem lies within the Implementation of the getEJBObject Method in 
EntityEnterpriseContext. There You assume it's no remote interface defined if there is 
no ProxyFactory.

>>         if (((EntityContainer)con).getProxyFactory()==null)
>>          throw new IllegalStateException( "No remote interface defined." );


I have included a small example. TestClient1 leads to the exception. TestClient2 works 
fine.

I'm using  [Server] JBoss (MX MicroKernel) [3.1.0alpha Date:200207041005]
Operating System WindowsNT Servicepack 6
JDK 1.3.1

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

Comment By: Philipp Meister (philipp_meister)
Date: 2003-08-04 11:01

Message:
Logged In: YES 
user_id=837073

I have exactly the same problem and would really appreciate 
a solution to this bug, as in my project, I use getEJBObject 
quite often. I use JBoss 3.2.1.

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

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


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to