1 Reply Latest reply on Aug 29, 2003 5:11 AM by jmhofer

    getEJBObject() - no method permissions?

    jmhofer Newbie

      I am stumbling upon a problem during activation of passivated stateful session beans, and I had no success searching the forums for this...

      These beans have other stateful session beans stored as (public, for serialzations sake) member variables. But I think this is not a problem, or is it?

      Anyhow, I receive the following error from jBoss:
      [pre]ERROR [org.jboss.ejb.plugins.SecurityInterceptor] No method permissions assigned to method=getEJBObject, interface=HOME[/pre]
      Normally, I look this up in my assembly descriptor and adjust the rights there, in this case, however, there is no method "getEJBObject" anywhere.

      It must get called internally by jBoss somehow, but why are there permissions missing, then?

      Any ideas? - Or can anyone explain to me what exactly the trace below means?

      appending a snippet from the jBoss Trace:
      [pre]2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] Begin endLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@14cbd69{classname: java.rmi.server.RemoteObject, requestingThread: Thread[RMI TCP Connection(9)-192.9.200.61,5,RMI Runtime], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, loadedClass: class java.rmi.server.RemoteObject@1d6a56e, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 4}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] release(1) for :org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] released, holds: 0
      2003-08-29 12:34:28,980 TRACE [org.jboss.system.Registry] lookup -480451433=jboss.j2ee:jndiName=ejb/TestCycleFacade,service=EJB
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] attempt(1) was: true for :org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] registerLoaderThread, ucl=org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, t=Thread[RMI TCP Connection(11)-192.9.200.61,5,RMI Runtime], prevT=null
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] created new task list
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] Begin beginLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@d7cb51{classname: [Ljava.lang.Object;, requestingThread: Thread[RMI TCP Connection(11)-192.9.200.61,5,RMI Runtime], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, loadedClass: null, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 0}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] End beginLoadTask, loadClassFromCache
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] Begin endLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@d7cb51{classname: [Ljava.lang.Object;, requestingThread: Thread[RMI TCP Connection(11)-192.9.200.61,5,RMI Runtime], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, loadedClass: class [Ljava.lang.Object;@b8b6e9, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 4}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] release(1) for :org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] released, holds: 0
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] attempt(1) was: true for :org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] registerLoaderThread, ucl=org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, t=Thread[RMI TCP Connection(11)-192.9.200.61,5,RMI Runtime], prevT=null
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] Begin beginLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@1654df1{classname: org.jboss.util.id.UID, requestingThread: Thread[RMI TCP Connection(11)-192.9.200.61,5,RMI Runtime], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, loadedClass: null, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 0}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] End beginLoadTask, loadClassFromCache
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.LoadMgr] Begin endLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@1654df1{classname: org.jboss.util.id.UID, requestingThread: Thread[RMI TCP Connection(11)-192.9.200.61,5,RMI Runtime], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}, loadedClass: class org.jboss.util.id.UID@18a6890, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 4}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] release(1) for :org.jboss.mx.loading.UnifiedClassLoader3@7811df{ url=file:/E:/jboss-3.2.1_tomcat-4.1.24/server/imbus/tmp/deploy/server/imbus/deploy/testbench.ear/45.testbench.ear ,addedOrder=31}
      2003-08-29 12:34:28,980 TRACE [org.jboss.mx.loading.UnifiedClassLoader3] released, holds: 0
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.StatefulSessionContainer] METHOD HOME INVOKE -480451433||getEJBObject||[Ljava.lang.Object;@1e02bc8
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.plugins.LogInterceptor] Start method=getEJBObject
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Current transaction in MI is null
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] TX_REQUIRED for getEJBObject
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Thread came in with tx null
      2003-08-29 12:34:28,980 TRACE [org.jboss.tm.TransactionImpl] Created new instance for tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=machtnix//125, BranchQual=]
      2003-08-29 12:34:28,980 TRACE [org.jboss.tm.TxManager] began tx: TransactionImpl:XidImpl [FormatId=257, GlobalId=machtnix//125, BranchQual=]
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Starting new tx TransactionImpl:XidImpl [FormatId=257, GlobalId=machtnix//125, BranchQual=]
      2003-08-29 12:34:28,980 TRACE [org.jboss.ejb.plugins.StatefulSessionInstancePool] Get instance org.jboss.ejb.plugins.StatefulSessionInstancePool@1dd1bd6#0#class de.imbus.protestant.TestCycleFacadeEJB
      2003-08-29 12:34:29,040 TRACE [org.jboss.resource.connectionmanager.CachedConnectionManager] new stack for key: de.imbus.protestant.TestCycleFacadeEJB@5a7006
      2003-08-29 12:34:29,040 TRACE [org.jboss.security.plugins.JaasSecurityManager.TestBench] validateCache, info=org.jboss.security.plugins.JaasSecurityManager$DomainInfo@107d6ae
      2003-08-29 12:34:29,040 ERROR [org.jboss.ejb.plugins.SecurityInterceptor] No method permissions assigned to method=getEJBObject, interface=HOME
      2003-08-29 12:34:29,040 TRACE [org.jboss.resource.connectionmanager.CachedConnectionManager] popped object: org.jboss.resource.connectionmanager.CachedConnectionManager$KeyConnectionAssociation@5a7006
      2003-08-29 12:34:29,040 TRACE [org.jboss.ejb.plugins.StatefulSessionInstancePool] Discard instance:org.jboss.ejb.plugins.StatefulSessionInstancePool@1dd1bd6#org.jboss.ejb.StatefulSessionEnterpriseContext@170ad95#null#false#class de.imbus.protestant.TestCycleFacadeEJB
      2003-08-29 12:34:29,040 TRACE [org.jboss.tm.TransactionImpl] setRollbackOnly(): Entered, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=machtnix//125, BranchQual=] status=STATUS_ACTIVE
      2003-08-29 12:34:29,040 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] TxInterceptorCMT: In finally
      2003-08-29 12:34:29,040 TRACE [org.jboss.tm.TransactionImpl] rollback(): Entered, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=machtnix//125, BranchQual=] status=STATUS_MARKED_ROLLBACK
      2003-08-29 12:34:29,040 TRACE [org.jboss.tm.TxManager] suspended tx: TransactionImpl:XidImpl [FormatId=257, GlobalId=machtnix//125, BranchQual=]
      2003-08-29 12:34:29,040 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException, causedBy:
      java.lang.SecurityException: No method permissions assigned to method=getEJBObject, interface=HOME
      at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:179)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:81)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:128)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      at org.jboss.ejb.StatefulSessionContainer.internalInvokeHome(StatefulSessionContainer.java:398)
      at org.jboss.ejb.Container.invoke(Container.java:694)
      at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
      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:549)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
      at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
      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$1.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.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:534)
      2003-08-29 12:34:29,040 TRACE [org.jboss.ejb.plugins.LogInterceptor] End method=getEJBObject
      2003-08-29 12:34:29,040 TRACE [org.jboss.invocation.jrmp.server.JRMPInvoker] Failed to invoke on mbean: jboss.j2ee:jndiName=ejb/TestCycleFacade,service=EJB[/pre]