[
https://issues.jboss.org/browse/RTGOV-219?page=com.atlassian.jira.plugin....
]
Gary Brown commented on RTGOV-219:
----------------------------------
The exception is:
{noformat}
13:47:59,475 SEVERE [org.overlord.rtgov.active.collection.AbstractActiveCollectionManager]
(Timer-1) Failed to perform cleanup on active collection 'Situations':
java.lang.RuntimeException: cannot invoke method: containsKey
at org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.getValue(MethodAccessor.java:63)
[mvel2-2.1.3.Final.jar:]
at
org.mvel2.optimizers.impl.refl.nodes.VariableAccessor.getValue(VariableAccessor.java:37)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:73)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.ast.Negation.getReducedValueAccelerated(Negation.java:48)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.ast.ReturnNode.getReducedValueAccelerated(ReturnNode.java:53)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85) [mvel2-2.1.3.Final.jar:]
at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.MVEL.executeExpression(MVEL.java:922) [mvel2-2.1.3.Final.jar:]
at org.overlord.rtgov.active.collection.predicate.MVEL.evaluate(MVEL.java:96)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.overlord.rtgov.active.collection.ActiveCollection$ActiveCollectionAdapter.removed(ActiveCollection.java:505)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.overlord.rtgov.active.collection.ActiveCollection.removed(ActiveCollection.java:387)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.rtgov.active.collection.ActiveList.remove(ActiveList.java:277)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.rtgov.active.collection.ActiveList.cleanup(ActiveList.java:394)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.overlord.rtgov.active.collection.AbstractActiveCollectionManager.cleanup(AbstractActiveCollectionManager.java:303)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.overlord.rtgov.active.collection.AbstractActiveCollectionManager$HouseKeeper.run(AbstractActiveCollectionManager.java:390)
[active-collection-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at java.util.TimerThread.mainLoop(Timer.java:555) [rt.jar:1.7.0_07]
at java.util.TimerThread.run(Timer.java:505) [rt.jar:1.7.0_07]
Caused by: java.lang.RuntimeException: unable to invoke method:
org.overlord.rtgov.analytics.situation.Situation.getSubject: target of method is null
at org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:66)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:73)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42)
[mvel2-2.1.3.Final.jar:]
at
org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.executeAll(MethodAccessor.java:140)
[mvel2-2.1.3.Final.jar:]
at org.mvel2.optimizers.impl.refl.nodes.MethodAccessor.getValue(MethodAccessor.java:48)
[mvel2-2.1.3.Final.jar:]
... 20 more
Caused by: java.lang.NullPointerException
at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source) [:1.7.0_07]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_07]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_07]
at org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:43)
[mvel2-2.1.3.Final.jar:]
... 25 more
{noformat}
Cleanup of parent 'Situations' collection causing npe when
propagating to derived 'FilteredSituations'
------------------------------------------------------------------------------------------------------
Key: RTGOV-219
URL:
https://issues.jboss.org/browse/RTGOV-219
Project: RTGov (Run Time Governance)
Issue Type: Bug
Reporter: Gary Brown
Assignee: Gary Brown
Fix For: 1.0.0.Final
NPE being caused by evaluation of mvel based predicate associated with derived
collection, when an item in the parent map is being removed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira