Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-827

deltaspike-helloworld-jms quickstart ftest fails on "testQueue is already registered"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 2.7.0.ER2
    • Fix Version/s: None
    • Component/s: DeltaSpike
    • Labels:

      Description

      When I configure my EAP for this quickstart (add the the JMS test queue) and then I run the functional test on the same server the test fails on:

      08:32:48,852 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."jboss-deltaspike-helloworld-jms.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-deltaspike-helloworld-jms.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "jboss-deltaspike-helloworld-jms.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.4.2.Final-redhat-2.jar:7.4.2.Final-redhat-2]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
      	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.messaging.default.jms.queue.testQueue is already registered
      	at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:236) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:742) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:243) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2433) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:243) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2433) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:345) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.as.messaging.jms.JMSQueueAdd.installServices(JMSQueueAdd.java:95)
      	at org.jboss.as.messaging.deployment.MessagingXmlInstallDeploymentUnitProcessor.deploy(MessagingXmlInstallDeploymentUnitProcessor.java:99)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.2.Final-redhat-2.jar:7.4.2.Final-redhat-2]
      	... 5 more
      
      08:32:48,871 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Deploy of deployment "jboss-deltaspike-helloworld-jms.war" was rolled back with the following failure message: 
      {
          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"jboss-deltaspike-helloworld-jms.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jboss-deltaspike-helloworld-jms.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"jboss-deltaspike-helloworld-jms.war\"
          Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.messaging.default.jms.queue.testQueue is already registered"},
          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"jboss-deltaspike-helloworld-jms.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"jboss-deltaspike-helloworld-jms.war\".beanmanager]"]
      

      This is because the test tries to add the very same queue into the EAP before the execution. It is nice that it is automatic, but it is mentioned NOWHERE! I would assume that users will use the very same EAP for deploying application as well as for test execution, so they then will receive this exception. There are three solutions:
      1. Add this fact into the README file
      2. To use different queue for testing
      3. To remove automatic configuration of the queue from the test

      I would NOT prefer the first solution.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rafabene Rafael Benevides
                  Reporter:
                  mjobanek Matous Jobanek
                  Tester:
                  Matous Jobanek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: