5 Replies Latest reply on Oct 14, 2011 11:43 PM by jaikiran pai

    JBoss 7.0.2 StackOverflowError with application.xml <connector> module

    insipid Newbie

      If I create a simple RAR (completely stubbed) with no deployment descriptor (using @Connector instead) and package it in an ear with nothing else everything is okay.  If I add an application.xml with a <connector> module referencing the rar I get the following stack trace:

       

      17:12:19,097 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."test-ear.ear".CONFIGURE_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test-ear.ear".CONFIGURE_MODULE: Failed to process phase CONFIGURE_MODULE of deployment "test-ear.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_27]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_27]

      at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]

      Caused by: java.lang.StackOverflowError

      at java.util.concurrent.atomic.AtomicReferenceArray.rawIndex(AtomicReferenceArray.java:30) [:1.6.0_27]

      at java.util.concurrent.atomic.AtomicReferenceArray.get(AtomicReferenceArray.java:84) [:1.6.0_27]

      at org.jboss.msc.service.UnlockedReadHashMap.doGetRow(UnlockedReadHashMap.java:144) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.msc.service.UnlockedReadHashMap.doGetRow(UnlockedReadHashMap.java:136) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.msc.service.UnlockedReadHashMap.doGet(UnlockedReadHashMap.java:130) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.msc.service.UnlockedReadHashMap.get(UnlockedReadHashMap.java:224) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.msc.service.ServiceContainerImpl.getService(ServiceContainerImpl.java:454) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.msc.service.DelegatingServiceRegistry.getService(DelegatingServiceRegistry.java:51) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:175) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.server.deployment.module.ModuleSpecProcessor.processManualTransitiveDependencies(ModuleSpecProcessor.java:191) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

       

      processManualTransitiveDependencies goes on to fill up the stack.

       

      I would like to be able to include the application.xml so that (in my real application) I can ensure the resource adapter get initialized first.