Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2071

NPE during ResultPacker interface processing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: kernel
    • Labels:
      None

      Description

      Got the following NPE from ResultPacker process.

      Failed to execute query "SELECT name FROM root.JPADeptBean WHERE deptno >= ?". Check the query syntax for correctness. See nested exception for details.

      <openjpa-2.2.0-SNAPSHOT-r422266:1198001 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Failed to execute query "SELECT name FROM root.JPADeptBean WHERE deptno >= ?". Check the query syntax for correctness. See nested exception for details.
      at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:872)
      at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:794)
      at org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542)
      at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:315)
      at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:331)
      at com.ibm.ws.query.tests.ano.JUNativeQueryTest.testSelectName(JUNativeQueryTest.java:271)
      Caused by: java.lang.NullPointerException
      at org.apache.openjpa.kernel.ResultPacker.isInterface(ResultPacker.java:176)
      at org.apache.openjpa.kernel.ResultPacker.<init>(ResultPacker.java:122)
      at org.apache.openjpa.kernel.ResultPacker.<init>(ResultPacker.java:114)
      at org.apache.openjpa.jdbc.kernel.SQLProjectionResultObjectProvider.<init>(SQLProjectionResultObjectProvider.java:67)
      at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeQuery(SQLStoreQuery.java:232)
      at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1005)
      at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:863)

      I believe it is related to additional interface check from OPENJPA-2065

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                allee8285 Albert Lee
                Reporter:
                allee8285 Albert Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: