Incorrect Hibernate QL clause in instance cleanup query
-------------------------------------------------------

                 Key: ODE-800
                 URL: https://issues.apache.org/jira/browse/ODE-800
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
    Affects Versions: 1.3.4, 2.0
            Reporter: Aaron Anderson
            Priority: Minor


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


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

Reply via email to