Bug 1222829 - Rules are not getting fired when JAXB request is sent
Summary: Rules are not getting fired when JAXB request is sent
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Kie-Server
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR2
: 6.2.0
Assignee: Edson Tirelli
QA Contact: Jakub Schwan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-19 09:18 UTC by Anton Giertli
Modified: 2020-03-27 20:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:10:06 UTC
Type: Bug
Embargoed:


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

Description Anton Giertli 2015-05-19 09:18:06 UTC
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 09:19:00 UTC
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 09:19:41 UTC
Created attachment 1027050 [details]
[1] kjar

KJAR which needs to be deployed into Decision Server

Comment 7 Edson Tirelli 2015-09-01 00:52:03 UTC
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 19:10:38 UTC
This is working in 6.2

Comment 9 Karel Suta 2015-11-06 11:33:16 UTC
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 11:42:28 UTC
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 17:45:42 UTC
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 14:28:58 UTC
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 17:02:43 UTC
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 12:55:00 UTC
Verified in 6.2.0 CR2


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