All,<br><br>I am using JAXB classes as my model objects that are getting passed into the rules engine. I get the exception below. Here is how I am loading the rules and adding the objects into working memory:<br><br> try
<br> {<br> builder = new PackageBuilder();<br> builder.addPackageFromDrl( new InputStreamReader( RtvDecisionEngine.class.getResourceAsStream("rtv.drl" ) ) );<br> builder.addPackageFromDrl
( new InputStreamReader( <br> RtvDecisionEngine.class.getResourceAsStream("modelDiscrepancyRules.drl" ) ) );<br> ruleBase = RuleBaseFactory.newRuleBase();<br> ruleBase.addPackage
( builder.getPackage() );<br> }<br> catch(Exception e)<br> {<br> throw new RuntimeException("Failure loading the Rules", e);<br> }<br><br> final StatefulSession session =
ruleBase.newStatefulSession();<br> DetailLine line = rtvLines[i];<br> session.insert(line);<br><br>Ron<br><br>--------------------------------------------------- Exception ---------------------------------------------------
<br><br>Exception in thread "main" java.lang.VerifyError: class com.circuitcity.rtvcrms.impl.DetailLineDocumentImpl$DetailLineImplShadowProxy overrides final method .<br> at java.lang.ClassLoader.defineClass1
(Native Method)<br> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)<br> at java.lang.ClassLoader.defineClass(ClassLoader.java:465)<br> at org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java
:40)<br> at org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:59)<br> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br> at org.drools.reteoo.Rete$ObjectTypeConf.<init>(Rete.java
:352)<br> at org.drools.reteoo.Rete.assertObject(Rete.java:152)<br> at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:190)<br> at org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java
:70)<br> at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:772)<br> at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:584)<br> at com.circuitcity.rtvcrms.rules.RtvDecisionEngine.processDetailLines
(RtvDecisionEngine.java:95)<br> at com.circuitcity.rtvcrms.rules.RtvDecisionEngine.executeRules(RtvDecisionEngine.java:64)<br> at com.circuitcity.rtvcrms.test.MainBasedTester.main(MainBasedTester.java:34)<br><br>