[jboss-jira] [JBoss JIRA] Created: (JBAS-4295) throw a 'no transaction' exception instead of NPE

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Wed Apr 4 04:45:58 EDT 2007


throw a 'no transaction' exception instead of NPE
-------------------------------------------------

                 Key: JBAS-4295
                 URL: http://jira.jboss.com/jira/browse/JBAS-4295
             Project: JBoss Application Server
          Issue Type: Task
      Security Level: Public (Everyone can see)
          Components: CMP service
    Affects Versions: JBossAS-4.2.0.CR1, JBossAS-5.0.0.Beta1, JBossAS-4.0.5.GA
            Reporter: Alexey Loubyansky
         Assigned To: Alexey Loubyansky
             Fix For: JBossAS-5.0.0.Beta2, JBossAS-4.2.0.GA,  JBossAS-5.0.0.Beta3


java.lang.NullPointerException
at org.jboss.ejb.plugins.cmp.jdbc2.bridge.JDBCCMRFieldBridge2$CollectionValuedFieldState.loadOnlyFromCache(JDBCCMRFieldBridge2.java:1085)

was caused by calling size() on a CMR collection w/o a transaction. It would be better to throw an exception with a message explaining the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list