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

Scott M Stark (JIRA) jira-events at lists.jboss.org
Wed Apr 4 22:59:09 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4295?page=all ]

Scott M Stark resolved JBAS-4295.
---------------------------------

    Fix Version/s:     (was:  JBossAS-5.0.0.Beta3)
       Resolution: Done

Its been integrated into trunk and the 5_0 branch.

> 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
>
>
> 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