AMQ224000: Failure in initialisation: java.lang.NullPointerException

Solution Verified - Updated -

Issue

Broker gets java.lang.NullPointerException while loading journal files 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.s:erver] 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]

Environment

  • Red Hat AMQ Broker
    • 7.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content