Hi,

the following error is ocurring when the servlet trying to execute the line:

            try {
                //log the user into the current thread.
                user.begin();

                //create a request variable which can be used to identify this user.
                final Hashtable environment = context.getEnvironment();
                request.setAttribute("User", (String)environment.get(Context.SECURITY_PRINCIPAL));

                //let the HttpServlet class send control to either the doGet() or doPost() method.
                super.service(request, response);
            }
            finally {
                //Note: the finally clause here will force the user to be logged
                //out of the thread even if an Exception is thrown while processing
                //the request.
54 ------>      user.end();
            }
500 Internal Server Error
/webpersonnel/SelecionarDependente:

javax.servlet.ServletException: Wrong thread
java.lang.IllegalStateException: Wrong thread
 at allaire.ejipt._CallableStub$_UserSession.end(_CallableStub.java:404)
 at SelecionarDependenteServlet.service(SelecionarDependenteServlet.java:54)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
 at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
 at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
 at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
 at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
 at allaire.jrun.WorkerThread.run(WorkerThread.java:74)

Anyone ?

Thank's

Marcelo Bellezo
 

Reply via email to