Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13

Wrong exception thrown by container for non-existent entity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Alpha1
    • None
    • EJB
    • None

    Description

      According to spec, if client is trying to make a call to already removed entity, NoSuchObjectException must be thrown:

      14.3.9 Non-existing Stateful Session or Entity Object

      If a client makes a call to a stateful session or entity object that has been removed, the container should throw the javax.ejb.NoSuchEJBException[80]. If the EJB 2.1 client view is used, the container should throw the java.rmi.NoSuchObjectException (which is a subclass of java.rmi.RemoteException) to a remote client, or the javax.ejb.NoSuchObjectLocalException to a local client.

      In realtiy, I'm getting TransactionRolledBackException:

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            kkkppp_jira Kirill Paliy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: