[
https://issues.apache.org/jira/browse/ARTEMIS-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robbie Gemmell reopened ARTEMIS-1984:
-------------------------------------
> config-delete-queues decode problem starting up during upgrade attempt from
> 2.1.0
> ---------------------------------------------------------------------------------
>
> Key: ARTEMIS-1984
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1984
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.2.0, 2.3.0, 2.4.0, 2.5.0
> Environment: $ uname -a
> Linux 3.10.0-862.3.2.el7.x86_64 #1 SMP Tue May 15 18:22:15 EDT 2018 x86_64
> x86_64 x86_64 GNU/Linux
> Broker: 2.1.0 initially, attempting to upgrade to 2.2.0 or 2.5.0
> Reporter: Dan Langford
> Priority: Major
>
> i know this is a problem from 2.2.0 to 2.5.0. i havent fully validated that
> it is an issue on 2.6.0+ which is why this Jira ticket was a little delayed.
> this was spawned from a message on the mailing list from myself
> [http://mail-archives.apache.org/mod_mbox/activemq-users/201805.mbox/%3C0P81000MJFKBWI10%40pv33p00im-asmtp001.me.com%3E]
> i was unable to start up after an upgrade and the breakpoints seemed to point
> to a property "config-delete-queues" which was added, among others, in 2.2.0.
> seems to be a decode or deserialization problem around AddressSettings.decode
> [~jbertram] and [~clebertsuconic] have provided me with some ideas for a
> workaround in the mean time
>
> here is the entire initial message i sent to the user list
> ------------
>
> we are running 2.1.0 and i tried to upgrade to 2.5.0 and ran into some
> problems. in an attempt to isolate the problem i rolled things back and just
> attempted to upgrade to 2.2.0. The startup exception i saw on both 2.5.0 and
> 2.2.0 are quite similar.
>
> 2.5.0
> ====
>
> ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in
> initialisation: java.lang.NegativeArraySizeException
> at
> org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:182)
> [artemis-commons-2.5.0.jar:2.5.0]
> at
> org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:171)
> [artemis-commons-2.5.0.jar:2.5.0]
> at
> org.apache.activemq.artemis.api.core.SimpleString.readNullableSimpleString(SimpleString.java:158)
> [artemis-commons-2.5.0.jar:2.5.0]
> at
> org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper.readNullableSimpleString(ChannelBufferWrapper.java:69)
> [artemis-commons-2.5.0.jar:2.5.0]
> at
> org.apache.activemq.artemis.core.settings.impl.AddressSettings.decode(AddressSettings.java:736)
> [artemis-server-2.5.0.jar:2.5.0]
>
> 2.2.0
> ====
> ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in
> initialisation: java.lang.NegativeArraySizeException
> at
> org.apache.activemq.artemis.api.core.SimpleString.readSimpleString(SimpleString.java:149)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.api.core.SimpleString.readNullableSimpleString(SimpleString.java:143)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper.readNullableSimpleString(ChannelBufferWrapper.java:69)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.core.settings.impl.AddressSettings.decode(AddressSettings.java:724)
> [artemis-server-2.2.0.jar:2.2.0]
>
> i went and looked at the source code for those and it appears during the
> decode when trying to read a value for config-delete-queues. I see that this
> value was added in 2.2.0.
>
> How do i upgrade from 2.1.0? All of my addresses and queues are defined at
> runtime with the API (meaning they are not defined in the broker.xml file).
> Is upgrade possible? did others run into this back when 2.2.0 was released?
>
> thanks
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)