[
https://issues.jboss.org/browse/DROOLS-1591?page=com.atlassian.jira.plugi...
]
Mario Fusco resolved DROOLS-1591.
---------------------------------
Resolution: Rejected
In this case you'll have to pass the ClassLoader when the stream is deserialized like
in
{code}
ClassLoader cl = ( (KnowledgeBuilderImpl) kbuilder
).getBuilderConfiguration().getClassLoader();
streamKnowledgePackages = (Collection<KnowledgePackage>)
DroolsStreamUtils.streamIn(byteArray, cl);
{code}
However be aware that you're using internal drools classes that don't belong to
our public API and then could change with every minor release. This is strongly
discouraged.
Problems in serialization/deserialization of KnowledgePackages
--------------------------------------------------------------
Key: DROOLS-1591
URL:
https://issues.jboss.org/browse/DROOLS-1591
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.5.0.Final, 7.0.0.Beta3
Reporter: VĂtor Moreira
Assignee: Mario Fusco
Attachments: jboss_issue.tar.gz
Using {{DroolsStreamUtils}}, created an unit-test to serialize and deserialize a DRL
file. In version "6.0.1.Final", the unit-test runs flawlessly. In other
versions, deserialization gives an ClassNotFoundException for the declared event.
I've checked StackOverflow and Drools' JIRA for similar problems and found
nothing.
I've also attached a junit. Please change property {{drools.version}} to test with
different Drools versions.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)