Bug 761446 - Adding ProcessEventListener throws NPE
Summary: Adding ProcessEventListener throws NPE
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRE (Expert, Fusion), jBPM 5
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: Mario Fusco
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-08 10:59 UTC by Tomas Schlosser
Modified: 2022-05-31 22:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBRULES-3375 0 None Resolved Adding ProcessEventListener throws NPE 2012-05-04 03:56:42 UTC

Description Tomas Schlosser 2011-12-08 10:59:34 UTC
Description of problem:
When you try to add a ProcessEventListener to StatefulKnowledgeSession and you are missing jBPM libraries on classpath, you get a NullPointerException.

Version-Release number of selected component (if applicable):
BRMS-5.3.0.dev5
Drools-5.3.0.Final

How reproducible:
Using attached reproducer.

Steps to Reproduce:
1. Make sure you don't have any jBPM libs on classpath
2. Create stateful session
3. Add ProcesEventListener (e.g. DebugProcessEventListener)
  
Actual results:
java.lang.NullPointerException
	at org.drools.impl.StatefulKnowledgeSessionImpl.addEventListener(StatefulKnowledgeSessionImpl.java:199)
	at org.sample.TryProcessListener.main(TryProcessListener.java:20)

Expected results:
Either meaningful exception (like NojBPMException) or correct addition of listener

Additional info:
It only affects StatefulKnowledgeSession, the StatefulKnowledgeSession runs just fine.

Comment 1 JBoss JIRA Server 2012-02-06 08:36:31 UTC
Mario Fusco <mario.fusco> updated the status of jira JBRULES-3375 to Resolved

Comment 2 Ryan Zhang 2012-02-15 09:11:46 UTC
Please verify the issue on 5.3 ER4.

Comment 3 Tomas Schlosser 2012-03-28 07:10:37 UTC
Verified. This issue is fixed.


Note You need to log in before you can comment on or make changes to this bug.