[rules-users] StackOverflow when serializing KieBase
Hi all, when I try to serialize a rather large KieBase I constantly get the aforementioned error. After a bit of tracking I see that the error seems to appear when the KnowledgeBase try to serialize the Rete object. I belive this is not an infinite loop because it seems that the graph is quite deep and the serializer recursively calls writeExternal in a (sort of) depth-first fashion. Increasing the stack size didn't really help, so I'm asking if there's a better way or if I should give up. Thanks :) Federico. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] StackOverflow when serializing KieBase
It should work, there should not be too much recursion. I’d suggest digging deeper to see if you can point us to the references that are suspect. Mark On 30 Jul 2014, at 17:28, Federico Bertola federico.bertol...@gmail.com wrote: Hi all, when I try to serialize a rather large KieBase I constantly get the aforementioned error. After a bit of tracking I see that the error seems to appear when the KnowledgeBase try to serialize the Rete object. I belive this is not an infinite loop because it seems that the graph is quite deep and the serializer recursively calls writeExternal in a (sort of) depth-first fashion. Increasing the stack size didn't really help, so I'm asking if there's a better way or if I should give up. Thanks :) Federico. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] NPE in LeftTupleSetsImpl.removeUpdate
Hi, I'm using drools 6.0.1.Final. I received a NPE in the org.drools.core.common.LeftTupleSetsImpl.removeUpdate() method on line 172, which corresponds to this line for 6.0.1.Final: previous.setStagedNext( next ); I see 2 commits in 6.1.0 to address NPEs in this class but I'm not sure if either of those cover this particular NPE. I'm unable to reproduce this issue with my code after the first occurrence. Does anyone know if this has been fixed in 6.1.0? Please let me know if I can provide additional info or if I should open a defect in Jira. Thanks, David Here is the stack trace: java.lang.NullPointerException at org.drools.core.common.LeftTupleSetsImpl.removeUpdate( LeftTupleSetsImpl.java:172) at org.drools.core.common.LeftTupleSetsImpl.addDelete( LeftTupleSetsImpl.java:84) at org.drools.core.common.SynchronizedLeftTupleSets.addDelete( SynchronizedLeftTupleSets.java:20) at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteSegmentMemory( LeftInputAdapterNode.java:339) at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteObject( LeftInputAdapterNode.java:301) at org.drools.core.reteoo.LeftInputAdapterNode.retractLeftTuple( LeftInputAdapterNode.java:417) at org.drools.core.reteoo.ObjectTypeNode.doRetractObject( ObjectTypeNode.java:352) at org.drools.core.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:335) at org.drools.core.reteoo.EntryPointNode.retractObject(EntryPointNode.java:395) at org.drools.core.common.NamedEntryPoint.delete(NamedEntryPoint.java:605) at org.drools.core.common.AbstractWorkingMemory.delete( AbstractWorkingMemory.java:1184) at org.drools.core.common.AbstractWorkingMemory.delete( AbstractWorkingMemory.java:1176) at org.drools.core.impl.StatefulKnowledgeSessionImpl.delete( StatefulKnowledgeSessionImpl.java:316) ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] NPE in LeftTupleSetsImpl.removeUpdate
It has almost certainly been fixed in 6.1 Davide On 07/31/2014 03:40 AM, David Zeigler wrote: Hi, I'm using drools 6.0.1.Final. I received a NPE in the org.drools.core.common.LeftTupleSetsImpl.removeUpdate() method on line 172, which corresponds to this line for 6.0.1.Final: previous.setStagedNext( next ); I see 2 commits in 6.1.0 to address NPEs in this class but I'm not sure if either of those cover this particular NPE. I'm unable to reproduce this issue with my code after the first occurrence. Does anyone know if this has been fixed in 6.1.0? Please let me know if I can provide additional info or if I should open a defect in Jira. Thanks, David Here is the stack trace: java.lang.NullPointerException at org.drools.core.common.LeftTupleSetsImpl.removeUpdate(LeftTupleSetsImpl.java:172) at org.drools.core.common.LeftTupleSetsImpl.addDelete(LeftTupleSetsImpl.java:84) at org.drools.core.common.SynchronizedLeftTupleSets.addDelete(SynchronizedLeftTupleSets.java:20) at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteSegmentMemory(LeftInputAdapterNode.java:339) at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteObject(LeftInputAdapterNode.java:301) at org.drools.core.reteoo.LeftInputAdapterNode.retractLeftTuple(LeftInputAdapterNode.java:417) at org.drools.core.reteoo.ObjectTypeNode.doRetractObject(ObjectTypeNode.java:352) at org.drools.core.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:335) at org.drools.core.reteoo.EntryPointNode.retractObject(EntryPointNode.java:395) at org.drools.core.common.NamedEntryPoint.delete(NamedEntryPoint.java:605) at org.drools.core.common.AbstractWorkingMemory.delete(AbstractWorkingMemory.java:1184) at org.drools.core.common.AbstractWorkingMemory.delete(AbstractWorkingMemory.java:1176) at org.drools.core.impl.StatefulKnowledgeSessionImpl.delete(StatefulKnowledgeSessionImpl.java:316) ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] NPE in LeftTupleSetsImpl.removeUpdate
try 6.1.x, this is being released as we speak: http://downloads.jboss.org/drools/release/snapshot/6.1.x/ Mark On 31 Jul 2014, at 02:48, Davide Sottara dso...@gmail.com wrote: It has almost certainly been fixed in 6.1 Davide On 07/31/2014 03:40 AM, David Zeigler wrote: Hi, I'm using drools 6.0.1.Final. I received a NPE in the org.drools.core.common.LeftTupleSetsImpl.removeUpdate() method on line 172, which corresponds to this line for 6.0.1.Final: previous.setStagedNext( next ); I see 2 commits in 6.1.0 to address NPEs in this class but I'm not sure if either of those cover this particular NPE. I'm unable to reproduce this issue with my code after the first occurrence. Does anyone know if this has been fixed in 6.1.0? Please let me know if I can provide additional info or if I should open a defect in Jira. Thanks, David Here is the stack trace: java.lang.NullPointerException at org.drools.core.common.LeftTupleSetsImpl.removeUpdate(LeftTupleSetsImpl.java:172) at org.drools.core.common.LeftTupleSetsImpl.addDelete(LeftTupleSetsImpl.java:84) at org.drools.core.common.SynchronizedLeftTupleSets.addDelete(SynchronizedLeftTupleSets.java:20) at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteSegmentMemory(LeftInputAdapterNode.java:339) at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteObject(LeftInputAdapterNode.java:301) at org.drools.core.reteoo.LeftInputAdapterNode.retractLeftTuple(LeftInputAdapterNode.java:417) at org.drools.core.reteoo.ObjectTypeNode.doRetractObject(ObjectTypeNode.java:352) at org.drools.core.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:335) at org.drools.core.reteoo.EntryPointNode.retractObject(EntryPointNode.java:395) at org.drools.core.common.NamedEntryPoint.delete(NamedEntryPoint.java:605) at org.drools.core.common.AbstractWorkingMemory.delete(AbstractWorkingMemory.java:1184) at org.drools.core.common.AbstractWorkingMemory.delete(AbstractWorkingMemory.java:1176) at org.drools.core.impl.StatefulKnowledgeSessionImpl.delete(StatefulKnowledgeSessionImpl.java:316) ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users