RuntimeException discards the EJB3 stateful session bean instance in JBoss EAP

Solution Verified - Updated -

Issue

  • If a call to a stateful session bean method returns a RuntimeException, which the client is catching and logging, a subsequent call to that method with the same session bean handle is throwing the exception:

    javax.ejb.NoSuchEJBException: Could not find stateful bean: abcdefg-hijklm-nopqrstu-v-wxyz1234-567 (bean was marked as removed
        at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:543)
        ...
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content