[jboss-user] [JBoss Seam] - MDB initialized too early?

svadu do-not-reply at jboss.com
Mon Nov 19 05:20:57 EST 2007


Hi All,

I have a MDB that tries to use a stateless session bean (which is also a). And I see the following error:

javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside the an initialized application
  |         at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
  |         at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  |         at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:249)
  |         at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
  |         at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
  |         at $Proxy111.onMessage(Unknown Source)

Now, I've found a solution here: http://www.jboss.org/?module=bb&op=viewtopic&t=100946

But it looks like it's a vendor specific solution.  Is there other (vendor independent) solution?

Thanks in advance!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105959#4105959

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105959



More information about the jboss-user mailing list