[
https://issues.redhat.com/browse/DROOLS-5668?page=com.atlassian.jira.plug...
]
Sylvain Lemoine commented on DROOLS-5668:
-----------------------------------------
In the reproducer, I think that I serialized / deserialized the session not the kiebase
in 7.0.0:
{code:java}
Marshaller marshaller = MarshallerFactory.newMarshaller(kieBase);
final long l = System.currentTimeMillis();
Path path = Paths.get(TMP_DIR, +l + "_drools_7.0.0_session");
try (OutputStream os = new FileOutputStream(path.toFile())) {
marshaller.marshall(os, kieSession);
}{code}
and then I read it back in 7.43.1
{code:java}
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer = kieServices.getKieClasspathContainer();
KieBase kieBase = kContainer.getKieBase();
Marshaller marshaller = MarshallerFactory.newMarshaller(kieBase);
try (InputStream is = new FileInputStream(file)) {
marshaller.unmarshall(is);
}{code}
did I miss something here ?
Latest drools minor versions broke deserialization from earliest 7.x
version due to changes made on the serialization/deserialization of node memories
------------------------------------------------------------------------------------------------------------------------------------------------------
Key: DROOLS-5668
URL:
https://issues.redhat.com/browse/DROOLS-5668
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.43.1.Final
Reporter: Sylvain Lemoine
Assignee: Mario Fusco
Priority: Major
Attachments: drools-node-memories-serialization.tar.gz
Latest drools minor versions broke deserialization from earliest 7.x version due to
changes made on the serialization/deserialization
of node memories. For instance it happens if a serialization has been done with earliest
version and accumulate node.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)