<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">This is unlikely to be the same
      exception that started the initial thread, but a problem
      nevertheless.. :(<br>
      could you create a self-contained test case and submit it?<br>
      Thanks<br>
      Davide<br>
      <br>
      On 01/13/2014 08:05 AM, Mark Proctor wrote:<br>
    </div>
    <blockquote
      cite="mid:22E63BB3-B4C1-4339-9E5D-3D11ADC656B1@codehaus.org"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>That was recreated on&nbsp;5.6.0.CR1 ? The 5.6 ship has sailed now
        :( and currently there are no plans for 5.7 any time soon. We
        should focus on making sure this is fixed in 6.x.</div>
      <div><br>
      </div>
      <div>Mark</div>
      <div>
        <div>On 12 Jan 2014, at 19:21, nxv &lt;<a moz-do-not-send="true"
            href="mailto:nxvanderlinden@gmail.com">nxvanderlinden@gmail.com</a>&gt;
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div style="font-size: 12px; font-style: normal; font-variant:
            normal; font-weight: normal; letter-spacing: normal;
            line-height: normal; orphans: auto; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            widows: auto; word-spacing: 0px; -webkit-text-stroke-width:
            0px;">Hello,<br>
            <br>
            I'm able to reproduce this issue with a KB containing only 1
            rule.<br>
            <br>
            rule "Qualification##ToControl"<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span>salience
            50<br>
            &nbsp;&nbsp;&nbsp;when<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span>$p:
            AccessRegisterSnapshot(<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span>$effDt:
            effectivedate )<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span>$dpo:
            DeliveryPoint()<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span>$gCfg:
            GeneralConfig(<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span>(
            todate == null ||<span class="Apple-converted-space">&nbsp;</span><br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-converted-space">&nbsp;</span>&nbsp;( todate after[ 0d
            ] $effDt &amp;&amp;<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-converted-space">&nbsp;</span>&nbsp;&nbsp;&nbsp;todate after[ 1ms
            ] fromdate ) ) )<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span><span
              class="Apple-tab-span" style="white-space: pre;"> </span>from
            $dpo.generalConfigs<br>
            &nbsp;&nbsp;&nbsp;then<br>
            &nbsp;&nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;"> </span><br>
            end<br>
            <br>
            This rule worked under drools 5.5.0.Final. &nbsp;<br>
            <br>
            Caused by: java.lang.NullPointerException at<br>
org.drools.base.evaluators.AfterEvaluatorDefinition$AfterEvaluator.evaluate(AfterEvaluatorDefinition.java:347)<br>
            <span class="Apple-tab-span" style="white-space: pre;"> </span>at
org.drools.base.EvaluatorWrapper.evaluate(EvaluatorWrapper.java:99)<br>
            <br>
            <br>
            <br>
            <br>
            Davide Sottara wrote<br>
            <blockquote type="cite">I tried to reproduce the problem,
              with no success.<br>
              Could you please create a self-contained unit test?<br>
              If confirmed, I'll fix the problem as soon as possible<br>
              Thanks<br>
              Davide<br>
              <br>
              On 11/14/2013 04:48 AM, abr wrote:<br>
              <blockquote type="cite">Hi everyone,<br>
                <br>
                I tried to switch from 5.5.0.Final to 5.6.0.CR1 and got
                a null pointer<br>
                exception in the evaluation of the after evaluator.<br>
                (Exact method is:<br>
/org.drools.base.evaluators.AfterEvaluatorDefinition.AfterEvaluator.evaluate(InternalWorkingMemory,<br>
                InternalReadAccessor, InternalFactHandle,
                InternalReadAccessor,<br>
                InternalFactHandle)/ )<br>
                <br>
                When debugging, the exception occurs at the very first
                line of the<br>
                method,<br>
                in:<br>
                / &nbsp;&nbsp;&nbsp;if ( extractor1.isNullValue( workingMemory,
                handle1.getObject() ) ||<span
                  class="Apple-converted-space">&nbsp;</span><br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extractor2.isNullValue( workingMemory,
                handle2.getObject() )<br>
                ) {<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;<br>
                &nbsp;&nbsp;&nbsp;}<br>
                /<br>
                The cause of the exception is that handle1 is null.<br>
                <br>
                The rule where the exception occurs looks like:<br>
                / &nbsp;&nbsp;&nbsp;MyFact(<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fromdate before[ 0d ] $min,<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;( todate == null || todate after[ 0d ] $max ) )<br>
                /<br>
                <br>
                When the exception occurs, /MyFact.fromdate/ is not
                null, /$min/ is not<br>
                null, /MyFact.todate/ is null, /$max/ is not null.<br>
                In AfterEvaluator.evaluate : /extractor1/ refers to
                /MyFact.todate/,<br>
                /extractor2/ refers to /$max/, /handle1/ is null,
                /handle2/ refers to the<br>
                fact including the attribute to which /$max/ variable is
                bound to.<br>
                <br>
                Of course, this worked fine in 5.5.0.Final.<br>
                I couldn't test this out in Drools 6.0.0.CR5 because I
                have dependencies<br>
                to<br>
                drools-spring JAR that does not exist anymore in
                6.0.0.CR5.<br>
                <br>
                Is it simple to fix this problem?<br>
                <br>
                Thanks in advance.<br>
                <br>
                Best,<br>
                Alexis<br>
                <br>
                <br>
                <br>
                --<br>
                View this message in context:<br>
                <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/5-6-0-CR1-gives-a-NullPointerException-in-after-evaluator-tp4026780.html">http://drools.46999.n3.nabble.com/5-6-0-CR1-gives-a-NullPointerException-in-after-evaluator-tp4026780.html</a><br>
                Sent from the Drools: User forum mailing list archive at
                Nabble.com.<br>
                _______________________________________________<br>
                rules-users mailing list<br>
                <br>
              </blockquote>
            </blockquote>
            <br>
            <blockquote type="cite"><a class="moz-txt-link-abbreviated" href="mailto:rules-users@.jboss">rules-users@.jboss</a><br>
            </blockquote>
            <br>
            <blockquote type="cite">
              <blockquote type="cite"><a moz-do-not-send="true"
                  href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                <br>
              </blockquote>
              <br>
              _______________________________________________<br>
              rules-users mailing list<br>
            </blockquote>
            <br>
            <blockquote type="cite"><a class="moz-txt-link-abbreviated" href="mailto:rules-users@.jboss">rules-users@.jboss</a><br>
            </blockquote>
            <br>
            <blockquote type="cite"><a moz-do-not-send="true"
                href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
            </blockquote>
            <br>
            <br>
            <br>
            <br>
            <br>
            --<br>
            View this message in context:<span
              class="Apple-converted-space">&nbsp;</span><a
              moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/5-6-0-CR1-gives-a-NullPointerException-in-after-evaluator-tp4026780p4027661.html">http://drools.46999.n3.nabble.com/5-6-0-CR1-gives-a-NullPointerException-in-after-evaluator-tp4026780p4027661.html</a><br>
            Sent from the Drools: User forum mailing list archive at<span
              class="Apple-converted-space">&nbsp;</span><a
              moz-do-not-send="true" href="http://nabble.com/">Nabble.com</a>.<br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>