Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1911

package compiled by the drools-ant task cannot be used by KnowledgeBuilder nor old RuleAgent

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.0.0.CR1
    • 5.0.0.M4
    • drools-ant
    • None

    Description

      Hi,
      package that was compiled by the drools-ant task cannot be used by KnowledgeBuilder nor RuleAgent.

      I've attached a modified DroolsAntTaskTest.java test case to show this. It tries to deserialize a package. It fails when using DroolsStreamUtils.streamIn(..) but it works with pure ObjectInputStream(..).readObject. I've noticed that the ant task uses pure ObjectOutputStream to serialize, however DroolsStreamUtils.streamIn(..) is used by org.drools.compiler.PackageBuilder.addKnowledgeResource and the old RuleAgent to deserialize.
      Thank you.
      Michal

      Attachments

        Activity

          People

            trikkola Toni Rikkola
            michalbali_jira Michal Bali (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty