Bug 1500297
| Summary: | [GSS] (6.4.z) Address DeploymentUnitProcessor leaks in the codebase | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | tmiyargi |
| Component: | EJB | Assignee: | Petr Jurak <pjurak> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiří Bílek <jbilek> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4.17 | CC: | bmaxwell, david.lloyd, dosoudil, ksuzumur, pjurak |
| Target Milestone: | CR1 | ||
| Target Release: | EAP 6.4.19 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-16 11:04:14 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1498153 | ||
Upstream EAP 7.0: https://issues.jboss.org/browse/JBEAP-13851 Upstream EAP 7.1: https://issues.jboss.org/browse/JBEAP-10787 Upstream WildFly: https://issues.jboss.org/browse/WFLY-8697 Verified with EAP 6.4.19.CP.CR1 |
Have 2 ears A and Z, A has a dependency (jboss-all) on Z, A has a singleton, startup scheduler, if I redeploy Z, A redeploys and fails with IllegalStateException: 16:40:05,470 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.subunit."jboss-javaee-sampletimer.ear"."jboss-javaee-sampletimer-ejb.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss-javaee-sampletimer.ear"."jboss-javaee-sampletimer-ejb.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss-javaee-sampletimer-ejb.jar" of deployment "jboss-javaee-sampletimer.ear" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:184) [jboss-as-server-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2064) [jboss-msc-1.1.7.SP1-redhat-1.jar:1.1.7.SP1-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1987) [jboss-msc-1.1.7.SP1-redhat-1.jar:1.1.7.SP1-redhat-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014186: Failed to install management resources for ScheduleExample at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.deploy(EjbManagementDeploymentUnitProcessor.java:82) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:177) [jboss-as-server-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1] ... 5 more Caused by: java.lang.IllegalStateException at org.jboss.as.server.deployment.DeploymentModelUtils.getOrCreate(DeploymentModelUtils.java:100) [jboss-as-server-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1] at org.jboss.as.server.deployment.DeploymentModelUtils.createDeploymentSubModel(DeploymentModelUtils.java:81) [jboss-as-server-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1] at org.jboss.as.server.deployment.DeploymentUnitImpl.createDeploymentSubModel(DeploymentUnitImpl.java:104) [jboss-as-server-7.5.16.Final-redhat-1.jar:7.5.16.Final-redhat-1] at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.installManagementResource(EjbManagementDeploymentUnitProcessor.java:118) at org.jboss.as.ejb3.deployment.processors.EjbManagementDeploymentUnitProcessor.deploy(EjbManagementDeploymentUnitProcessor.java:79) ... 6 more If I redeploy just A all works fine, the code in jboss-as-server-7.5.16.Final-redhat-1.jar indicates that the scheduler might still be somewhere: if (parent.hasChild(element)) { if (desired == null) { return parent.requireChild(element); } throw new IllegalStateException(); } Upstream https://issues.jboss.org/browse/JBEAP-10787