Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10782

IllegalArgumentException from messaging-activemq after migration from EAP 6.4.x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 14.0.0.Beta2
    • None
    • JMS, Migration
    • None

      Trying to boot the server with configuration migrated from EAP 6.4.x fails with IllegalArgumentException: Cannot require dependency more than once:service jboss.binding.messaging-throughput.

      Reproduce

      WORKSPACE=`pwd`
      CONFIG=standalone-full.xml
      
      unzip -q jboss-eap-6.4.20.zip
      cp -r ${WILDFLY}/dist/target/wildfly-14.0.0.Beta2-SNAPSHOT wildfly
      
      SOURCE_HOME=${WORKSPACE}/jboss-eap-6.4
      TARGET_HOME=${WORKSPACE}/wildfly
      
      cp ${SOURCE_HOME}/standalone/configuration/${CONFIG} ${TARGET_HOME}/standalone/configuration
      ${TARGET_HOME}/bin/standalone.sh -c ${CONFIG} --start-mode=admin-only &
      ${TARGET_HOME}/bin/jboss-cli.sh --connect --controller=remote://localhost:9999
      
      # Migrate
      /subsystem=jacorb:migrate
      /subsystem=messaging:migrate
      /subsystem=web:migrate
      /subsystem=cmp:remove
      /extension=org.jboss.as.cmp:remove
      /subsystem=jaxr:remove
      /extension=org.jboss.as.jaxr:remove
      /subsystem=threads:remove
      /extension=org.jboss.as.threads:remove
      reload
      

      Outcome

      12:39:40,016 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 47) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "messaging-activemq"),
          ("server" => "default")
      ]): java.lang.IllegalArgumentException: Cannot require dependency more than once:service jboss.binding.messaging-throughput
      

      Attachments:
      standalone-full-6.4.20.xml - out-of-box 6.4.20 config file
      standalone-full-wildfly.xml - out-of-box Wildfly 32910b3 (Thu Aug 2 10:49:25 CEST 2018) config file
      standalone-full-6.4.20-to-wildfly.xml - configuration produced by migration

      This was working with 01852ab revision (Mon Jul 16 07:41:15 CEST 2018), unfortunately my automation for migration tool testing (which helps me to hit the issue) was broken due to galleon2 move, so without more investigation involved I'm unable to tell precise date when the issue appeared.

      The issue is regression thus marking as a blocker.

            jmesnil1@redhat.com Jeff Mesnil
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: