Re: [rules-users] NoSuchMethodError

2007-10-22 Thread Mark Proctor

Hehl, Thomas wrote:


OK, I upgraded to 4.0.2 and here is the updated error:

 

java.lang.NoSuchMethodError: 
org.eclipse.jdt.internal.compiler.CompilationResult


.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;

at 
org.drools.commons.jci.compilers.EclipseJavaCompiler$3.acceptResult(E


clipseJavaCompiler.java:321)

at 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)


 

at 
org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ


avaCompiler.java:351)

at 
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(Abstrac


tJavaCompiler.java:51)

at 
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDiale


ct.java:332)

at 
org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:6


0)

at 
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:308


)

at 
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.j


ava:167)

 

I have found this function in the file core-3.2.3.v_686_R32x.jar in 
the drools/lib directory for 4.2.


 

One of the things that has happened recently is that I have upgraded 
from 3.2 to 3.3.1. I thought this might be part of the problem, but I 
looked at the core jar for 3.3.1 and it has the same method.


 

The thing that puzzles me is that I'm not including the core file in 
my distribution, but if that's the problem, why am I not getting a 
ClassNotFoundException?


 


Thanks.

 




*From:* Hehl, Thomas
*Sent:* Monday, October 22, 2007 10:04 AM
*To:* 'Rules Users List'
*Subject:* NoSuchMethodError

 


I am running 4.01 and I started get this exception on a new piece of code:

 

java.lang.NoSuchMethodError: 
org.eclipse.jdt.internal.compiler.CompilationResult


.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;

at 
org.drools.commons.jci.compilers.EclipseJavaCompiler$3.acceptResult(E


clipseJavaCompiler.java:335)

at 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)


 

at 
org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ


avaCompiler.java:372)

at 
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(Abstrac


tJavaCompiler.java:51)

at 
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDiale


ct.java:332)

at 
org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:6


0)

at 
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:287


)

at 
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.j


ava:160)

at 
com.acs.gs.juror.workflow.RulesBasedWorkflowManager.init(RulesBasedWo


rkflowManager.java:114)

 


It is blowing up on this line of code:

 


builder.addPackageFromDrl( *new* StringReader(drl) );

 

Which is the drl created from the spreadsheet compiler on the decision 
table.


 

This rules class has been tested thoroughly under junit. It wasn't 
until I deployed the library into my webapp that this issue turned up.


 


Does anyone have any idea what I should be doing next?


You need to be using the correct version of jdt core.


 


Thanks.

**Thom Hehl***
*Sr. eJuror Architect

**) Office (859) 277-8800 x 144**

*** [EMAIL PROTECTED] 
 ***

***ACS, Inc.**

**Government Solutions**

**1733 Harrodsburg Road***
**Lexington, KY 40504-3617***

**This e-mail message, including any attachments, is for the sole use 
of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, 
please contact the sender by reply e-mail and destroy all copies of 
the original message and notify sender via e-mail at 
[EMAIL PROTECTED] _ or by 
telephone at 859-277-8800 ext. 144. Thank you.**


 




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] NoSuchMethodError

2007-10-22 Thread Hehl, Thomas
OK, I upgraded to 4.0.2 and here is the updated error:

 

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.CompilationResult

.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;

at
org.drools.commons.jci.compilers.EclipseJavaCompiler$3.acceptResult(E

clipseJavaCompiler.java:321)

at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)

 

at
org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ

avaCompiler.java:351)

at
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(Abstrac

tJavaCompiler.java:51)

at
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDiale

ct.java:332)

at
org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:6

0)

at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:308

)

at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.j

ava:167)

 

I have found this function in the file core-3.2.3.v_686_R32x.jar in the
drools/lib directory for 4.2.

 

One of the things that has happened recently is that I have upgraded from
3.2 to 3.3.1. I thought this might be part of the problem, but I looked at
the core jar for 3.3.1 and it has the same method.

 

The thing that puzzles me is that I'm not including the core file in my
distribution, but if that's the problem, why am I not getting a
ClassNotFoundException?

 

Thanks.

 

  _  

From: Hehl, Thomas 
Sent: Monday, October 22, 2007 10:04 AM
To: 'Rules Users List'
Subject: NoSuchMethodError

 

I am running 4.01 and I started get this exception on a new piece of code:

 

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.CompilationResult

.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;

at
org.drools.commons.jci.compilers.EclipseJavaCompiler$3.acceptResult(E

clipseJavaCompiler.java:335)

at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)

 

at
org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ

avaCompiler.java:372)

at
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(Abstrac

tJavaCompiler.java:51)

at
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDiale

ct.java:332)

at
org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:6

0)

at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:287

)

