EJB2 entity bean CMP collection toArray throws NullPointerException in JBoss EAP 6

Solution Verified - Updated -

Issue

  • EJB2 entity bean CMP collection toArray throws NullPointerException in JBoss EAP 6, it looks like https://issues.jboss.org/browse/AS7-5761. Is there a fix for this?
Caused by: java.lang.NullPointerException
        at org.jboss.as.cmp.jdbc.bridge.RelationSet.toArray(RelationSet.java:291
) [jboss-as-cmp-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
        at java.util.ArrayList.addAll(ArrayList.java:530) [rt.jar:1.7.0_09]
        at com.jboss.examples.ejb.ExampleCMP.findMatching(ExampleCMP.java:3802) [example.jar:]
        ...

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0.0
    • 6.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content