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

NPE during ResultPacker interface processing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • kernel
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: