Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-849

DynamicRulesTest fails with JDK 1.6

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.MR2
    • Fix Version/s: 4.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux, JDK 1.6

      Description

      I'm doing mvn install from trunk, using JDK 1.6 on Kubuntu Linux.

      For module drools-compiler, testDynamicFunction in the file below results in an ERROR

      drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java

      The contents of drools-compiler/target/surefire-reports/org.drools.integrationtests.DynamicRulesTest.txt are

      ------------------------------------------------------------------------------
      Test set: org.drools.integrationtests.DynamicRulesTest
      -------------------------------------------------------------------------------
      Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.008 sec <<< FAILURE!
      testDynamicFunction(org.drools.integrationtests.DynamicRulesTest) Time elapsed: 0.036 sec <<< ERROR!
      java.lang.NoClassDefFoundError: org/drools/test/AddFive
      at org.drools.test.Rule_global_rule_test_0.consequence(Rule_global_rule_test_0.java:9)
      at org.drools.test.Rule_global_rule_test_0ConsequenceInvoker.evaluate(Rule_global_rule_test_0ConsequenceInvoker.java:20)
      at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:497)
      at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:461)
      at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:372)
      at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:353)
      at org.drools.integrationtests.DynamicRulesTest.testDynamicFunction(DynamicRulesTest.java:312)
      at org.drools.integrationtests.DynamicRulesTest.testDynamicFunction(DynamicRulesTest.java:312)
      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:597)
      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.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      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:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                larsivi Lars Ivar Igesund
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: