I'm getting the following stack when trying to serialize a session containing
one running process:
java.io.NotSerializableException:
org.drools.workflow.instance.impl.NodeInstanceFactoryRegistry
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.drools.RuleBaseConfiguration.writeExternal(RuleBaseConfiguration.java:191)
at
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.drools.common.AbstractRuleBase.writeExternal(AbstractRuleBase.java:204)
at org.drools.reteoo.ReteooRuleBase.writeExternal(ReteooRuleBase.java:185)
at
org.drools.impl.KnowledgeBaseImpl.writeExternal(KnowledgeBaseImpl.java:81)
at
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
The call is thrown from this line of code:
droolsOut.writeObject(session.getKnowledgeBase());
Is this a legitimate bug in Drools? Or is this because something in my
knowledge base is not serializable? The
"org.drools.workflow.instance.impl.NodeInstanceFactoryRegistry" is what is
confusing me if this is my issue or a Drools issue.
Thanks!
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Error-when-trying-to-...
Sent from the Drools - User mailing list archive at
Nabble.com.