Does it create a new one for each request, or does it create just one and try to re-use it for each request?
The latter situation is guaranteed to cause the problem below.
If that is not the cause, then show me your implementation of EditStudentInfoAction.execute.
Steve Coy
On Friday, October 25, 2002, at 01:55 PM, Gene Ge wrote:
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(Statefu lSessionInstanceInterceptor.ja
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterc eptor.java:107)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercepto rCMT.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(BaseLocalC ontainerInvoker.java:301)
at org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSession Proxy.java:41)
at $Proxy270.setStudentData(Unknown Source)
at com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction .java:97)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestP rocessor.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(WebApplication Handler.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(WebApplicationCo ntext.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:20 0)
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
-------------------------------------------------------
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