openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wisneski (JIRA)" <>
Subject [jira] Created: (OPENJPA-16) NPE in createQuery for EJB QL with nested correlated subqueries
Date Wed, 16 Aug 2006 23:03:13 GMT
NPE in createQuery for EJB QL with nested correlated subqueries

                 Key: OPENJPA-16
             Project: OpenJPA
          Issue Type: Bug
          Components: query
            Reporter: David Wisneski

 EJBQL:select c from Customer c where  exists ( select o from Order o where o.cutomer = c
and o.delivered=false  and  
exists ( select l1 from LineItem l, in(o.lineitems) as l2  where l1=l2 )) 

partial stack trace is 

Caused by: java.lang.NullPointerException
	at org.apache.openjpa.jdbc.kernel.exps.PCPath.initialize(
	at org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression.initialize(
	at org.apache.openjpa.jdbc.kernel.exps.ContainsExpression.initialize(
	at org.apache.openjpa.jdbc.kernel.exps.BindVariableAndExpression.initialize(
	at org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.initializeJoins(
	at org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.newJoinsSelect(
	at org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.evaluate(
	at org.apache.openjpa.jdbc.kernel.exps.SubQ.appendTo(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message