NoClassDefFoundError while invoking a consequence
by Vikrant Yagnick
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 years, 2 months
Re: [rules-users] How to monitor what rules are fired
by Michael Rhoden
Not sure if there are any examples around, but you could use AgendaEventListener to see any rules firing.
-Michael
----- Original Message -----
From: "Ravi Krishnamurthy" <ravik(a)savvion.com>
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Sent: Monday, October 27, 2008 11:31:40 AM GMT -06:00 US/Canada Central
Subject: [rules-users] How to monitor what rules are fired
Hello:
Would like to monitor what rules are fired, how many times it is fired etc.
Is it possible to do this with Drools 4.x
Thanks for your help,
Ravi
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
16 years, 2 months
Error when trying to create new PackageBuilder
by webdevfreak
Hi, I'm using Drools 4.0.4 and get the following error when trying to convert
from .drl to .pkg file.
Exception in thread "main" java.lang.VerifyError: (class:
org/drools/rule/builder/PatternBuilder, method: buildConstraint signature:
(Lorg/drools/rule/builder/RuleBuildContext;Lorg/drools/rule/Pattern;Ljava/lang/Object;Lorg/drools/rule/AbstractCompositeConstraint;)V)
Incompatible argument to function
I was wondering if someone got this message. This used to work. I inherited
the code from someone and I think there might be a classpath problem or
something.
Thanks.
--
View this message in context: http://www.nabble.com/Error-when-trying-to-create-new-PackageBuilder-tp20...
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 2 months
stackOverFlowError when serializing a RuleBase
by Rene Wooller
Hi,
I get a similar error to pedrof's:
java.lang.StackOverflowError
at
java.io.ObjectStreamClass$FieldReflector.getPrimFieldValues(ObjectStream
Class.java:1907)
at
java.io.ObjectStreamClass.getPrimFieldValues(ObjectStreamClass.java:1184
)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:14
94)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
...
Ad infinitum
I'm wondering if anyone else has got this error?
All I'm doing is serializing the rule base:
ByteArrayOutputStream out = new ByteArrayOutputStream();
ObjectOutputStream oOut = new ObjectOutputStream(out);
oOut.writeObject(ruleBase);
oOut.flush();
oOut.close();
Any ideas? Maybe it's some kind of circular reference problem...
Cheers,
Rene
16 years, 2 months
Debug rules running on server
by Dan Seaver
How do I configure Eclipse so that I can debug into rules that are being
called from code running on the JBoss server?
I can start the server in debug mode to debug into code running on the
server, but the debugger won't drop into rules. I have no problems debugging
into rules when I run the rules via a Java Application (not on the server)
using the Drools configuration.
--
View this message in context: http://www.nabble.com/Debug-rules-running-on-server-tp20194250p20194250.html
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 2 months
About license
by jh chen
Hello,
We use JBoss Rules 4.0.7 in a commercial project. But in order to link
the drools UI with our own UI, we need to add a login page and modify the
web.xml to the drools-jbrms.war.
Is it legal for us to this in a commercial project?
And we have noticed that the drools is under ASL 2.0, does its
dependencies are also under this license?
Thanks!
16 years, 2 months
Returned mail: Data format error
by The Post Office
The original message was received at Tue, 27 Jun 2006 03:44:34 -0700
from lists.jboss.org [137.100.163.175]
----- The following addresses had permanent fatal errors -----
rules-users(a)lists.jboss.org
16 years, 2 months
Error in setting up Guvnor in tomcat 6
by drools newbie
Hello,
I followed the instructions given in
http://www.jboss.org/community/docs/DOC-10130. But getting following error.
Please someone help.
INFO: Deploying web application archive mydrools-guvnor.war
Oct 28, 2008 9:48:24 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Oct 28, 2008 9:48:24 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mydrools-guvnor] startup failed due to previous errors
Oct 28, 2008 9:48:25 AM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already. C
ould not load org.apache.xerces.impl.dtd.XMLNotationDecl. The eventual
followin
g stack trace is caused by an error thrown for debugging purposes as well as
to
attempt to terminate the thread which caused the illegal access, and has no
func
tional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1273)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.apache.xerces.impl.dtd.DTDGrammar.notationDecl(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDProcessor.notationDecl(Unknown
Sourc
e)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanNotationDecl(Unknown
Sou
rce)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown
Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknow
n Source)
-----
Oct 28, 2008 9:48:25 AM org.apache.catalina.startup.HostConfig
deployDirectory
SEVERE: Error deploying web application directory examples
java.lang.NoClassDefFoundError: org/apache/xerces/impl/dtd/XMLNotationDecl
at org.apache.xerces.impl.dtd.DTDGrammar.notationDecl(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDProcessor.notationDecl(Unknown
Sourc
e)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanNotationDecl(Unknown
Sou
rce)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown
Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknow
n Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
--
View this message in context: http://www.nabble.com/Error-in-setting-up-Guvnor-in-tomcat-6-tp20208127p2...
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 2 months