javax.ejb.NoSuchEJBException: Could not find stateful bean in JBoss EAP 5
Issue
I have an application where I need to upload a file. Size of the file is 17MB, sometimes it works, sometimes I get the following exception on the server shown below. I have the default CacheConfig in $JBOSS_HOME/server/$PROFILE/deploy/ejb3-interceptors-aop.xml set to
@org.jboss.ejb3.annotation.CacheConfig (maxSize=100000, idleTimeoutSeconds=1800, removalTimeoutSeconds=300)
Thrown exception:
ERROR [org.jboss.aspects.tx.TxPolicy] (http-127.0.0.1-8080-12:) javax.ejb.NoSuchEJBException: Could not find stateful bean: a2dc1q-515zkv-h192tsty-1-h1dyeiej-56p
WARN [org.jboss.seam.jsf.SeamPhaseListener] (http-127.0.0.1-8080-12:) uncaught exception, passing to exception handler
java.lang.IllegalStateException: Could not commit transaction
at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:625)
at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:345)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:245)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
...
Caused by: javax.ejb.NoSuchEJBException: Could not find stateful bean: a2dc1q-515zkv-h192tsty-1-h1dyeiej-56p
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:479)
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:430)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:59)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
...
Environment
- JBoss Enterprise Application Platform (EAP) 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.