<div dir="ltr">Thanks for all,<div><br></div><div>But.. abusing your kindness I have another proble with guvnor, when I execute a scenario test I receive the follow exception, that not occurs in unitary test with DRL file.</div>
<div><br></div><div>Delimiting the problem I can observe, that exception not is produced by the rule "Calculos basados en servicio RIF por tipoServicio RIF" but by the next rule chained ("Numero de meses de duracion del servicio - RIF") that use the variable changed in consecuences the rule named "Calculos basados en servicio RIF por tipoServicio RIF"</div>
<div><br></div><div>The attribute changed in consecuences of rule "Calculos basados en servicio RIF por tipoServicio RIF" is a primitive boolean</div><div><br></div><div>Can you help me? All my problems are related with guvnor,but I need it as assets repository</div>
<div><br></div><div>The rules are:</div><div><br></div><div><div>rule "Calculos basados en servicio RIF por tipoServicio RIF"</div><div>salience 0</div><div>activation-group "servicioRif"</div><div>when</div>
<div><span class="" style="white-space:pre">        </span>$OT: FactOT (tipoServicio == "RIF")</div><div><span class="" style="white-space:pre">        </span>$response: FactResponse()</div><div>then</div><div><span class="" style="white-space:pre">        </span>modify ($response) {</div>
<div><span class="" style="white-space:pre">                </span>setServicioRif (true);</div><div><span class="" style="white-space:pre">        </span>}</div><div>end</div></div><div><br></div><div><div>rule "Numero de meses de duracion del servicio - RIF"</div>
<div>salience -1000+2</div><div>activation-group "Numero de meses de duracion del servicio"</div><div>when</div><div><span class="" style="white-space:pre">        </span>$response : FactResponse ( servicioRif == true)</div>
<div>then</div><div><span class="" style="white-space:pre">        </span>modify ($response) {</div><div><span class="" style="white-space:pre">                </span>setNumeroMesesServicio ( 12 );</div><div><span class="" style="white-space:pre">        </span>}</div>
<div>end</div></div><div><br></div><div>The text of exception is the following:</div><div><br></div><div><div>ERROR 11-08 13:28:38,294 (LoggingHelper.java:error:74) <span class="" style="white-space:pre">        </span> There was an error executing the consequence of rule [Calculos basados en servicio RIF por tipoServicio RIF]: Exception executing consequence for rule "Calculos basados en servicio RIF por tipoServicio RIF" in horaspersonas.BRA: java.lang.NullPointerException</div>
<div>CAUSED BY null</div><div>Exception executing consequence for rule "Calculos basados en servicio RIF por tipoServicio RIF" in horaspersonas.BRA: java.lang.NullPointerException</div><div><span class="" style="white-space:pre">        </span>at org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1292)</div><div><span class="" style="white-space:pre">        </span>at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1216)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1451)</div><div><span class="" style="white-space:pre">        </span>at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:756)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.ide.common.server.testscenarios.TestScenarioWorkingMemoryWrapper.fireAllRules(TestScenarioWorkingMemoryWrapper.java:85)</div><div><span class="" style="white-space:pre">        </span>at org.drools.ide.common.server.testscenarios.TestScenarioWorkingMemoryWrapper.executeSubScenario(TestScenarioWorkingMemoryWrapper.java:109)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.ide.common.server.testscenarios.ScenarioRunner.applyFixtures(ScenarioRunner.java:154)</div><div><span class="" style="white-space:pre">        </span>at org.drools.ide.common.server.testscenarios.ScenarioRunner.run(ScenarioRunner.java:106)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.guvnor.server.TestScenarioServiceImplementation.runScenario(TestScenarioServiceImplementation.java:182)</div><div><span class="" style="white-space:pre">        </span>at org.drools.guvnor.server.TestScenarioServiceImplementation.runScenario(TestScenarioServiceImplementation.java:116)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.guvnor.server.TestScenarioServiceImplementation.runScenario(TestScenarioServiceImplementation.java:106)</div><div><span class="" style="white-space:pre">        </span>at org.drools.guvnor.server.TestScenarioServiceServlet.runScenario(TestScenarioServiceServlet.java:39)</div>
<div><span class="" style="white-space:pre">        </span>at sun.reflect.GeneratedMethodAccessor265.invoke(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</div>
<div><span class="" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)</div>
<div><span class="" style="white-space:pre">        </span>at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)</div><div><span class="" style="white-space:pre">        </span>at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)</div>
<div><span class="" style="white-space:pre">        </span>at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)</div><div><span class="" style="white-space:pre">        </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)</div>
<div><span class="" style="white-space:pre">        </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)</div><div><span class="" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</div><div><span class="" style="white-space:pre">        </span>at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</div><div><span class="" style="white-space:pre">        </span>at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)</div><div><span class="" style="white-space:pre">        </span>at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)</div><div><span class="" style="white-space:pre">        </span>at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)</div><div><span class="" style="white-space:pre">        </span>at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)</div>
<div><span class="" style="white-space:pre">        </span>at java.lang.Thread.run(Unknown Source)</div><div>Caused by: java.lang.NullPointerException</div><div><span class="" style="white-space:pre">        </span>at org.drools.common.PropagationContextImpl.adaptModificationMaskForObjectType(PropagationContextImpl.java:410)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.reteoo.ObjectTypeNode.modifyObject(ObjectTypeNode.java:381)</div><div><span class="" style="white-space:pre">        </span>at org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:287)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:505)</div><div><span class="" style="white-space:pre">        </span>at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:401)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:370)</div><div><span class="" style="white-space:pre">        </span>at horaspersonas.BRA.Rule_Calculos_basados_en_servicio_RIF_por_tipoServicio_RIF370386132.defaultConsequence(Rule_Calculos_basados_en_servicio_RIF_por_tipoServicio_RIF370386132.java:9)</div>
<div><span class="" style="white-space:pre">        </span>at horaspersonas.BRA.Rule_Calculos_basados_en_servicio_RIF_por_tipoServicio_RIF370386132DefaultConsequenceInvokerGenerated.evaluate(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at horaspersonas.BRA.Rule_Calculos_basados_en_servicio_RIF_por_tipoServicio_RIF370386132DefaultConsequenceInvoker.evaluate(Unknown Source)</div>
<div><span class="" style="white-space:pre">        </span>at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1282)</div><div><span class="" style="white-space:pre">        </span>... 32 more</div><div><br></div></div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-09 19:41 GMT+02:00 Davide Sottara <span dir="ltr"><<a href="mailto:dsotty@gmail.com" target="_blank">dsotty@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Regarding the @Pr issue: yes, afaik
newer versions are fixed. If not, they are more likely to be
fixable.<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Davide</font></span><div><div class="h5"><br>
<br>
On 08/09/2014 12:34 PM, Michael Anstis wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<p dir="ltr">Regarding the Guvnor question; we don't support the
time element of dates at the moment. <br>
It should however be a simple change and I am happy to support
you submitting a pull request to fix in a later version.
Unfortunately we simply do not have the time to fix ourselves at
present.</p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote">On 9 Aug 2014 16:20, "David Moros
Claramunt" <<a href="mailto:davidmoros@gmail.com" target="_blank">davidmoros@gmail.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Do you know if the issue is solved in some
later version?
<div><br>
</div>
<div>Also, I have another problem with Guvnor, in scenarios
test I can´t set a date with time in Date field, is
possible set it?I have changed the format Date and
DateTime in .properties but fail the conversion too</div>
<div><br>
</div>
<div>thanks,</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-08-08 15:26 GMT+02:00 Davide
Sottara <span dir="ltr"><<a href="mailto:dsotty@gmail.com" target="_blank">dsotty@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:Arial">If I remember correctly this
is a known issue. Unfortunately drools 5.6 is final
and can't be patched. Downloading the source drl
rather than the compiled pkg could be a workaround.<br>
Please let me know if it works<br>
<br>
Sent via the ASUS PadFone X, an AT&T 4G LTE
smartphone</span>
<div>
<div><span style="font-family:Arial"><br>
<br>
-------- Original Message --------<br>
From:davidmoros <<a href="mailto:davidmoros@gmail.com" target="_blank">davidmoros@gmail.com</a>><br>
Sent:Fri, 08 Aug 2014 05:03:29 -0500<br>
<a href="mailto:To%3Arules-users@lists.jboss.org" target="_blank">To:rules-users@lists.jboss.org</a><br>
Subject:[rules-users] Annotation @PropertyReactive
not works<br>
<br>
</span>I'm developing a system rules with drools,
how any novice I found the problem<br>
of infinite loops, in unitary test I resolved with
annotation<br>
@PropertyReactive and all works fine, until I
uploaded my model and rules to<br>
Guvnor.<br>
Now I have developed a webservice that download the
PKG from Guvnor, with<br>
change-set and seems that the annotation
@PropertyReactive not works because<br>
of the same rule is reevaluated constantly although
the consecuences the<br>
rule not change the value of attributes of LHS of
rule, and infinite loops<br>
appears....<br>
The error only occurs when I download the PKG from
Guvnor, if I refer the<br>
file DRL directly all woks fine<br>
<br>
Can anybody help me? <br>
<br>
I use 5.6.0.Final Version for Drools and Guvnor,
Guvnor and my webservice<br>
are deployed in Tomcat <br>
<br>
Thanks in advance<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-tp4030602.html" target="_blank">http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-tp4030602.html</a><br>
Sent from the Drools: User forum mailing list
archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div>
</div>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br></div>