Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13874

[Artemis upgrade] Exported journal from 7.1 cannot be imported to 7.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • None
    • 7.2.0.GA
    • JMS
    • Hide

      Import attached XML export into the EAP 7.2.

      Show
      Import attached XML export into the EAP 7.2.

    Description

      Customer impact: Customers are not able to migrate their messaging data from EAP 7.1 to EAP 7.2.

      Scenario:

      • Start and configure EAP 7.1 - create user and queue
      • Send messages to queue
      • Stop EAP 7.1
      • Export journal from EAP 7.1 using CLI export-journal operation
      • Copy configuration files from EAP 7.1 to EAP 7.2
      • Import journal to EAP 7.2 using CLI import-journal operation

      Expectation: XML gotten by exporting journal from EAP 7.1 is successfully imported by import journal operation in EAP 7.2.

      Reality: EAP 7.2 import journal operation fails with an error.

      Demonstration of using import operation in EAP 7.2
      [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default:import-journal(file=/home/eduda/Sandbox/7.1/jboss-eap-7.1/standalone/data/activemq/journal-20171124-151307584+0100-dump.xml)
      {
          "outcome" => "failed",
          "failure-description" => "java.lang.String cannot be cast to java.lang.Number",
          "rolled-back" => true
      }
      
      Warning logged in server.log when the import operation fails
      2017-11-24 15:14:36,447 WARN  [org.apache.activemq.artemis.core.server] (Thread-26 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@2f186bc1)) AMQ222112: exception while retrieving attribute ID on queue.jms.queue.TestQueue: java.lang.IllegalStateException: Problem while retrieving attribute ID
              at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.getAttribute(ManagementServiceImpl.java:693)
              at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.handleMessage(ManagementServiceImpl.java:412)
              at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.handleManagementMessage(ServerSessionImpl.java:1596)
              at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1383)
              at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1311)
              at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1304)
              at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.onSessionSend(ServerSessionPacketHandler.java:690)
              at org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.onMessagePacket(ServerSessionPacketHandler.java:290)
              at org.apache.activemq.artemis.utils.actors.Actor.doTask(Actor.java:33)
              at org.apache.activemq.artemis.utils.actors.ProcessorBase$ExecutorTask.run(ProcessorBase.java:53)
              at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
              at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
              at org.apache.activemq.artemis.utils.actors.ProcessorBase$ExecutorTask.run(ProcessorBase.java:53)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalArgumentException: AMQ119067: Cannot find resource with name queue.jms.queue.TestQueue
              at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.getAttribute(ManagementServiceImpl.java:676)
              ... 15 more
      

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              eduda_jira Erich Duda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: