Hello,

  We get this problem in two scenarios.

  a) When you rapidly doubleclick on IE on a form's submit button.

  b) In a multi-threaded client, when calls are made into the ejb
application

  The problem is the same in both cases, concurrent calls into a stateful
session bean. This is prohibited by the spec.

   For (b) we have solved by synchronizing the access from the client via a
delegating class. (Making the session bean stateless was another option).
For (a), we are looking into using struts' transaction token type solution,
which prevents multiple submits on the same form, tho we have not
implemented this yet. (We use struts in our software.)

Cheers,
Krishna

-----Original Message-----
From: Alban Soupper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 3:15 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] [HELP] Application Error: tried to enter
Statefu l bean with diffe rent transaction context


HELP :((

We are really stuck with this problem!
Nobody can help?

-----Original Message-----
From: Alban Soupper [mailto:[EMAIL PROTECTED]
Sent: lundi, 3. mars 2003 17:02
To: JBoss user (E-mail)
Subject: [JBoss-user] [HELP] Application Error: tried to enter Stateful
bean with diffe rent transaction context


Hi all,
 I need help to resolve to following problem:

javax.ejb.EJBException: Application Error: tried to enter Stateful bean with
different transaction context, contextTx: TransactionImpl:XidImpl
[FormatId=257, GlobalId=Legolas//2, BranchQual=], methodTx:
TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//3, BranchQual=]
        at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:228)
        at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:107)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:178)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
        at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
        at org.jboss.ejb.Container.invoke(Container.java:712)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
        at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
        at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
        at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
)
        at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
        at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce
ptor.java:117)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
        at $Proxy63.handleEvent(Unknown Source)
        at
com.eim.application.intranet.control.web.ClientControllerWebImpl.processRequ
est(ClientControllerWebImpl.java:295)
        at
com.eim.application.intranet.view.third.action.wizard.create.TreatStep1Actio
n.execute(TreatStep1Action.java:67)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:446)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
        at
com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C
ustomRequestProcessor.java:50)
...


What can be the reason of such error ?

Thanks a lot in advance :)

Alban.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager at postmaster.eim.ch.
**********************************************************************



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to