Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've been looking around as I've got a similar problem. I've only found two possible explanations: either your stateful bean has timed-out (defaults to 5000 seconds on AS7.1), or you're passing a reference to the SFSB from one thread to another - which (it is suggested on <a href="https://community.jboss.org/message/718564" rel="nofollow">the jboss forum</a> isn't allowed. If the former, either increase the timeout or catch the exception. If the latter, have jboss inject the stateful bean wherever it's needed rather than passing it around. </p> <p>The problem I'm having is that it's not either of those for me. I only have one stateful bean in the test setup, which is injected separately into the various stateless beans - and I can generate the exception within a few seconds of starting the test run. I'm still trying to track-down where I'm going wrong - if you've found an alternative solution to your problem could you post it please?</p> <p>Rgds, James</p> <p>I've narrowed-it down to concurrent access - I can make lots of sequential requests, but only a few "concurrent" ones before this occurs. (I put concurrent in quotes because I am synchroising on a lock held by the @SessionScoped ejb so the only possible concurrent call is to the getLock() method I've created on it).</p> <p>I'm totally confused over whether Weld allows or prevents concurrent access to @SessionScoped @Stateful EJBs. I read that that Seam serializes the access (and Weld is born out of Seam) but don't know whether that's actually the case. If it is, then something else is causing my bean to die. It's easily reproducable through concurrent access from separate @Stateless beans though.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload