[rules-users] NPE in LeftTupleSetsImpl.removeUpdate

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[rules-users] NPE in LeftTupleSetsImpl.removeUpdate

dzeigler@gmail.com
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] NPE in LeftTupleSetsImpl.removeUpdate

Davide Sottara
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] NPE in LeftTupleSetsImpl.removeUpdate

Mark Proctor
try 6.1.x, this is being released as we speak:

Mark
On 31 Jul 2014, at 02:48, Davide Sottara <[hidden email]> 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
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] NPE in LeftTupleSetsImpl.removeUpdate

dzeigler@gmail.com
I just ran into the same NPE again in 6.1.0.Final.  I'm still doubtful I can reproduce the issue consistently as I've been running 6.1.0 for a couple weeks now without incident, but I'll follow back up if I figure something out.  Please let me know if I can provide any additional info.

Thanks,
David

java.lang.NullPointerException
        at org.drools.core.common.LeftTupleSetsImpl.removeUpdate(LeftTupleSetsImpl.java:177)
        at org.drools.core.common.LeftTupleSetsImpl.addDelete(LeftTupleSetsImpl.java:89)
        at org.drools.core.common.SynchronizedLeftTupleSets.addDelete(SynchronizedLeftTupleSets.java:20)
        at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteSegmentMemory(LeftInputAdapterNode.java:336)
        at org.drools.core.reteoo.LeftInputAdapterNode.doDeleteObject(LeftInputAdapterNode.java:298)
        at org.drools.core.reteoo.LeftInputAdapterNode.retractLeftTuple(LeftInputAdapterNode.java:413)
        at org.drools.core.reteoo.ObjectTypeNode.doRetractObject(ObjectTypeNode.java:354)
        at org.drools.core.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:337)
        at org.drools.core.reteoo.EntryPointNode.retractObject(EntryPointNode.java:379)
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] NPE in LeftTupleSetsImpl.removeUpdate

Mario Fusco
Hi David,

sorry but it's impossible for us to figure out what's going wrong in your case just looking at the stack trace you sent. Have you been able to consistently reproduce this problem? If so could you open a ticket on jira and share your reproducer there?

Thanks,
Mario