Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-800

Incorrect Hibernate QL clause in instance cleanup query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.4, 2.0
    • 1.3.4, 2.0-beta3
    • BPEL Runtime
    • None

    Description

      When the ODE Runtime is configured to use hibernate and executes a CronJob to cleanup stale instances it sets the InstanceFilter pid QName value as part of the query

      http://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/cron/RuntimeDataCleanupRunnable.java#restoreFromDetailsMap

      However, in the hibernate QL the pi.process.id is queried by instead of the pi.process.processId and a ClassCastException is thrown

      http://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/CriteriaBuilder.java#buildHQLQuery

      After changing

      filters.append(" pi.process.id ").append(cmp).append(" :pid").append(m);

      to
      filters.append(" pi.process.processId ").append(cmp).append(" :pid").append(m);

      The axis-war ProcessCronCleanupTest passed for me

      Attachments

        Activity

          People

            vanto Tammo van Lessen
            aaronanderson Aaron Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: