I have been trying to synchronize and get my patch to work with the latest
version of Drools 5.1.0.SNAPSHOT code from
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk without success.
I tried the same snapshot build on another of the Tohu projects that didn't
use the new patched code and got the same error.
I had tried to build the whole JBoss snapshot from the root pom. Had
encountered several issues due to dependency issues. What would you advise
in these circumstances? I can roll back my local version to a version that
works with the patched code (but then this will not work with the next
version containing the current changes as it is).
I have included the error below....(may give someone more info about the
issue).
org.drools.runtime.rule.ConsequenceException: rule: LoyaltyCard
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handl
eException(DefaultConsequenceExceptionHandler.java:23)
at org.drools.common.DefaultAgenda.fireActivation
(DefaultAgenda.java:981
)
at org.drools.common.DefaultAgenda.fireNextItem
(DefaultAgenda.java:918)
at org.drools.common.DefaultAgenda.fireAllRules
(DefaultAgenda.java:1130)
at org.drools.common.AbstractWorkingMemory.fireAllRules
(AbstractWorkingM
emory.java:739)
at org.drools.common.AbstractWorkingMemory.fireAllRules
(AbstractWorkingM
emory.java:705)
at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules
(StatefulKno
wledgeSessionImpl.java:200)
at org.drools.command.runtime.rule.FireAllRulesCommand.execute
(FireAllRu
lesCommand.java:56)
at org.drools.command.runtime.rule.FireAllRulesCommand.execute
(FireAllRu
lesCommand.java:13)
at org.drools.runtime.impl.BatchExecutionImpl.execute
(BatchExecutionImpl
.java:35)
at org.drools.runtime.impl.BatchExecutionImpl.execute
(BatchExecutionImpl
.java:15)
at org.drools.impl.StatefulKnowledgeSessionImpl.execute
(StatefulKnowledg
eSessionImpl.java:826)
at org.drools.impl.StatefulKnowledgeSessionImpl.execute
(StatefulKnowledg
eSessionImpl.java:811)
at org.drools.runtime.pipeline.impl.ExecutorStage.execute
(ExecutorStage.
java:29)
at org.drools.runtime.pipeline.impl.ExecutorStage.receive
(ExecutorStage.
java:19)
at org.drools.runtime.pipeline.impl.BaseEmitter.emit
(BaseEmitter.java:31
)
at
org.drools.runtime.pipeline.impl.XStreamFromXmlTransformer.receive(XS
treamFromXmlTransformer.java:47)
at org.drools.runtime.pipeline.impl.BaseEmitter.emit
(BaseEmitter.java:31
)
at
org.drools.runtime.pipeline.impl.StatefulKnowledgeSessionPipelineImpl
.insert(StatefulKnowledgeSessionPipelineImpl.java:40)
at drools.rex.SessionExecutor$.execute(SessionExecutor.scala:26)
at drools.rex.Server.execute(Server.scala:32)
at drools.rex.StatefulServer.doPost(Server.scala:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:487
)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:3
62)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.jav
a:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:1
81)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:7
26)
at org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHand
lerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.
java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:50
5)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnectio
n.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.ja
va:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.j
ava:488)
Caused by: [Error: drools.insertLogical(questionnaire): null]
[Near : {... Unknown ....}]
^
[Line: 1, Column: 0]
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGet
Chain(ReflectiveAccessorOptimizer.java:373)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAc
cessor(ReflectiveAccessorOptimizer.java:138)
at org.mvel2.ast.ASTNode.getReducedValueAccelerated
(ASTNode.java:133)
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
at org.mvel2.compiler.CompiledExpression.getValue
(CompiledExpression.jav
a:104)
at org.mvel2.MVEL.executeExpression(MVEL.java:995)
at org.drools.base.mvel.MVELConsequence.evaluate
(MVELConsequence.java:87
)
at org.drools.common.DefaultAgenda.fireActivation
(DefaultAgenda.java:972
)
... 39 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(
ReflectiveAccessorOptimizer.java:930)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGet
Chain(ReflectiveAccessorOptimizer.java:315)
... 46 more
Caused by: java.lang.NullPointerException
at org.drools.reteoo.CollectNode.modifyTuple(CollectNode.java:354)
at org.drools.reteoo.CollectNode.assertObject(CollectNode.java:259)
at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject
(Singl
eObjectSinkAdapter.java:42)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:147)
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(
CompositeObjectSinkAdapter.java:360)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(Co
mpositeObjectSinkAdapter.java:337)
at org.drools.reteoo.ObjectTypeNode.assertObject
(ObjectTypeNode.java:184
)
at org.drools.reteoo.EntryPointNode.assertObject
(EntryPointNode.java:147
)
at org.drools.common.AbstractWorkingMemory.insert
(AbstractWorkingMemory.
java:1135)
at org.drools.common.AbstractWorkingMemory.insert
(AbstractWorkingMemory.
java:1086)
at org.drools.base.DefaultKnowledgeHelper.insertLogical
(DefaultKnowledge
Helper.java:129)
at org.drools.base.DefaultKnowledgeHelper.insertLogical
(DefaultKnowledge
Helper.java:123)
... 52 more
Regards,
Peter Sellars
Senior Developer
Solnet Solutions Limited
Level 7, Brookfields House
19 Victoria Street, Auckland 1010, New Zealand
PO Box 6619, Auckland 1141, New Zealand
DDI: +64 9 977 5808 Mobile: +64 21 809 009
Main: +64 9 977 5800 Fax: +64 9 977 5801
www.solnetsolutions.co.nz
A Solnet Group Company
Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster(a)solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.