Hi All,

 

I am getting a rather strange error. When, I am invoking certain rules I get the following error as shown below(NoClassDefFoundError). I am using a stand-alone client (not an application server). The rulebase I am using is loaded in memory, so can’t see why I should be getting this error.

 

When I print  the rules available in the RuleBase it correctly lists all the rules, yet I get the error below.

 

I am using Drools 4.0.7 and merging different files into the same package. If I do not merge the files, it works.

Anyone have any idea what this is? Is it somehow related to the following:- https://jira.jboss.org/jira/browse/JBRULES-1684.

 

Cheers,

Vikrant

 

java.lang.NoClassDefFoundError: CapBenefit/Rule_CapEarnings_10_0

             at CapBenefit.Rule_CapEarnings_10_0ConsequenceInvoker.evaluate(Rule_CapEarnings_10_0ConsequenceInvoker.java:22)

             at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:554)

             at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:518)

             at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:475)

             at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:449)

             at org.drools.reteoo.ReteooStatelessSession.execute(ReteooStatelessSession.java:162)

             at com.mastek.elixir.system.ref.drools.DroolsBaseRuleSet.executeRuleSet(DroolsBaseRuleSet.java:121)

             at com.mastek.elixir.system.ref.drools.DroolsBaseRuleSet.executeRuleSet(DroolsBaseRuleSet.java:151)

             at com.benefitcalculation.tests.BenefitCalculation.ExecuteTest(BenefitCalculation.java:262)

             at com.benefitcalculation.tests.BenefitCalculation.testEarningsCap2374(BenefitCalculation.java:67)

             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

             at java.lang.reflect.Method.invoke(Method.java:585)

             at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)

             at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)

             at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)

             at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)

             at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)

             at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)

             at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)

             at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)

             at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)

             at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)

             at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)

             at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)

             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

 




MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~