Bug 1128639

Summary: Project is partially built even though there is CNFE
Product: [Retired] JBoss BPMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.2CC: kverlaen, mbaluch
Target Milestone: DR3   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:07:58 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:
Embargoed:
Attachments:
Description Flags
[0] git repository
none
[1] handlers none

Description Anton Giertli 2014-08-11 09:19:41 UTC
Created attachment 925651 [details]
[0] git repository

Description of problem:

I have tried to build a project and GUI informed me about ClassNotFoundException. However, the project was still somehow built - but only partially.

The message in the log says:

11:11:15,836 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-/127.0.0.1:8080-9) KieModule was added:MemoryKieModule[ ReleaseId=org.redhat.gss:customWorkItemProcess:1.1]


The project is displayed in the list of deployments in the business-central.

However, no process definition are displayed under Process Definition menu.

Moreover, if you try to undeploy the project for the first time, you receive:

	
Undeployment of unit org.redhat.gss:customWorkItemProcess:1.1 failed: null
-

For the second time, the undeployment is successful.

Version-Release number of selected component (if applicable):


How reproducible:

always

Steps to Reproduce:
1. Drop handlers.jar under WEB-INF/lib of business-central.war
2. Import the attached repository into the business-central
3. Build the project  - CNFE will be displayed through the GUI
4. Navigate to the Process Definition - no processes are loaded
5. Navigate to the list of deployments - the unit is there, try to undeploy it - it fails for the first time, should success for the second

Actual results:
The project is partially built even though there is ClassNotFoundException.

Expected results:

The project is not built at all.


Additional info:

Comment 2 Anton Giertli 2014-08-11 09:20:36 UTC
Created attachment 925652 [details]
[1] handlers

Comment 3 Anton Giertli 2014-08-11 09:24:23 UTC
And if you like watching a video,  grab the popcorn and watch it here:
https://docs.google.com/file/d/0B9FEDpx-WZeoR01ZeHRVbmVDNFk/edit

it seems like the exception in the log is not related to the undeployment at all.

Comment 4 Maciej Swiderski 2014-08-27 17:48:42 UTC
issue was mainly addressed by BZ 1104103 but was catching only Exceptions while in this particular case it was ClassNotFoundError that was not properly handled. Improvement to catch all Throwable was made

jbpm
master:
https://github.com/droolsjbpm/jbpm/commit/93b25ccdbef066f3aae07ca72a100af006bdf93c