[rules-users] com.google.protobuf.InvalidProtocolBufferException thrown when deserializing

2012-07-23 Thread chrisLi
Hi Droolers, I am using DroolsObjectOutputStream/DroolsObjectInputStream to serialize/deserialzie a Stateful knowledgeSession. The process of serialziation worked well and the size of the file containing the serialzied infomation is about 150M. However, when I tried to deserialize the

Re: [rules-users] com.google.protobuf.InvalidProtocolBufferException thrown when deserializing

2012-07-23 Thread chrisLi
Hi Laune, Thank you very much for your quick response. I did not understand your response very clearly. Could you explain it in more detail. Thank you! -- View this message in context:

[rules-users] Serialization issue with StateKnowledgeSession

2012-07-12 Thread chrisLi
Hi, all I have a requirement to serialzie a stateful session as a snapshot. private void serialize(OutputStream out) throws IOException{ System.out.println(writing); DroolsObjectOutputStream droolsOut = new DroolsObjectOutputStream(

Re: [rules-users] Serialization issue with StateKnowledgeSession

2012-07-12 Thread chrisLi
, I looked into Marshaller's API, and find the following method: StatefulKnowledgeSessionunmarshall(InputStream stream, KnowledgeSessionConfiguration config, Environment environment) which can take a KnowledgeSessionConfiguration parameter. With it we can configure the deserialized

[rules-users] Is it possible to serialzie the stateful session without stoping executing rules?

2012-07-12 Thread chrisLi
Hi, droolers, I need to serialize the session as a snapshot at 23:00 pm every day. So I want to do the serialization work in a different thread with session execution. Is it possible? Or is there any risk? Thank you very much -- View this message in context:

Re: [rules-users] Is it possible to serialzie the stateful session without stoping executing rules?

2012-07-12 Thread chrisLi
Thank you very much, laune -- View this message in context: http://drools.46999.n3.nabble.com/Is-it-possible-to-serialzie-the-stateful-session-without-stoping-executing-rules-tp4018645p4018648.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread chrisLi
Hi, All I am using Guvnor 5.4.0 Final with Tomcat 6.0.35. And I wanted to replace commons-lang2.4 with commons- lang3-3.1, so I overwrote the commons-lang2.4 jar file in Guvnor's WEB-INF/lib directory with commons- lang3-3.1.jar. However an error like follows occured: Service method 'public

Re: [rules-users] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread chrisLi
oops!I have not noticed this change. Thank you very much. -- View this message in context: http://drools.46999.n3.nabble.com/Error-occured-when-replacing-commons-lang2-4-with-commons-lang3-3-1-in-Guvnor-5-4-0-Final-tp4018584p4018586.html Sent from the Drools: User forum mailing list archive at

Re: [rules-users] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread chrisLi
Hi manstis, I have another question. I have created a model jar in Guvnor. And the classes in this jar have references to other classes out of this jar. But I do not wanted to create another model jar to contain the refered classes. So I packaged them into a jar file and put it into the

[rules-users] Write Error when Serializing a stateful session to a file.

2012-07-09 Thread chrisLi
Hi, all I am trying to serialize a StatefulKnowledgeSession into a file as a snapshot. But I got the following error: java.io.IOException: Write error at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:282)

Re: [rules-users] Does Drools Fusion consume a lot of memory?

2012-06-28 Thread chrisLi
Oops! I did not retract these two accounts after the transaction has been processed. I thought these two accounts may be used later. I attempted to update these two accounts with session.update(facthandle, object) with assertbehaviour setting to equality. However, no rules were fired.

[rules-users] Does a StatefulKnowledgeSession still change when it is being serialized?

2012-06-25 Thread chrisLi
Hi All, The business requirement needs me to serialize a statefule session into a file. However, the session object may be huge, which may take 500M memory space. So it will take several seconds to serialize it. During the serialization process, the session may still in use, such as

[rules-users] Is a single StatefulKnowledgeSession with Distributed Memory cache possible?

2012-06-14 Thread chrisLi
Hi All, I am working on a banking fraud detection project with Drools Fusion, which will match a transaction against hunreds of rules to check whether the transaction is suspicious. In some rules, I use time-based sliding window to calculate the average transaction amount of an

Re: [rules-users] Is a single StatefulKnowledgeSession with Distributed Memory cache possible?

2012-06-14 Thread chrisLi
Hi, Thank you very much for so qucik response. I cannot even believe it! As far as I know, the Fusion engine has to store the event details for sliding windows. Because if an event in the window is expired, the Fusion engine still need this event details to update the accumulate