Bug 778676 (SOA-1146)

Summary: Null Pointer Exception in jBPM JobExecutor on server shutdown
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Julian Coleman <jcoleman>
Component: JBPM - within SOA, Build ProcessAssignee: Julian Coleman <jcoleman>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3 CP01   
Target Milestone: ---   
Target Release: 4.3 CP01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1146
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
SOA 4.3.0 CP01 pre-release with jBPM 3.2.4 and JSF console 3.3.1.GA
Last Closed: 2009-02-20 12:42:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Julian Coleman 2009-01-26 11:39:23 UTC
Date of First Response: 2009-01-27 05:07:33
project_key: SOA

Observe following in log on server shutdown:

> WARN  [org.jboss.soa.esb.services.jbpm.configuration.JbpmService] Stopping failed jboss.esb:service=JbpmService
> java.lang.NullPointerException
> 	at org.jbpm.job.executor.JobExecutor.stopAndJoin(JobExecutor.java:84)
> 	at org.jboss.soa.esb.services.jbpm.configuration.JbpmService.stopService(JbpmService.java:52)
> 	at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
> 	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)

Comment 1 Julian Coleman 2009-01-26 12:21:46 UTC
Thomas will look into this.

Thanks!

Comment 2 Thomas Diesler 2009-01-27 09:50:35 UTC
Link: Added: This issue depends JBPM-1989


Comment 3 Thomas Diesler 2009-01-27 10:07:33 UTC
Fixed in jbpm-3.2.4.SP1 and jbpm-3.2.6.GA

Comment 4 Kevin Conner 2009-01-28 11:43:40 UTC
While there is a bug in jBPM, and Thomas appears to have fixed this, the real issue is that the jsf-console.war configuration should not be allowed to start/stop the jBPM resources.

The real fix for this, within the SOA environment, is to disable the jBPM JobExecutorLauncher and JbpmConfigurationCloser servlets.

We have recently updated the jBPM version in the ESB project and hit the same issue, see JBESB-2312.

Comment 5 Julian Coleman 2009-01-28 12:18:33 UTC
We need to apply the same changes as those in JBESB-2312.

Comment 6 Julian Coleman 2009-01-28 15:43:08 UTC
Fixed on the 4.3 branch in revision 2571 of:

  build-tools/builders/jbpm/build.xml

Commit message:
  Synchronise changes to jBPM hibernate.cfg.xml with ESB.  See:
    http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/services/jbpm/upgrade-jbpm.txt

and revision 2575 of:
  build-tools/builders/soa/p-consoles/jbpm/resources/web-development.xml
  build-tools/builders/soa/p-consoles/jbpm/resources/web-production.xml

Commit message:
  Also comment out the JbpmConfigurationCloser.  From JIRA JBESB-2312.
  Fixes JIRA SOA-1146.


Comment 7 Jiri Pechanec 2009-02-20 12:42:20 UTC
Verified in CR2