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)
- duplicates
-
RHPAM-1900 XStream marshaller does not work with PMML on exec server
- Closed