Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-769

exception in destroy method results in "javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • AS 4.2.0 GA
    • None
    • None
    • None

    Description

      This affects JBoss 4.0.5.

      When a system exception occurs in a @Destroy method of a SFSB, the bean gets removed (because of the @Destroy annotation), then the container tries to remove it a second time (because of the exception), and this results in the swallowing of the original exception, with an EJBNoSuchObjectException taking its place.

      Solution: the interceptor that handles the @Destroy annotation should not try to remove the SFSB when the destroy method throws an exception.

      Attachments

        Activity

          People

            wdecoste1@redhat.com William Decoste (Inactive)
            gavin.king Gavin King (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: