how are you creating/storing the stateful bean?

one possible cause is you have one stateful bean in the action class, and
multiple requests are using the same instance

other than that, I think you need to provide some more info... show the code
that actually creates and calls the sfsb...

hth
dim

----- Original Message -----
From: "Gene Ge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 1:55 PM
Subject: [JBoss-user] Please help me! Transaction problem


> Someone please help me, I have asked this question many times and still
not
> get any answer yet! I also searched in archives but get no answer.
>
____________________________________________________________________________
_____
> 11:43:14,093 ERROR [LogInterceptor] EJBException:
> javax.ejb.EJBException: Application Error: tried to enter Stateful bean
with
> different transaction context
>         at
>
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.ja
>         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:203)
>         at
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
>         at
>
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai
nerInvoker.java:301)
>         at
>
org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSessionProxy
.java:41)
>         at $Proxy270.setStudentData(Unknown Source)
>         at
>
com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction.java
:97)
>         at
>
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:437)
>         at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
>         at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115)
>         at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
>         at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:284)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
>         at
>
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:544)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
>         at org.mortbay.http.HttpServer.service(HttpServer.java:875)
>         at org.jboss.jetty.Jetty.service(Jetty.java:541)
>         at
org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
>         at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
>         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
>         at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
>         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
>         at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
>         at java.lang.Thread.run(Thread.java:536)
>
____________________________________________________________________________
_____
>
> Who can tell me how to deal with this?
> If I retry to invoke the method for some times, the method could execute
> successfully.
> So??????????????????????????????
>
> thanks for any help
>
> Gene
>
> _________________________________________________________________
> Get a speedy connection with MSN Broadband. Join now!
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to