Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 16CD5200BFC for ; Sat, 31 Dec 2016 06:30:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 154FF160B3F; Sat, 31 Dec 2016 05:30:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 35C1A160B32 for ; Sat, 31 Dec 2016 06:30:54 +0100 (CET) Received: (qmail 86701 invoked by uid 500); 31 Dec 2016 05:30:53 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 86689 invoked by uid 99); 31 Dec 2016 05:30:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Dec 2016 05:30:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 16E5E1A069F for ; Sat, 31 Dec 2016 05:30:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.545 X-Spam-Level: *** X-Spam-Status: No, score=3.545 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rMxnXpOexyqK for ; Sat, 31 Dec 2016 05:30:47 +0000 (UTC) Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CEF8A5F1B3 for ; Sat, 31 Dec 2016 05:30:46 +0000 (UTC) Received: by mail-ua0-f169.google.com with SMTP id v2so91706863uac.2 for ; Fri, 30 Dec 2016 21:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=ZnTkDvx1kmaVlFIJ7ycXmCNjjWVlN9Z/ph8CU1Ldxvw=; b=MlGdBpZgUrE8fitK/GwdmH5ghImRA781lBZ3nhW/spcy/NbxsL8vWrLSjTbxtqujQT sG6/lpj3w5WjIjTCJdLL0lk9k+q5lgXAQQrlg7KELNoLT0hqowILVHCxzjN4lAGW/pSx x3YD31asnqpfo6BQhkjZ99DZGok7mysRZOMOopKvw605oGF8V15hwNglmHLx26tgf+Im hgQTVBg9/ABtmod94TtnaC5lbUVGGxPkFJHYpxy+sBMRoRgdwu1UhvFs4W1A5J3x9WLz qHwzHmen6oBrp5O8VNBpCGnxaf2WHdP1Dicv6kIsZcpdULb21H0ZtY0w/ehLg/kSN926 aWUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=ZnTkDvx1kmaVlFIJ7ycXmCNjjWVlN9Z/ph8CU1Ldxvw=; b=PR63fs11spv7ELMMnRPzwVN54D4NVAYS3dvQQGJ/c+rQ0F1hsbwJYLr6iboBNCYfM8 MZ1Ad6DO+wCaLuzH/C9//i2chaVSW8G0XklJ8TGlQ7CrQqzd+FKuF3gfmllj2lNQc9ae 5cN8U0/R2KrLol5yWhcoLYDBiqqiAhvvG4N+hB3uRnq/LfYBAfsnhKrIBDZ5VJFmVZxh eqU348DMXvznLm++5/D3kl8V53K3TNxRR1D9o5qOp74ZgC7kXZn/7IQqvfXPA+scZKiJ E4eF/yus84FUjRJ3apkmfK4nw6NzOMrvML5z3v8ZkjrcViUyt4cIXkdbOlW29N76wNHn LuvA== X-Gm-Message-State: AIkVDXIOeJ177w97KNwAFzvOY3WcIVdd+SEAbRzZsT+dEbnqz8seBdWzN6W4dQLoovg1kDNiffN1u1vjk/3sfA== X-Received: by 10.176.84.208 with SMTP id q16mr39088588uaa.35.1483162234792; Fri, 30 Dec 2016 21:30:34 -0800 (PST) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.103.26.133 with HTTP; Fri, 30 Dec 2016 21:30:34 -0800 (PST) Received: by 10.103.26.133 with HTTP; Fri, 30 Dec 2016 21:30:34 -0800 (PST) In-Reply-To: <1482993430464-4720764.post@n4.nabble.com> References: <1482993430464-4720764.post@n4.nabble.com> From: Tim Bain Date: Fri, 30 Dec 2016 22:30:34 -0700 X-Google-Sender-Auth: lad6W1py4QfruNaF6iMZdSefwd4 Message-ID: Subject: Re: upgrading from activemq 5.8.0 to 5.14.1 To: ActiveMQ Users Content-Type: multipart/alternative; boundary=f403045e35e8262da40544ed9e56 archived-at: Sat, 31 Dec 2016 05:30:55 -0000 --f403045e35e8262da40544ed9e56 Content-Type: text/plain; charset=UTF-8 One possible approach is to stand up a 5.14.1 broker with an empty persistence store for clients to connect to, and a 5.8.0 broker that connects to the 5.14.1 broker in a network of brokers configuration. Clients would not connect to the 5.8.0 broker, but as consumers connect to the 5.14.1 broker they will create demand that will flow messages from the 5.8.0 broker to the 5.14.1 broker and then to the consumer. Tim On Dec 30, 2016 11:17 AM, "madhavi_68" wrote: > We are upgrading the activemq api from 5.8.0 version to 5.14.1 version to > get > rid of vulnerbilities. > > But when there are some existing messages in activemq tables, we are > getting > exception as follows and activemq is not running. > > we are using jdbcPersistenceAdapter. > Is this because of the difference between the old format of the data of > messages. What is the solution for this. > > I see there is a method in openwireformat to set version. But with > jdbcPersistenceAdapter, I am not seeing any configurable aatribute for that > to do. > > Thank you so much in advance for your help. > > Regards > GK > > Caused by: java.io.UTFDataFormatException: bad string > at > org.apache.activemq.util.DataByteArrayInputStream.readUTF( > DataByteArrayInputStream.java:315) > at > org.apache.activemq.openwire.v11.BaseDataStreamMarshaller. > looseUnmarshalString(BaseDataStreamMarshaller.java:571) > at > org.apache.activemq.openwire.v11.MessageIdMarshaller.looseUnmarshal( > MessageIdMarshaller.java:122) > at > org.apache.activemq.openwire.OpenWireFormat.looseUnmarshalNestedObject( > OpenWireFormat.java:474) > at > org.apache.activemq.openwire.v11.BaseDataStreamMarshaller. > looseUnmarsalNestedObject(BaseDataStreamMarshaller.java:466) > at > org.apache.activemq.openwire.v11.MessageMarshaller.looseUnmarshal( > MessageMarshaller.java:220) > at > org.apache.activemq.openwire.v11.ActiveMQMessageMarshaller.looseUnmarshal( > ActiveMQMessageMarshaller.java:101) > at > org.apache.activemq.openwire.v11.ActiveMQTextMessageMarshaller. > looseUnmarshal(ActiveMQTextMessageMarshaller.java:101) > at > org.apache.activemq.openwire.OpenWireFormat.doUnmarshal( > OpenWireFormat.java:367) > at > org.apache.activemq.openwire.OpenWireFormat.unmarshal( > OpenWireFormat.java:201) > at > org.apache.activemq.store.jdbc.JDBCPersistenceAdapter. > getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:266) > at > org.apache.activemq.broker.region.DestinationFactoryImpl. > getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:147) > at > org.apache.activemq.broker.region.RegionBroker.( > RegionBroker.java:130) > at > org.apache.activemq.broker.BrokerService.createRegionBroker( > BrokerService.java:2363) > at > org.apache.activemq.broker.BrokerService.createRegionBroker( > BrokerService.java:2348) > at > org.apache.activemq.broker.BrokerService.createBroker( > BrokerService.java:2305) > at > org.apache.activemq.broker.BrokerService.getBroker( > BrokerService.java:1017) > at > org.apache.activemq.broker.BrokerService.getAdminConnectionContext( > BrokerService.java:2576) > at > org.apache.activemq.broker.BrokerService.startDestinations( > BrokerService.java:2560) > at > org.apache.activemq.broker.BrokerService.doStartBroker( > BrokerService.java:726) > at > org.apache.activemq.broker.BrokerService.startBroker( > BrokerService.java:720) > at org.apache.activemq.broker.BrokerService.start( > BrokerService.java:623) > at > org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet( > XBeanBrokerService.java:73) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1700) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1639) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568) > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/upgrading-from-activemq-5-8-0-to-5-14-1-tp4720764.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --f403045e35e8262da40544ed9e56--