[
http://jira.jboss.com/jira/browse/JBRULES-1302?page=comments#action_12384679 ]
Edson Tirelli commented on JBRULES-1302:
----------------------------------------
Prakash,
Please, can you update to the 4.0.3 version of drools, since we fixed a number of bugs. If
the problem still persists, we will need a self contained test case from you showing the
problem, so that we can fix it.
Thanks,
Edson
Drools ConsequenceException
---------------------------
Key: JBRULES-1302
URL:
http://jira.jboss.com/jira/browse/JBRULES-1302
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-brms
Affects Versions: 4.0.1
Environment: Unix
Reporter: Prakash Chellappa
Assigned To: Fernando Meyer
Fix For: 4.0.1
Hi
We are from UBS Investment Bank and are facing a critical problem in one of production
System currently using Drools.We require your urgent assistance to get this resolved
asap.Below is the details of the error message we are getting.
org.drools.spi.ConsequenceException: java.lang.NullPointerException
at
org.drools.base.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:14)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:553)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:514)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:462)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:424)
at com.ubs.tsna.rhino.matcher2.pb.engine.PBMatchingEngine.doMatching(Unknown Source)
at com.ubs.tsna.rhino.matcher2.engine.MatchingEngine.match(Unknown Source)
at com.ubs.tsna.rhino.matcher2.action.MatchingAction.execute(Unknown Source)
at com.ubs.tsna.workflow.process.ProcessFlow.executeAction(Unknown Source)
at com.ubs.tsna.workflow.process.ProcessFlow.executeSingleAction(Unknown Source)
at com.ubs.tsna.workflow.process.ProcessFlow.executeAction(Unknown Source)
at com.ubs.tsna.workflow.process.ProcessFlow.execute(Unknown Source)
at com.ubs.tsna.workflow.process.BaseProcess.processMessage(Unknown Source)
at com.ubs.tsna.workflow.process.Process.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
org.drools.base.com.ubs.tsna.rhino.matcher2.pb.model.TransactionEvent11782857$getMessage.getValue(Unknown
Source)
at
org.drools.base.extractors.BaseObjectClassFieldExtractor.getHashCode(BaseObjectClassFieldExtractor.java:139)
at org.drools.base.ClassFieldExtractor.getHashCode(ClassFieldExtractor.java:225)
at org.drools.rule.Declaration.getHashCode(Declaration.java:272)
at
org.drools.util.AbstractHashTable$SingleIndex.hashCodeOf(AbstractHashTable.java:489)
at org.drools.util.TupleIndexHashTable.remove(TupleIndexHashTable.java:203)
at org.drools.reteoo.NotNode.retractTuple(NotNode.java:208)
at
org.drools.reteoo.SingleTupleSinkAdapter.propagateRetractTuple(SingleTupleSinkAdapter.java:38)
at org.drools.reteoo.JoinNode.retractObject(JoinNode.java:181)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateRetractObject(CompositeObjectSinkAdapter.java:375)
at org.drools.reteoo.AlphaNode.retractObject(AlphaNode.java:158)
at
org.drools.reteoo.SingleObjectSinkAdapter.propagateRetractObject(SingleObjectSinkAdapter.java:32)
at org.drools.reteoo.AlphaNode.retractObject(AlphaNode.java:158)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateRetractObject(CompositeObjectSinkAdapter.java:366)
at org.drools.reteoo.AlphaNode.retractObject(AlphaNode.java:158)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateRetractObject(CompositeObjectSinkAdapter.java:366)
at org.drools.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:180)
at org.drools.reteoo.Rete.retractObject(Rete.java:214)
at org.drools.reteoo.ReteooRuleBase.retractObject(ReteooRuleBase.java:220)
at org.drools.reteoo.ReteooWorkingMemory.doRetract(ReteooWorkingMemory.java:79)
at org.drools.common.AbstractWorkingMemory.retract(AbstractWorkingMemory.java:999)
at org.drools.base.DefaultKnowledgeHelper.retract(DefaultKnowledgeHelper.java:115)
at com.ubs.tsna.rhino.matcher.rules.Rule_Match_0.consequence(Rule_Match_0.java:55)
at
com.ubs.tsna.rhino.matcher.rules.Rule_Match_0ConsequenceInvoker.evaluate(Rule_Match_0ConsequenceInvoker.java:26)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:550)
We get the error message when we retract the object.The piece of code is given below
if( c instanceof TransactionBulkBean ) {
retract(c);
}
if( t instanceof TransactionBulkBean ) {
retract(t);
}
// Retract Old Events
for( TransactionEvent ev : MATCHER.retractUnMatchedEvents(c, t) ) {
ev.setMessage(null) ; retract (ev);
}
We dont have support contract at this point of time,But we dont mind going in one by
future.We would like to get your help to get this issue addressed ASAP.
We would like to call and speak to you on urgent basis.Give us a call on 203 719 4625 or
give us the no we can reach you at.
Thanks
Prakash
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira