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

The broker throws java.lang.NullPointerException during startup

XMLWordPrintable

      The broker throws java.lang.NullPointerException during startup.

      2021-08-09 06:45:02,676 INFO  [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
      2021-08-09 06:45:02,676 INFO  [org.apache.activemq.artemis.core.server] AMQ221035: Live Server Obtained live lock
      2021-08-09 06:45:20,547 INFO  [org.apache.activemq.artemis.core.server] AMQ221014: 30% loaded
      2021-08-09 06:45:21,147 INFO  [org.apache.activemq.artemis.core.server] AMQ221014: 61% loaded
      2021-08-09 06:45:21,641 INFO  [org.apache.activemq.artemis.core.server] AMQ221014: 92% loaded
      2021-08-09 06:45:22,633 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.NullPointerException
      	at org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl$PageCursorInfo.getValidCache(PageSubscriptionImpl.java:1198) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl.processReload(PageSubscriptionImpl.java:759) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.paging.cursor.impl.PageCursorProviderImpl.processReload(PageCursorProviderImpl.java:301) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.processReload(PagingStoreImpl.java:346) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.paging.impl.PagingManagerImpl.processReload(PagingManagerImpl.java:486) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:1322) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:3516) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:3181) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:76) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:639) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:558) [artemis-server-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:64) [artemis-cli-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:115) [artemis-cli-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:153) [artemis-cli-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:101) [artemis-cli-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:128) [artemis-cli-2.16.0.redhat-00022.jar:2.16.0.redhat-00022]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_292]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_292]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_292]
      	at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_292]
      	at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134) [artemis-boot.jar:2.16.0.redhat-00022]
      	at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50) [artemis-boot.jar:2.16.0.redhat-00022]
      

      There are no other errors in the broker log file.
      This error start appearing after upgrade of the OCP from 4.6 to 4.7. The suspicion is that the broker was shut down, during upgrade, in a manner that resulted in journal corruption.

              csuconic@redhat.com Clebert Suconic
              rhn-support-toross Tom Ross
              Roman Vais Roman Vais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: