Red Hat Bugzilla – Bug 1283208
KieServerClient JSON marshaling does not work for QueryResults and FactHandles
Last modified: 2016-04-06 22:07:48 EDT
Description of problem:
in case JSON (and JAXB to some extent - when no classes are added to JAXB context such as FlatQueryResults) it will client side will not properly deserialize response to proper object types.
Version-Release number of selected component (if applicable):
use JSON or JAXB content type and execute rules that involved use of QueryCommand to collect results
KieServerClient must be used as it's responsible for unmarshmaling response to complete object structure starting at ExecutionResultImpl
Steps to Reproduce:
response is partially unmarshalled and query results are unmarshalled to map of maps which is default for JSON unmarshaller when it cannot find proper object type
complete object is produced without map of maps for queries and fact handles
fixed on both master and 6.3.x:
Verified in 6.2.0CR2.
*** Bug 1315636 has been marked as a duplicate of this bug. ***