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

3 JAXB mapping problems in org.kie.server.api.model.dmn and org.optaplanner.core.impl.solver packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None

      When working with DROOLS-6566, I tried running org.kie.karaf.itest.kieserver.KieServerClientKarafIntegrationJaxbIntegrationTest.

      In the logs I found JAXB problem, which actually clearly describes where's the problem:

      list = {java.util.ArrayList@8719}  size = 3
       0 = {com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationException@8721} "org.kie.dmn.api.core.DMNMessage is an interface, and JAXB can't handle interfaces.
      	this problem is related to the following location:
      		at org.kie.dmn.api.core.DMNMessage
      		at public java.util.List org.kie.server.api.model.dmn.DMNDecisionResultKS.getMessages()
      		at org.kie.server.api.model.dmn.DMNDecisionResultKS"
       1 = {com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationException@8722} "org.optaplanner.core.impl.solver.ProblemFactChange is an interface, and JAXB can't handle interfaces.
      	this problem is related to the following location:
      		at org.optaplanner.core.impl.solver.ProblemFactChange
      		at public org.optaplanner.core.impl.solver.ProblemFactChange org.kie.server.api.commands.optaplanner.AddProblemFactChangeCommand.getProblemFactChange()
      		at org.kie.server.api.commands.optaplanner.AddProblemFactChangeCommand"
       2 = {com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationException@8723} "org.kie.dmn.api.core.DMNDecisionResult is an interface, and JAXB can't handle interfaces.
      	this problem is related to the following location:
      		at org.kie.dmn.api.core.DMNDecisionResult
      		at public java.util.List org.kie.server.api.model.dmn.DMNResultKS.getDecisionResults()
      		at org.kie.server.api.model.dmn.DMNResultKS"
      

      I'm almost sure it's not OSGi specific (because JAXB implementation is taken from JDK itself). Please check if this JAXB problem occurs also in other integration tests.

            mfusco@redhat.com Mario Fusco
            ggrzybek Grzegorz Grzybek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: