[JBoss JIRA] (AS7-5253) Server :reload fails with 'IllegalStateException: duplicate transformer add'
by Ivo Studensky (JIRA)
Ivo Studensky created AS7-5253:
----------------------------------
Summary: Server :reload fails with 'IllegalStateException: duplicate transformer add'
Key: AS7-5253
URL: https://issues.jboss.org/browse/AS7-5253
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Affects Versions: 7.1.3.Final (EAP), 7.2.0.Alpha1
Reporter: Ivo Studensky
Assignee: Brian Stansberry
The server :reload operation always fails with 'IllegalStateException: duplicate transformer add' on the current master and also on 7.1 (EAP) branch. See the following log snippet:
{noformat}
11:32:13,026 ERROR [org.jboss.as.controller.management-operation] JBAS014612: Operation ("parallel-extension-add") failed - address: ([]): java.lang.RuntimeException: JBAS014670: Failed initializing module org.jboss.as.jmx
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:99) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:156) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:191) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.server.ServerService.boot(ServerService.java:308) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.server.ServerService.boot(ServerService.java:283) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:156) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: duplicate transformer add
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [rt.jar:1.6.0_33]
at java.util.concurrent.FutureTask.get(FutureTask.java:83) [rt.jar:1.6.0_33]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$1.execute(ParallelExtensionAddHandler.java:91) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
... 9 more
Caused by: java.lang.IllegalStateException: duplicate transformer add
at org.jboss.as.controller.registry.OperationTransformerRegistry.registerTransformer(OperationTransformerRegistry.java:151) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.registry.GlobalTransformerRegistry.registerTransformer(GlobalTransformerRegistry.java:191) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.registry.GlobalTransformerRegistry$SubRegistry.registerTransformer(GlobalTransformerRegistry.java:303) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.registry.GlobalTransformerRegistry.registerTransformer(GlobalTransformerRegistry.java:195) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.registry.GlobalTransformerRegistry$SubRegistry.registerTransformer(GlobalTransformerRegistry.java:303) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.registry.GlobalTransformerRegistry.registerTransformer(GlobalTransformerRegistry.java:195) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.registry.GlobalTransformerRegistry.discardOperation(GlobalTransformerRegistry.java:74) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.transform.TransformerRegistry$TransformersSubRegistrationImpl.discardOperations(TransformerRegistry.java:247) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.jmx.JMXExtension.registerTransformers1_0_0(JMXExtension.java:163) [jboss-as-jmx-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.jmx.JMXExtension.initialize(JMXExtension.java:116) [jboss-as-jmx-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:97) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:113) [jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_33]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
{noformat}
It does not seem to be dependent on any specific component, it sometimes fails on JMX, sometimes on Transactions component and so on.
The issue is reproduced here:
http://hudson.qa.jboss.com/hudson/job/jbossas-reload-test-tmp/7/console
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (AS7-4917) paths need to allow expressions in its 'path' attribute
by Tom Fonteyne (JIRA)
Tom Fonteyne created AS7-4917:
---------------------------------
Summary: paths need to allow expressions in its 'path' attribute
Key: AS7-4917
URL: https://issues.jboss.org/browse/AS7-4917
Project: Application Server 7
Issue Type: Feature Request
Components: Logging
Affects Versions: 7.1.2.Final (EAP)
Reporter: Tom Fonteyne
Assignee: Brian Stansberry
The "paths" section should allow expressions for "path" elements
Rationale is the fact that customers often want the log files to be send to another directory "outside" of the JBoss directory.
<periodic-rotating-file-handler name="FILE">
...
<file relative-to="jboss.server.log.dir" path="server.log"/>
You can change the above and hardcode to : <file path="/logs/jboss/server.log"/>
but that means that as soon as you have two servers on the same machine, using the same profile, they will write to a single logfile.
The "file"s "path" attribute does not allow expressions; this RFE is however not for this attribute.
As relative-to="jboss.server.log.dir" can use self-defined names paths, we looked at the "paths" section.
<paths>
<path name="my.log" path="/logs/jboss/${my.system.propery}"/>
</paths>
but as it turns out, the "path" attribute of the "path" tag also does not allow expressions, and the above entry fails.
Hence: please allow the "path" attribute of the "path" tag to allow expressions so that the above "paths" example works.
Note that we consider this "Major" as customer do/want this functionality often.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months