[rules-users] problem with Drools 4.0.1.

Edson Tirelli tirelli at post.com
Tue Oct 23 15:11:56 EDT 2007


   Prateek,

   It is difficult to diagnose the problem only by the provided stacktrace.
May I suggest that first thing you do is upgrade the drools version to
4.0.2or if possible
4.0.3 (to be released today)? There are several bug fixes and a few error
message improvements, that hopefully will allow us to narrow the problem.

   []s
   Edson

2007/10/23, prateek.katiyar at wipro.com <prateek.katiyar at wipro.com>:
>
>  hello all
>
> I am using Drools 4.0.1.
> I have one rule ( name = *valsubmitLoanApplication#0_1193115386921* ) in
> my rule file. When I am running my application on Tomcat Server first time,
> the validation is happening properly. But when I am running the same
> application second time(the server is still running), I am getting the
> following exception :
>
> java.lang.IllegalArgumentException: The rule called *
> valsubmitLoanApplication#0_1193115386921* is not valid. Check for compi
> le errors reported.
>         at org.drools.common.AbstractRuleBase.addRule(
> AbstractRuleBase.java:433)
>         at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java
> :265)
>         at org.drools.common.AbstractRuleBase.addPackage(
> AbstractRuleBase.java:337)
>         at
> com.wipro.evalidator.validation.impl.DroolsValidator.getXMLRuleBase(
> DroolsValidator.java:477)
>         at
> com.wipro.evalidator.validation.impl.DroolsValidator.validateXML(
> DroolsValidator.java:308)
>         at com.wipro.evalidator.validation.impl.DroolsValidator.validate(
> DroolsValidator.java:213)
>         at
> com.wipro.evalidator.jbossaop.openrules.intercepts.WebTierInterceptor.invoke
> (WebTierInterceptor.java:57)
>         at
> com.wipro.evalidator.efaces.service.EmpLoanResponseService$submitLoanApplication_N4694083757408641873.invokeNex
> t(EmpLoanResponseService$submitLoanApplication_N4694083757408641873.java)
>         at
> com.wipro.evalidator.efaces.service.EmpLoanResponseService.submitLoanApplication
> (EmpLoanResponseService.java)
>         at
> com.wipro.evalidator.efaces.service.EmpLoanRequestService.service(
> EmpLoanRequestService.java:92)
>         at com.wipro.efaces.server.webrender.WebRenderServlet.process(Unknown
> Source)
>         at com.wipro.efaces.server.webrender.WebRenderServlet.doPost(Unknown
> Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:6
> 64)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> validateXML()  *********has created the RuleBase instance **************
> java.lang.NullPointerException
>         at
> com.wipro.evalidator.validation.impl.DroolsValidator.validateXML(
> DroolsValidator.java:316)
>         at com.wipro.evalidator.validation.impl.DroolsValidator.validate(
> DroolsValidator.java:213)
>         at
> com.wipro.evalidator.jbossaop.openrules.intercepts.WebTierInterceptor.invoke
> (WebTierInterceptor.java:57)
>         at
> com.wipro.evalidator.efaces.service.EmpLoanResponseService$submitLoanApplication_N4694083757408641873.invokeNex
> t(EmpLoanResponseService$submitLoanApplication_N4694083757408641873.java)
>         at
> com.wipro.evalidator.efaces.service.EmpLoanResponseService.submitLoanApplication
> (EmpLoanResponseService.java)
>         at
> com.wipro.evalidator.efaces.service.EmpLoanRequestService.service(
> EmpLoanRequestService.java:92)
>         at com.wipro.efaces.server.webrender.WebRenderServlet.process(Unknown
> Source)
>         at com.wipro.efaces.server.webrender.WebRenderServlet.doPost(Unknown
> Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:6
> 64)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
> And if i shutdown the server and again start the server ,the same process
> happens.
>
> Now please tell me that what can I do to resolve this problem?
>
> Thanks.
>
>  *With Regards*
> *Prateek *
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>
> _______________________________________________
> 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/20071023/98f5a081/attachment.html 


More information about the rules-users mailing list