Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1051769

Summary: Port already in use after application disable/enable via EAP console
Product: [Retired] JBoss BRMS Platform 6 Reporter: Alexandre Porcelli <porcelli>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, lpetrovi, mbaluch, mwinkler, rrajasek, rzhang, tdavid, vigoyal
Target Milestone: ER2Keywords: TestBlocker
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:57:15 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
Server log
none
New server log none

Description Alexandre Porcelli 2014-01-11 12:05:01 UTC
Description of problem:

Application can't start after disabled due Port already in use exception.

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


How reproducible:

Disbale and try to enable application from EAP console.

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Alexandre Porcelli 2014-01-11 12:12:03 UTC
Fix pushed to master and product branch of uberfire repository:

(master) http://github.com/droolsjbpm/uberfire/commit/1871d7fbd
(0.3.x) http://github.com/droolsjbpm/uberfire/commit/871d91755

Comment 3 Tomas David 2014-01-24 11:45:36 UTC
Created attachment 854904 [details]
Server log

I cannot verify it. 

When I disable business-central.war and after that I enable it, new problem appeared (see log in attachment).

Comment 4 Alexandre Porcelli 2014-01-25 13:02:37 UTC
What setup are you using to execute this? Is this using modules or full .war?

Comment 5 Marek Winkler 2014-01-26 22:57:46 UTC
Hi Alex,

I have reproduced the problem that Tomas reports using the BRMS product build which is using modules. I have reproduced it also with BPMS (as expected). 

When you disable business-central in EAP admin console, it cannot be enabled again due to the "File system is close" exception (see server.log). When you restart EAP, business-central deploys again.

Comment 7 Alexandre Porcelli 2014-01-27 14:04:57 UTC
Thanks Marek for the info - i managed to reproduce the issue (that happens only if you use modules). Fix pushed to master and product branch of uberfire repository (unique impacted repo):

(master) http://github.com/uberfire/uberfire/commit/fa669f32a
(0.3.x) http://github.com/uberfire/uberfire/commit/58f459167

Comment 9 Lukáš Petrovický 2014-02-07 16:19:41 UTC
This no longer has a target release of 6.0.0.

Comment 10 Tomas David 2014-02-18 12:55:11 UTC
Sorry, but I still can't verify this bug, because business-central in EAP admin console can't be re-enabled. 

When I try to enable business-central, "java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader" is thrown. See new-server.log.

Comment 11 Tomas David 2014-02-18 12:55:53 UTC
Created attachment 864541 [details]
New server log

Comment 12 Alexandre Porcelli 2014-02-25 14:41:20 UTC
Fix pushed to master and product branch of uberfire and drools repositories:

(master) http://github.com/droolsjbpm/drools/commit/758624fa4
(6.0.x) http://github.com/droolsjbpm/drools/commit/30d9915d2

(master) http://github.com/uberfire/uberfire/commit/65ac3aad8
(0.3.x) http://github.com/uberfire/uberfire/commit/909b82b48

Comment 13 Tomas David 2014-03-06 13:52:18 UTC
Verified on BRMS 6.0.1.ER2.