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.