Ok, did that and it still only works when serializing using
DroolsStreamUtils.streamOut and using a KnowledgeAgent to construct the
KnowledgeBase from the serialized package, but it does work with multiple
resources in the same logical package when serializing.
Still fails when trying to use Know
After further testing, here's what I am seeing.
GOAL: Serialize a KnowledgePackage object (or Collection of them) to a File,
read that file in as a PKG to create a KnowledgeBase
I have not gotten basic Java Serialization to work. I get the exception from
the previous post every time I try to cre
I've tried to clean up my testing to be sure and created a few different
scenarios. All of them end with the same result:
java.lang.ClassCastException: [B
at org.drools.rule.Package.readExternal(Package.java:197)
at
org.drools.definitions.impl.KnowledgePackageImp.readExternal(Know
Did you actually get this to work? I have tried both ways to create a .PKG
mentioned here and still haven't got it to work.
FILE CREATION CODE (Commented out portions are for direct serialization):
public static void createPKG(Collection kpkgs, File
file)
throws IOException, FileNotFound