0 Replies Latest reply on Apr 10, 2009 1:09 PM by jova73

    Yet Another

    jova73

      Hi,
      sometimes my J2EE application, which has a stateful session bean, gets the following error trying to access the SFSB:

      ...
      javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different tx context, contextTx: ...
      at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:262)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
      at org.jboss.ejb.Container.invoke(Container.java:674)
      at sun.reflect.GeneratedMethodAccessor54.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.local.LocalInvoker.invoke(LocalInvoker.java:101)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
      ...

      The problem happens (at a customer site) with the application running on JBoss 3.2.1 connected to a DB2 on iSeries.
      I've searched JBoss forums and the web and found several answers related to concurrent access to the SFSB from different threads, but this is not my case.
      What can I check?
      Should I make JBoss more verbose, in order to get more info? Which classes of JBoss should I make more verbose?

      Thanks in advance,
      Andrea