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

PMML marshalling using XSTREAM does not work with Java 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.4.1.GA
    • None
    • PMML
    • None
    • OpenJdk 11

    • 1
    • CR1
    • Hide

      Run ApplyScorecardModelIntegrationTest in Droolsjbpm integration with Java11 and XStream marshaller.

      Show
      Run ApplyScorecardModelIntegrationTest in Droolsjbpm integration with Java11 and XStream marshaller.
    • 2019 Week 14-16, 2019 Week 17-19, 2019 Week 20-22, 2019 Week 23-25, 2019 Week 26-28, 2019 Week 29-31

    Description

      PMML marshalling using XSTREAM fails with following stacktrace:
      com.thoughtworks.xstream.converters.ConversionException:

      ---- Debugging information ----
      cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
      cause-message : org.kie.pmml.pmml_4_2.model.SimpleScorecardScoreCardData
      class : org.kie.pmml.pmml_4_2.model.ScoreCard
      required-type : org.kie.pmml.pmml_4_2.model.ScoreCard
      converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
      path : /response/result/result[2]/org.kie.api.pmml.PMML4Result/resultVariables/entry[2]/org.kie.pmml.pmml_4_2.model.ScoreCard/holder
      line number : 27
      class[1] : java.util.HashMap
      converter-type[1] : com.thoughtworks.xstream.converters.collections.MapConverter
      class[2] : org.kie.api.pmml.PMML4Result
      class[3] : org.drools.core.runtime.impl.ExecutionResultImpl
      converter-type[2] : org.drools.core.runtime.help.impl.XStreamXML$BatchExecutionResultConverter
      class[4] : org.kie.server.api.model.ServiceResponse
      version : 7.4.0.redhat-20190306
      -------------------------------
      at org.kie.server.integrationtests.drools.pmml.ApplyScorecardModelIntegrationTest.testApplyPmmlScorecard(ApplyScorecardModelIntegrationTest.java:94)
      Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: org.kie.pmml.pmml_4_2.model.SimpleScorecardScoreCardData
      at org.kie.server.integrationtests.drools.pmml.ApplyScorecardModelIntegrationTest.testApplyPmmlScorecard(ApplyScorecardModelIntegrationTest.java:94)

      Attachments

        Issue Links

          Activity

            People

              lleveric Lance Leverich (Inactive)
              jpetrlik@redhat.com Jiri Petrlik
              Jiri Petrlik Jiri Petrlik
              Jiri Petrlik Jiri Petrlik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: