Please provide your rules.<br><br><div class="gmail_quote">On 14 December 2011 17:51, Venkat <span dir="ltr"><<a href="mailto:ven12344@yahoo.com">ven12344@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I am new to Drools and I have read about it and not mastered yet. I have<br>
written some rules and junit to test it. The rules works good and passes the<br>
test if ran individually, but if ranned all at once with one junit test case<br>
with all the test cases in it, it is through this exception.<br>
<br>
Please find the stack trace.<br>
<br>
com.ge.energy.drms.smartgrid.datamodel.services.enddevicemanagement.pandeviceregistrationservice.PANDeviceRegistrationServiceFault:<br>
com.ge.energy.drms.external.integration.service.impl.Rule_PAN_Device_Smart_Device_Model_Device_Class_null_ruleEval0Invoker@1e87bc80<br>
: java.lang.NullPointerException<br>
at<br>
com.ge.energy.drms.external.integration.service.impl.PANDeviceRegistrationServiceImpl.provisionPANDevice(PANDeviceRegistrationServiceImpl.java:108)<br>
at<br>
com.ge.energy.drms.external.integration.service.impl.test.ProvisionPanDeviceRequestValidationTest.testMACAdress(ProvisionPanDeviceRequestValidationTest.java:249)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:597)<br>
at junit.framework.TestCase.runTest(TestCase.java:168)<br>
at junit.framework.TestCase.runBare(TestCase.java:134)<br>
at junit.framework.TestResult$1.protect(TestResult.java:110)<br>
at junit.framework.TestResult.runProtected(TestResult.java:128)<br>
at junit.framework.TestResult.run(TestResult.java:113)<br>
at junit.framework.TestCase.run(TestCase.java:124)<br>
at junit.framework.TestSuite.runTest(TestSuite.java:232)<br>
at junit.framework.TestSuite.run(TestSuite.java:227)<br>
at<br>
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)<br>
at<br>
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)<br>
at<br>
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br>
at<br>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)<br>
at<br>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<br>
at<br>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<br>
at<br>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)<br>
com.ge.energy.drms.external.integration.service.impl.Rule_PAN_Device_Smart_Device_Model_Device_Class_null_ruleEval0Invoker@1e87bc80<br>
: java.lang.NullPointerException<br>
<br>
<br>
I have googled on this and found that, it might not be able to take all the<br>
rules, one by one, and execute it. As I said I am new to Drools, I am not<br>
able to work on this.<br>
<br>
Please help me on this.<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888">Venkat.<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3586222.html" target="_blank">http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3586222.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">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>
</font></span></blockquote></div><br>