[
https://jira.jboss.org/jira/browse/JBRULES-1816?page=com.atlassian.jira.p...
]
Mark Proctor commented on JBRULES-1816:
---------------------------------------
I can't see what would cause this, or figure out how to re-create it. Can you create
a failing unit test for us? Look at the examples in MiscTest to see how we create unit
tests:
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/t...
Ideally please do this against trunk, or last 5.0.x M release.
java.lang.ClassCastException: org.drools.util.ObjectHashMap cannot be
cast to org.drools.reteoo.BetaMemory
----------------------------------------------------------------------------------------------------------
Key: JBRULES-1816
URL:
https://jira.jboss.org/jira/browse/JBRULES-1816
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.0.0.M3
Environment: Linux, Eclipse ganymede and the last build
Reporter: Nicolas Heron
Assignee: Mark Proctor
I am upgrading from a drools project that works fine with 4.0.7 and here is the message I
get in some of my junit test
java.lang.ClassCastException: org.drools.util.ObjectHashMap cannot be cast to
org.drools.reteoo.BetaMemory
at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:148)
at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:43)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:180)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:143)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:997)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:965)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:737)
at
com.kiabi.met.decisionnel.kristal.calculation.bo.internals.DroolsSession.insert(DroolsSession.java:333)
at
com.kiabi.met.decisionnel.kristal.calculation.bo.internals.DroolsSession.assertBufferObjects(DroolsSession.java:380)
at
com.kiabi.met.decisionnel.kristal.calculation.bo.internals.PreparationBudgetSession.fireAllRulesForInitPrepa(PreparationBudgetSession.java:76)
at
com.kiabi.met.decisionnel.kristal.calculation.bo.internals.DroolsLauncher.fireAllRulesForInitPrepa(DroolsLauncher.java:43)
at
com.kiabi.met.decisionnel.kristal.calculation.bo.SessionCalcul.fireAllRulesForInitPrepa(SessionCalcul.java:60)
at
com.kiabi.met.decisionnel.kristal.calculation.bo.CalculationManagerImpl.prepareBudget(CalculationManagerImpl.java:56)
at
com.kiabi.met.decisionnel.kristal.calculation.test.CalculationManagerTestCase.testPrepareBudget(CalculationManagerTestCase.java:69)
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:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira