Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6643

KieModuleMarshaller initializes java.awt classes at build time via xstream which breaks Quarkus native compilation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.59.0.Final
    • core engine
    • None
    • 2021 Week 43-45 (from Oct 25)
    • NEW
    • NEW

    Description

      Since Quarkus changed java.awt classes to be run-time initialized, OptaPlanner native compilation started failing as the KieModuleMarshaller is initialized at build time and depends on java.awt classes through XStream (see the attached stacktrace).

      There is already a workaround in place that changes the KieModuleMarshaller initialization to the run time (https://github.com/kiegroup/optaplanner/pull/1594), yet this issue should be better fixed closer to its source.

      Please see https://github.com/quarkusio/quarkus/issues/20491 for more details.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rsynek@redhat.com Radovan Synek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: