]
Toni Rikkola closed JBRULES-1911.
---------------------------------
Fix Version/s: 5.0.0.CR1
Resolution: Done
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: Toni Rikkola
Fix For: 5.0.0.CR1
Attachments: test_case.patch.txt
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: