[jboss-jira] [JBoss JIRA] Created: (JBRULES-1911) package compiled by the drools-ant task cannot be used by KnowledgeBuilder nor old RuleAgent

Michal Bali (JIRA) jira-events at lists.jboss.org
Sat Jan 10 10:05:04 EST 2009


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

                 Key: JBRULES-1911
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1911
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-ant
    Affects Versions:  5.0.0.M4
            Reporter: Michal Bali
            Assignee: Mark Proctor


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list