Uploaded image for project: 'Lucee Development'
  1. LDEV-613

ORM NullPointerException caused by <cfquery dbtype="hql"> in latest stable release

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.5.2.018
    • Fix Version/s: 4.5.5.000, 5.0.0.177
    • Labels:

      Description

      Executing an HQL query using the cfquery tag results in a NPE, e.g.

      <cfquery name="result" dbtype="hql">
      	FROM Test
      </cfquery>
      
      java.lang.NullPointerException
       	at lucee.runtime.tag.Query.executeORM(Query.java:742):742
       	at lucee.runtime.tag.Query.doEndTag(Query.java:569):569
      

      Using OrmExecuteQuery() in script does not throw the NPE.

      Rolling back from 4.5.2.018 to the previous stable version 4.5.1.024 fixes the issue.

      Test case attached.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              julianhalliwell Julian Halliwell
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: