Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5761

EJB2 entity bean CMP collection toArray throws NPE

XMLWordPrintable

      From an EJB2 entity bean that has a CMP collection of entities, calling toArray() on the CMP collection throws NullPointerException

      Caused by: java.lang.NullPointerException
      at org.jboss.as.cmp.jdbc.bridge.RelationSet.toArray(RelationSet.java:291) [jboss-as-cmp-7.1.1.Final.jar:7.1.1.Final]

      Normal iteration thru the collection using the iterator works as expected.

            pieterbos_jira Pieter Bos (Inactive)
            lgalfaso Lucas Galfaso (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: