The full stack:
11:40:27.483 [main] WARN o.d.t.impl.DefaultTimerJobInstance - Unable to execute timer
job!
org.drools.runtime.rule.ConsequenceException: Exception executing consequence for rule
"set environment night" in MyPackageName: java.lang.ClassCastException:
org.drools.time.impl.DefaultJobHandle cannot be cast to
org.drools.time.impl.JDKTimerService$JDKJobHandle
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1291)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.common.DefaultAgenda.fireTimedActivation(DefaultAgenda.java:1338)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.common.Scheduler$ActivationTimerJob.execute(Scheduler.java:83)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.time.impl.DefaultTimerJobInstance.call(DefaultTimerJobInstance.java:51)
[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.time.impl.DefaultTimerJobInstance.call(DefaultTimerJobInstance.java:14)
[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at
org.drools.time.impl.PseudoClockScheduler.runCallBacksAndIncreaseTimer(PseudoClockScheduler.java:207)
[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.time.impl.PseudoClockScheduler.advanceTime(PseudoClockScheduler.java:159)
[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at com.easierlife.rs.CSVTest.testCSV(CSVTest.java:206) [test-classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_51]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_51]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
[junit-4.11.jar:na]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
[junit-4.11.jar:na]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
[junit-4.11.jar:na]
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
[junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
[junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
[junit-4.11.jar:na]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
[.cp/:na]
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
[.cp/:na]
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
[.cp/:na]
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
[.cp/:na]
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
[.cp/:na]
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
[.cp/:na]
Caused by: java.lang.ClassCastException: org.drools.time.impl.DefaultJobHandle cannot be
cast to org.drools.time.impl.JDKTimerService$JDKJobHandle
at
org.drools.common.ScheduledAgendaItem.isPendingReactivation(ScheduledAgendaItem.java:125)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.reteoo.RuleTerminalNode.modifyLeftTuple(RuleTerminalNode.java:267)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.reteoo.LeftTupleSource.doModifyLeftTuple(LeftTupleSource.java:304)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.reteoo.AbstractTerminalNode.modifyLeftTuple(AbstractTerminalNode.java:104)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at
org.drools.reteoo.CompositeLeftTupleSinkAdapter.doPropagateModifyObject(CompositeLeftTupleSinkAdapter.java:260)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at
org.drools.reteoo.CompositeLeftTupleSinkAdapter.propagateModifyObject(CompositeLeftTupleSinkAdapter.java:275)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.reteoo.LeftInputAdapterNode.modifyObject(LeftInputAdapterNode.java:167)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateModifyObject(CompositeObjectSinkAdapter.java:507)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateModifyObject(CompositeObjectSinkAdapter.java:432)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.reteoo.ObjectTypeNode.modifyObject(ObjectTypeNode.java:381)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:287)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:505)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:401)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:368)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.base.DefaultKnowledgeHelper.update(DefaultKnowledgeHelper.java:434)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.base.ModifyInterceptor.doAfter(ModifyInterceptor.java:79)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at
org.mvel2.ast.InterceptorWrapper.getReducedValueAccelerated(InterceptorWrapper.java:40)
~[mvel2-2.1.5.Final.jar:na]
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:86) ~[mvel2-2.1.5.Final.jar:na]
at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123)
~[mvel2-2.1.5.Final.jar:na]
at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119)
~[mvel2-2.1.5.Final.jar:na]
at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113)
~[mvel2-2.1.5.Final.jar:na]
at org.mvel2.MVEL.executeExpression(MVEL.java:930) ~[mvel2-2.1.5.Final.jar:na]
at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:104)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1281)
~[drools-core-5.6.0-SNAPSHOT.jar:5.6.0-SNAPSHOT]
... 30 common frames omitted
On 17.10.2013, at 11:15, Davide Sottara <dsotty(a)gmail.com> wrote:
Yes, # for comments had actually been deprecated for a while.
# is now used for inline casts, so I'm afraid you'll have to replace the
comments
As for the other issue.. this is more serious, but should be fixable.
Can you post the full stack trace? And, if possible, a reproducer? :)
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-session-deserialization-sli...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users