This is strange because our CI server (hudson) is green on all tests, as
well as my local build here...
The error:
org.drools.RuntimeDroolsException: Unable to load dialect '
org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
is usually associated with a wrong JDT version being used in the
classpath... although, if you are using maven to build, that should never
happen...
May I suggest you remove your local maven repo for the eclipse dependency
$HOME/.m2/repository/org/eclipse/jdt/core and try again?
[]s
Edson
2008/3/18, jack wu <jackxwu(a)yahoo.com>:
tested again with 1.5.0_03. failed.
D:\download\drools4x\4.0.x>java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
Running org.drools.integrationtests.DynamicRulesTest
org.drools.RuntimeDroolsException: Unable to load dialect '
org.drools.rule.builder.dialect.java.Java
DialectConfiguration:java'
at org.drools.compiler.PackageBuilderConfiguration.addDialect(
PackageBuilderConfiguration.ja
va:160)
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap
(PackageBuild
erConfiguration.java:146)
at org.drools.compiler.PackageBuilderConfiguration.init(
PackageBuilderConfiguration.java:121
)
at org.drools.compiler.PackageBuilderConfiguration.<init>(
PackageBuilderConfiguration.java:9
8)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java
:124)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java
:86)
at
org.drools.integrationtests.DynamicRulesTest.testDynamicRulesAddRemove(
DynamicRulesTest.j
ava:540)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
(AbstractDirecto
ryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
(AbstractDirectoryTestS
uite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:33
8)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:997)
Caused by: java.lang.ClassCastException:
org.drools.rule.builder.dialect.java.JavaDialectConfigurati
on
at org.drools.compiler.PackageBuilderConfiguration.addDialect(
PackageBuilderConfiguration.ja
va:155)
... 31 more
org.drools.RuntimeDroolsException: Unable to load dialect '
org.drools.rule.builder.dialect.java.Java
DialectConfiguration:java'
at org.drools.compiler.PackageBuilderConfiguration.addDialect(
PackageBuilderConfiguration.ja
va:160)
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap
(PackageBuild
erConfiguration.java:146)
at org.drools.compiler.PackageBuilderConfiguration.init(
PackageBuilderConfiguration.java:121
)
at org.drools.compiler.PackageBuilderConfiguration.<init>(
PackageBuilderConfiguration.java:9
8)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java
:124)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java
:86)
at
org.drools.integrationtests.DynamicRulesTest.testRuleBaseAddRemoveSubNetworks
(DynamicRule
sTest.java:768)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
(AbstractDirecto
ryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
(AbstractDirectoryTestS
uite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
Tests run: 16, Failures: 2, Errors: 7, Skipped: 0, Time elapsed: 1.344 sec
<<< FAILURE!
Running org.drools.brms.modeldriven.ActionFieldValueTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:33
8)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:997)
Caused by: java.lang.ClassCastException:
org.drools.rule.builder.dialect.java.JavaDialectConfigurati
on
at org.drools.compiler.PackageBuilderConfiguration.addDialect(
PackageBuilderConfiguration.ja
va:155)
... 31 more
Running org.drools.brms.server.util.SuggestionCompletionEngineBuilderTest
------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo!
Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.co...
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @
www.jboss.com