osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Artemis] NPE on server (re)start


Did you remove the paging directory?

Perhaps you could share your data with us? if you download a snapshot
of master, you can do:

./artemis data print --safe

(that will hide anything specific for your data itself.. only showing
the structure of messages and transactions).


I work with Francesco Nigro (not on the same office.. but we work
together virtually).. and he showed me a possible fix.


On Fri, May 11, 2018 at 7:18 AM, Archibald <archi99@xxxxxxx> wrote:
> Hi,
>
> Yesterday the server (version 2.5.0) was processing > 2m messages, today I
> needed to restart the broker but it failed with
> an NPE.
>
> Here's the log.
>
> 2018-05-11 10:19:22,898 INFO
> [org.apache.activemq.artemis.integration.bootstrap] AMQ101000: Starting
> ActiveMQ Artemis Server
> 2018-05-11 10:19:23,017 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221000: live Message Broker is starting with configuration Broker
> Configuration
> (clustered=true,journalDirectory=data/journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/large-messages,pagingDirectory=data/paging)
> 2018-05-11 10:19:23,063 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221012: Using AIO Journal
> 2018-05-11 10:19:23,134 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221057: Global Max Size is being adjusted to 1/2 of the JVM max size
> (-Xmx). being defined as 1,342,177,280
> 2018-05-11 10:19:23,249 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221043: Protocol module found: [artemis-server]. Adding protocol support
> for: CORE
> 2018-05-11 10:19:23,253 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221043: Protocol module found: [artemis-amqp-protocol]. Adding protocol
> support for: AMQP
> 2018-05-11 10:19:23,253 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221043: Protocol module found: [artemis-hornetq-protocol]. Adding
> protocol support for: HORNETQ
> 2018-05-11 10:19:23,254 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221043: Protocol module found: [artemis-mqtt-protocol]. Adding protocol
> support for: MQTT
> 2018-05-11 10:19:23,254 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221043: Protocol module found: [artemis-openwire-protocol]. Adding
> protocol support for: OPENWIRE
> 2018-05-11 10:19:23,255 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221043: Protocol module found: [artemis-stomp-protocol]. Adding protocol
> support for: STOMP
> 2018-05-11 10:19:23,626 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221034: Waiting indefinitely to obtain live lock
> 2018-05-11 10:19:23,627 INFO  [org.apache.activemq.artemis.core.server]
> AMQ221035: Live Server Obtained live lock
> 2018-05-11 10:19:34,878 ERROR [org.apache.activemq.artemis.core.server]
> AMQ224000: Failure in initialisation: java.lang.NullPointerException
>         at
> org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl.installTXCallback(PageSubscriptionImpl.java:848)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl.reloadPreparedACK(PageSubscriptionImpl.java:582)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadPreparedTransactions(AbstractJournalStorageManager.java:1774)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:1169)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2588)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:2346)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:71)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:522)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:461)
> [artemis-server-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:111)
> [artemis-cli-2.5.0.jar:2.5.0]
>         at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:82)
> [artemis-cli-2.5.0.jar:2.5.0]
>         at
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149)
> [artemis-cli-2.5.0.jar:2.5.0]
>         at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:97)
> [artemis-cli-2.5.0.jar:2.5.0]
>         at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:124)
> [artemis-cli-2.5.0.jar:2.5.0]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [rt.jar:1.8.0_151]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [rt.jar:1.8.0_151]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_151]
>         at java.lang.reflect.Method.invoke(Method.java:498)
> [rt.jar:1.8.0_151]
>         at
> org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129)
> [artemis-boot.jar:2.5.0]
>         at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49)
> [artemis-boot.jar:2.5.0]
>
> What is it about?
>
> Thanks,
> Archibald
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html



-- 
Clebert Suconic