Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-46

OptaPlanner Kie server: Cannot marshall best solution score

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0
    • 6.x.x
    • Kie-Server
    • None
    • Release Notes
    • DR2
    • Hide
      The Realtime Decision Server is unable to correctly marshall the score of Business Resource Planner's best solution. The best solution's score is incorrectly unmarshalled—The response contains an empty score or a score with the default value. The affected marshalling formats are JAXB (the functionality is entirely unavailable) and JSON (the only unmarshallable classes are BendableLongScore, BendableBigDecimalScore, and BendableScore). The XSTREAM format is not affected. There is currently no workaround.

      The Realtime Decision Server is unable to correctly marshall Business Resource Planner's best solution if called immediately, before the solver has had a chance to start. When running more solvers then the thread pool size (defaults to half the number of CPU cores), it can take a while before the solver to start.
      Show
      The Realtime Decision Server is unable to correctly marshall the score of Business Resource Planner's best solution. The best solution's score is incorrectly unmarshalled—The response contains an empty score or a score with the default value. The affected marshalling formats are JAXB (the functionality is entirely unavailable) and JSON (the only unmarshallable classes are BendableLongScore, BendableBigDecimalScore, and BendableScore). The XSTREAM format is not affected. There is currently no workaround. The Realtime Decision Server is unable to correctly marshall Business Resource Planner's best solution if called immediately, before the solver has had a chance to start. When running more solvers then the thread pool size (defaults to half the number of CPU cores), it can take a while before the solver to start.

      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

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            ksuta Karel Suta
            Karel Suta Karel Suta
            Tomas 'Sheldon' Radej Tomas 'Sheldon' Radej
            Karel Suta Karel Suta
            Edson Tirelli, Lukáš Petrovický (Inactive), Tomas 'Sheldon' Radej
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: