Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2913

DefaultSolutionManager NPE with DrlScoreDirector

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 8.37.0.Final
    • 8.35.0.Final
    • optaplanner-core
    • None
    • Hide

      See attached files.

      Try to use a SolutionManager which has a DrlScoreDirector to explain a score on a Solution type.

      Show
      See attached files. Try to use a SolutionManager which has a DrlScoreDirector to explain a score on a Solution type.
    • NEW
    • NEW

      When using an OptaPlanner implementation which still uses Drools scoring, DefaultSolutionManager::callScoreDirector (through "explain") throws a NullPointerException` due to the DrlScoreDirector having never called resetScoreHolder.

        1. ExampleDrl.drl
          0.2 kB
          Ryan Moser
        2. optaplanner_reproducer_main_2023-03-23.java
          0.3 kB
          Ryan Moser
        3. vehicleRoutingSolverConfig.xml
          2 kB
          Ryan Moser

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              ryanmoser Ryan Moser (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: