Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-911

[AMQ7, paging] java.lang.IllegalStateException: Cursor X had already been created

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.0.3.GA
    • AMQ 7.0.2.GA
    • broker-core
    • None
      • using specific set of data files (journal, bindings, paging, largemessages) was able to replicate the issue

      When broker is restarted the following exception is seen during startup and failed to start.

      2017-11-10 14:13:15,708 WARN  [org.apache.activemq.artemis.core.server] AMQ222173: Queue dead_letter_queue is duplicated during reload. This queue will be renamed as dead_letter_queue-0
      2017-11-10 14:13:15,708 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.IllegalStateException: java.lang.IllegalStateException: Cursor 4 had already been created
              at org.apache.activemq.artemis.core.server.QueueConfig$Builder.build(QueueConfig.java:151) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.impl.PostOfficeJournalLoader.initQueues(PostOfficeJournalLoader.java:154) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2471) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:2258) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.impl.SharedNothingLiveActivation.run(SharedNothingLiveActivation.java:116) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:598) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:481) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:109) [artemis-cli-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:78) [artemis-cli-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:148) [artemis-cli-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:95) [artemis-cli-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:122) [artemis-cli-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_102]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_102]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_102]
              at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_102]
              at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) [artemis-boot.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) [artemis-boot.jar:2.0.0.amq-700012-redhat-1]
      Caused by: java.lang.IllegalStateException: Cursor 4 had already been created
              at org.apache.activemq.artemis.core.paging.cursor.impl.PageCursorProviderImpl.createSubscription(PageCursorProviderImpl.java:100) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              at org.apache.activemq.artemis.core.server.QueueConfig$Builder.build(QueueConfig.java:149) [artemis-server-2.0.0.amq-700012-redhat-1.jar:2.0.0.amq-700012-redhat-1]
              ... 17 more
      

              rh-ee-ataylor Andy Taylor
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: