Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-8

Deserialization error in query method of QueryServicesClient with advanced custom query in BPMS 6.4.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.GA
    • 6.x.x
    • Kie-Server
    • Advanced Queries in Kie-Server (BxMS 6.4.5);
      Custom Builder and Mapper;

    • CR1
    • Hide

      1. Download reproducer attached;
      2. Deploy groupownerfilter-0.0.1-SNAPSHOT.jar and rawlistextender-0.0.1-SNAPSHOT.jar to kie-server.war/WEB-INF/lib directory (their source code can be found in decision-server-query project);
      3. Make the needed adjustments to "QueryCuTest2.java" class as described in README.txt file within zip reproducer directory and run QueryCuTest2.java class.
      4. It should print zero tasks, even though it had results to deserialize.

      Show
      1. Download reproducer attached; 2. Deploy groupownerfilter-0.0.1-SNAPSHOT.jar and rawlistextender-0.0.1-SNAPSHOT.jar to kie-server.war/WEB-INF/lib directory (their source code can be found in decision-server-query project); 3. Make the needed adjustments to "QueryCuTest2.java" class as described in README.txt file within zip reproducer directory and run QueryCuTest2.java class. 4. It should print zero tasks, even though it had results to deserialize.

      An empty list is returned by using custom mapper and builder in an advanced query in kie-server. It works well by using QueryFilterSpec... therefore it seems to be related to the way as the result is deserialized.

      See query(String queryName, String mapper, QueryFilterSpec filterSpec, Integer page, Integer pageSize, Class<T> resultType) method, it has a Cast to Wrapped type which is used in this case to Cast result.

      However, query(String queryName, String mapper, String builder, Map<String, Object> parameters, Integer page, Integer pageSize, Class<T> resultType) method only Cast to "ItemList", therefore it returns a "Collections.emptyList();".

      See a sample attached to reproduce the issue.

            swiderski.maciej Maciej Swiderski (Inactive)
            rhn-support-ajuricic Amana Juricic
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: