[rules-users] NullPointerException while deleting the rule package

Edson Tirelli tirelli at post.com
Thu Jul 12 10:04:57 EDT 2007


    This problem was supposed to be fixed in MR3. Can you please provide a
self contained test and attach it to a JIRA so I can investigate and fix?

    Thank you,
      Edson

2007/7/12, Sarika Khamitkar <skhamitkar at risklabs.com>:
>
>  This is the again regarding the NullPointerException issue. Sorry for
> resending this message again. But I would really appreciate a response on
> how this can be resolved.
>
> The following is the exception I get while removing a package from the
> RuleBase.
>
> java.lang.NullPointerException
>
>             at
> org.drools.reteoo.CompositeObjectSinkAdapter.removeObjectSink(
> CompositeObjectSinkAdapter.java:125)
>
>             at org.drools.reteoo.ObjectSource.removeObjectSink(
> ObjectSource.java:123)
>
>             at org.drools.reteoo.ObjectTypeNode.removeObjectSink(
> ObjectTypeNode.java:297)
>
>             at org.drools.reteoo.ObjectTypeNode.remove(ObjectTypeNode.java
> :232)
>
>             at org.drools.reteoo.AlphaNode.remove(AlphaNode.java:187)
>
>             at org.drools.reteoo.AlphaNode.remove(AlphaNode.java:187)
>
>             at org.drools.reteoo.BetaNode.remove(BetaNode.java:185)
>
>             at org.drools.reteoo.BetaNode.remove(BetaNode.java:187)
>
>             at org.drools.reteoo.RuleTerminalNode.remove(
> RuleTerminalNode.java:439)
>
>             at org.drools.reteoo.ReteooBuilder.removeRule(
> ReteooBuilder.java:135)
>
>             at org.drools.reteoo.ReteooRuleBase.removeRule(
> ReteooRuleBase.java:259)
>
>             at org.drools.common.AbstractRuleBase.removePackage(
> AbstractRuleBase.java:408)
>
> ….
>
>
>
> This exception has been occurring after I recently switched to 4.0 MR3.
>
>
>
> Thanks.
>
>
>
>
>  ------------------------------
>
> *From:* rules-users-bounces at lists.jboss.org [mailto:
> rules-users-bounces at lists.jboss.org] *On Behalf Of *Sarika Khamitkar
> *Sent:* Wednesday, July 11, 2007 6:31 PM
> *To:* rules-users at lists.jboss.org
> *Subject:* [rules-users] NullPointerException while deleting the rule
> package
>
>
>
> Sorry for resending the message. This is an urgent issue and if anybody
> has encountered this problem, can you please let me know how it can be
> resolved?
>
>
>
> If I have over 3 packages in the RuleBase and I try to remove one of those
> packages, then I get a NullPointerException.
>
>
>
> Thanks.
>
>
>
>
>  ------------------------------
>
> *From:* rules-users-bounces at lists.jboss.org [mailto:
> rules-users-bounces at lists.jboss.org] *On Behalf Of *Sarika Khamitkar
> *Sent:* Wednesday, July 11, 2007 3:34 PM
> *To:* rules-users at lists.jboss.org
> *Subject:* [rules-users] NullPointerException while deleting the rule
> package
>
>
>
> Hi,
>
>
>
> I am trying a remove a rule from the RuleBase using the following syntax
> and get a NullPointerException:
>
> ruleBase.removePackage("rule2392016206");
>
>
>
> Before removing the package, I am iterating through all the packages in
> the ruleBase and I can see this package name in the list. I am not sure why
> this exception is being thrown then.
>
> I am using 4.0 MR3.
>
>
>
> Has this feature changed since 3.0.6?
>
>
>
> Thanks.
>
>
>
> Sarika
>
>
>
>
>
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070712/119885ec/attachment.html 


More information about the rules-users mailing list