Red Hat Bugzilla – Bug 967599
NPE when inserting events by several threads each using its own SessionEntryPoint
Last modified: 2014-08-06 16:18:39 EDT
Created attachment 753640 [details]
NPE stack trace
Description of problem:
NPE is thrown (see below) when several threads insert events into one KieSession, each thread is using a dedicated SessionEntryPoint (see attachment for full stacktrace):
When the event insertion is synchronized across all entry points (on the whole KieSession), the problem disappears (to quickly illustrate this, replace in attached MTEntryPointsTest.java on line 150 'entryPoint' by 'kieSession').
Version-Release number of selected component (if applicable):
BRMS 6.0.0 DR4
This test passes on BRMS 5.3.1.
Run attached reproducer test case.
The test method testTwoEntryPoints() fails.
Both tests pass.
Created attachment 753642 [details]
Reproducer test case - java
Created attachment 753643 [details]
Reproducer test case - DRL
Verified that the problem does not appear on Drools 6.0.0.CR1, probably fixed as a side-effect of another change.
Waiting for next product build to verify this issue against the product.
Verified on BRMS 6.0.0-ER2.