openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivasa Segu (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-157) NullPointerException when running query with null parameter
Date Wed, 21 Feb 2007 03:49:05 GMT
NullPointerException when running query with null parameter
-----------------------------------------------------------

                 Key: OPENJPA-157
                 URL: https://issues.apache.org/jira/browse/OPENJPA-157
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
            Reporter: Srinivasa Segu


NullPointerException when running query with null parameter value, testcase attached. 

Caused by: java.lang.NullPointerException
        at org.apache.openjpa.jdbc.meta.strats.RelationStrategies.toDataStoreValue(RelationStrategies.java:87)
        at org.apache.openjpa.jdbc.meta.strats.RelationFieldStrategy.toDataStoreValue(RelationFieldStrategy.java:597)
        at org.apache.openjpa.jdbc.meta.FieldMapping.toDataStoreValue(FieldMapping.java:795)
        at org.apache.openjpa.jdbc.kernel.exps.PCPath.toDataStoreValue(PCPath.java:542)
        at org.apache.openjpa.jdbc.kernel.exps.Param.calculateValue(Param.java:106)
        at org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression.appendTo(CompareEqualExpression.java:86)
        at org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.buildWhere(SelectConstructor.java:237)
        at org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.evaluate(SelectConstructor.java:78)
        at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.createWhereSelects(JDBCStoreQuery.java:323)
        at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeQuery(JDBCStoreQuery.java:165)
        at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeQuery(ExpressionStoreQuery.java:672)
        at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:930)
        at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:742)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message