-
Bug
-
Resolution: Done
-
Critical
-
6.x.x
-
None
-
Release Notes
-
-
-
-
-
-
DR2
-
Description of problem:
Kie server is unable to correctly marshall score of OptaPlanner's best solution.
This issue affects mainly JAXB, although there are problems also with JSON.
XSTREAM seems to handle marshalling correctly.
See [1]
Version-Release number of selected component (if applicable):
Kie server 6.3.0.ER2
How reproducible:
Reproducer in PR https://github.com/droolsjbpm/droolsjbpm-integration/pull/422
Steps to Reproduce:
1. Run OptaPlanner integration test in [2] , method testGetBestSolution().
2. Check score value for returned best solution for different marshallings.
3.
Actual results:
Best solution score is incorrectly unmarshalled. Response contains empty score or score with default value.
Expected results:
Best solution score is unmarshalled correctly.
Additional info:
[1] https://issues.jboss.org/browse/PLANNER-565
[2] https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-tests/kie-server-integ-tests-optaplanner/src/test/java/org/kie/server/integrationtests/optaplanner/OptaplannerIntegrationTest.java
- incorporates
-
PLANNER-610 Jackson (JSON) Score binders support
- Resolved
-
PLANNER-565 JAXB Score binding: ScoreXmlAdapter
- Resolved
-
PLANNER-560 The score of the bestSolution is set before it is (fully) initialized, but from Solver.getBestSolution() it's not detectable that it's not yet initialized
- Resolved
-
PLANNER-564 Concurrency issue when retrieving unitialized best solution
- Resolved
-
PLANNER-405 Score should keep track of the uninitialized variable count
- Resolved