0 Replies Latest reply on Aug 1, 2014 11:42 AM by Ahamed M M

    Unmarshalling Facts with XStream in Drools v6

    Ahamed M M Newbie

      How does drools-camel-server unmarshal facts that are not available in the classpath? i.e when KieModule is loaded dynamically.

      I am trying to replace camel with spring in execution server. When I issue commands without facts it works fine. But with facts that are dynamically loaded, the unmarshal fails, hence the execution fails.



      The mortgages kjar is dynamically loaded.


      <batch-execution lookup="mortgages:mortgages:ikSession">
        <insert out-identifier="10101" return-object="true" entry-point="DEFAULT">


      ---- Debugging information ----
      message : org.mortgages.Applicant
      cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
      cause-message : org.mortgages.Applicant
      class : org.drools.core.command.runtime.rule.InsertObjectCommand
      required-type : org.drools.core.command.runtime.rule.InsertObjectCommand
      converter-type : org.drools.core.runtime.help.impl.XStreamXML$InsertConverter
      path : /batch-execution/insert/org.mortgages.Applicant
      line number : 3
      class[1] : org.drools.core.command.runtime.BatchExecutionCommandImpl
      converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
      version : null