On Thursday 15 November 2001 14:33, Papo Napolitano wrote:
> I'm using Jboss 2.4.2 with Tomcat and sometimes I get this error when I
> call a method in a Bean.
>
> How can I do to solve this problem ??
>
> [EmbeddedCatalinaServiceSX] StandardWrapperValve[jsp]: Servlet.service()
> for servlet jsp threw exception
> java.rmi.RemoteException: Application Error: no concurrent calls on
> stateful beans
> <<no stack trace available>>
>
> I've tested and appears only sometimes..... I cannot detect the exact
> error.
>

This is by the spec. It happens when you try to invoke a method on a 
statefull session bean while there's a previous invocation still in progress. 
This is easy to reproduce with the web client: While waiting for response 
from the server click STOP button on the web browser and resubmit/reload a 
page. The web client (servlet container) will re-invoke your session bean in 
another thread while the 1st invocation has not finished yet.

To guard against this, try to synchronize the invocation of the business 
method in the web client with an object that you get from the HTTP session 
(preferably by the remote reference of the bean itself, but then you must 
ensure that this is indeed the same instance of the object)...

Peter


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to