Details
-
Bug
-
Resolution: Done
-
Major
-
5.0.0.M4
-
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