[jboss-jira] [JBoss JIRA] (AS7-6820) Wrong exception thrown by container for non-existent entity
Kirill Paliy (JIRA)
jira-events at lists.jboss.org
Sun Mar 31 13:54:41 EDT 2013
Kirill Paliy created AS7-6820:
---------------------------------
Summary: Wrong exception thrown by container for non-existent entity
Key: AS7-6820
URL: https://issues.jboss.org/browse/AS7-6820
Project: Application Server 7
Issue Type: Bug
Reporter: Kirill Paliy
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:
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list