Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1222829 - Rules are not getting fired when JAXB request is sent
Rules are not getting fired when JAXB request is sent
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Kie-Server (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity high
: CR2
: 6.2.0
Assigned To: Maciej Swiderski
Jakub Schwan
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-19 05:18 EDT by Anton Giertli
Modified: 2015-12-03 07:55 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
[0] jaxb request generator (6.04 KB, application/zip)
2015-05-19 05:19 EDT, Anton Giertli
no flags Details
[1] kjar (6.71 KB, application/zip)
2015-05-19 05:19 EDT, Anton Giertli
no flags Details
stacktrace (9.90 KB, text/plain)
2015-11-06 06:33 EST, Karel Suta
no flags Details

  None (edit)
Description Anton Giertli 2015-05-19 05:18:06 EDT
Description of problem:

Decision Server is not firing rules when JAXB Request is sent, including Custom Objects (i.e. Person)
Version-Release number of selected component (if applicable):
6.1.0

How reproducible:
always

Steps to Reproduce:
1. Deploy KJAR JAXBTest-1.9.jar into Kie-Decision server
2. Add this KJAR on the classpath on decision-rest-generator.zip
3. Run the decision-rest-generator.zip which will generates couple of JAXB xml request 
4. Send one of this request to the Decision Server which is bound to the attached kjar



Actual results:
Rule is not fired

Expected results:
Rule is fired

Additional info:
Two approaches are used in the request generator

1) One is generating JAXBContext using *.xsd file
2) Is including FQCN of the Custom Objects in the JAXBContext

none of these approaches will generate a request which will result in the rule being fired. Custom Model IS (hopefully) correctly annotated with javax.xml annotations.
Comment 1 Anton Giertli 2015-05-19 05:19:00 EDT
Created attachment 1027049 [details]
[0] jaxb request generator

Generates JAXB XML Request which can be sent with your favorite REST client to the Decision Server
Comment 2 Anton Giertli 2015-05-19 05:19:41 EDT
Created attachment 1027050 [details]
[1] kjar

KJAR which needs to be deployed into Decision Server
Comment 7 Edson Tirelli 2015-08-31 20:52:03 EDT
Version 6.1 only supports XStream payloads for the commands. 

Version 6.2 has full support for JAXB, JSON and XSTREAM.
Comment 8 Edson Tirelli 2015-09-04 15:10:38 EDT
This is working in 6.2
Comment 9 Karel Suta 2015-11-06 06:33 EST
Created attachment 1090629 [details]
stacktrace

Tried to create new container with mentioned kjar to kie server, but it failed with error message listed in attachment.
Comment 10 Karel Suta 2015-11-06 06:42:28 EST
Missing class from stacktrace seems to be included in drools-workbench-models-guided-dtable artifact, it is referenced from org.drools.compiler.compiler.GuidedDecisionTableFactory.
Comment 11 Maciej Swiderski 2015-11-16 12:45:42 EST
fixed on master

droolsjbpm-integration
master:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/bebe30660578e692f211a0343cc4d5ecf6de01ca

in case it should be back ported to 6.3.x please reassign back to me
Comment 12 Maciej Swiderski 2015-11-19 09:28:58 EST
moving back to modified as the fix exists only on master. updated target release to be 6.3.0
Comment 13 Maciej Swiderski 2015-11-19 12:02:43 EST
fixed back ported to 6.3.x on request

droolsjbpm-integration
6.3.x:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/c4e079afe2c25e4b11ac5d7358e64e667dec53b0

moved out from target release 6.3.0 and set milestone CR2
Comment 14 Jakub Schwan 2015-12-03 07:55:00 EST
Verified in 6.2.0 CR2

Note You need to log in before you can comment on or make changes to this bug.