at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.j

ava:160)

at
com.acs.gs.juror.workflow.RulesBasedWorkflowManager.init(RulesBasedWo

rkflowManager.java:114)

 

It is blowing up on this line of code:

 

builder.addPackageFromDrl( new StringReader(drl) );

 

Which is the drl created from the spreadsheet compiler on the decision
table.

 

This rules class has been tested thoroughly under junit. It wasn't until I
deployed the library into my webapp that this issue turned up.

 

Does anyone have any idea what I should be doing next?

 

Thanks.

Thom Hehl
Sr. eJuror Architect

* Office (859) 277-8800 x 144

* [EMAIL PROTECTED]   
ACS, Inc.

Government Solutions

1733 Harrodsburg Road
Lexington, KY 40504-3617

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message and notify
sender via e-mail at [EMAIL PROTECTED]
  or by telephone at 859-277-8800 ext. 144.
Thank you.

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] NoSuchMethodError

2007-10-22 Thread Hehl, Thomas
I am running 4.01 and I started get this exception on a new piece of code:

 

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.CompilationResult

.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;

at
org.drools.commons.jci.compilers.EclipseJavaCompiler$3.acceptResult(E

clipseJavaCompiler.java:335)

at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)

 

at
org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJ

avaCompiler.java:372)

at
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(Abstrac

tJavaCompiler.java:51)

at
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDiale

ct.java:332)

at
org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:6

0)

at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:287

)

at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.j

ava:160)

at
com.acs.gs.juror.workflow.RulesBasedWorkflowManager.init(RulesBasedWo

rkflowManager.java:114)

 

It is blowing up on this line of code:

 

builder.addPackageFromDrl( new StringReader(drl) );

 

Which is the drl created from the spreadsheet compiler on the decision
table.

 

This rules class has been tested thoroughly under junit. It wasn't until I
deployed the library into my webapp that this issue turned up.

 

Does anyone have any idea what I should be doing next?

 

Thanks.

Thom Hehl
Sr. eJuror Architect

* Office (859) 277-8800 x 144

* [EMAIL PROTECTED]   
ACS, Inc.

Government Solutions

1733 Harrodsburg Road
Lexington, KY 40504-3617

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message and notify
sender via e-mail at [EMAIL PROTECTED]
  or by telephone at 859-277-8800 ext. 144.
Thank you.

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] NoSuchMethodError

2007-08-27 Thread Mark Proctor

Those are the wrong deps for 4.0. please lookt at the README in the distr:
http://anonsvn.labs.jboss.com/labs/jbossrules/tags/4.0.0.13773GA/README_DEPENDENCIES.txt

And if in doubt use the deps in the bin zip.

Mark
[EMAIL PROTECTED] wrote:

Hi,

I got this error when running drool 4.0:

Exception in thread "main" java.lang.NoSuchMethodError:
org.antlr.runtime.DFA.unpackEncodedString(Ljava/lang/String;)[S
 at org.drools.lang.DRLParser.(DRLParser.java:7205)
 at org.drools.compiler.DrlParser.getParser(DrlParser.java:204)
 at org.drools.compiler.DrlParser.parse(DrlParser.java:60)
 at org.drools.compiler.PackageBuilder.addPackageFromDrl
(PackageBuilder.java:158)


I have the following jar in my class-path:

drools-compiler-4.0.0.jar
drools-core-4.0.0.jar
mvel14-1.2rc1.jar
antlr-runtime-3.0.jar
antlr-3.0ea8.jar
antlr-20030911.jar
antlr-2.7.6.jar
xerces.jar

Am I missing anything? Thank you for your help!



Best Regards,
Tim Nguyen


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

  


   *


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] NoSuchMethodError

2007-08-27 Thread Tim . Nguyen

Hi,

I got this error when running drool 4.0:

Exception in thread "main" java.lang.NoSuchMethodError:
org.antlr.runtime.DFA.unpackEncodedString(Ljava/lang/String;)[S
 at org.drools.lang.DRLParser.(DRLParser.java:7205)
 at org.drools.compiler.DrlParser.getParser(DrlParser.java:204)
 at org.drools.compiler.DrlParser.parse(DrlParser.java:60)
 at org.drools.compiler.PackageBuilder.addPackageFromDrl
(PackageBuilder.java:158)


I have the following jar in my class-path:

drools-compiler-4.0.0.jar
drools-core-4.0.0.jar
mvel14-1.2rc1.jar
antlr-runtime-3.0.jar
antlr-3.0ea8.jar
antlr-20030911.jar
antlr-2.7.6.jar
xerces.jar

Am I missing anything? Thank you for your help!



Best Regards,
Tim Nguyen


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users