Message "Unexpected error during processing: query result offset is not supported" when running REST API query with pageSize parameter due to the Hibernate version that is packaged with RHPAM

Solution Unverified - Updated -

Issue

  • The following REST API does not work due to Hibernate issue HHH-10498:

    curl -X GET "http://<server>/kie-server/services/rest/server/queries/tasks/instances/test?status=Created&status=Ready&status=Reserved&groups=&user=test&page=2&pageSize=10&sortOrder=true
    
    • RHPAM is shifted with Hibernate 5.1.x library which is affected with Hibernate issue HHH-10498;
    • How to override the default version of the Hibernate jar i.e. from 5.1.10.Final-redhat-1 to 5.2.17.Final?
  • Message Unexpected error during processing: query result offset is not supported when running REST API query with pageSize parameter due to the Hibernate version that is packaged with RHPAM;

Environment

  • Red Hat Process Automation Manager 7.0.1;
  • DB2;
  • Executing the following REST API:

      curl -X GET "http://<server>/kie-server/services/rest/server/queries/tasks/instances/test?status=Created&status=Ready&status=Reserved&groups=&user=test&page=2&pageSize=10&sortOrder=true
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.