Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C59E10B02 for ; Wed, 5 Feb 2014 00:36:41 +0000 (UTC) Received: (qmail 77166 invoked by uid 500); 5 Feb 2014 00:36:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 77133 invoked by uid 500); 5 Feb 2014 00:36:38 -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 77014 invoked by uid 99); 5 Feb 2014 00:36:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 00:36:36 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 00:36:30 +0000 Received: by mail-qa0-f41.google.com with SMTP id w8so13575430qac.28 for ; Tue, 04 Feb 2014 16:36:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=b3Zd1D3l9ETCoYo06poPaWoubEjY1Xn3EVk2pFv7EIQ=; b=oXvBzMESI4hR7cftEBG8pOwvxPsAgame6ZwDchBvXPY/rv5fPMoy1iqluwlRBbtUXb 4ZtiXMduwqIUsKgFJmdZ6gjeQEfR5ORMOmAtp83zqArYICCjdTDqqt/lsL3GZPSO16G8 U7ATIwJGvNsXyd158sAjaFthzeeDgjOPrkRP3sjwZbN5fJwLZnB6yaLaDdRiknC/ckBD 1IZY3dMwa3TGZAP88DEv8n7pVn1lAfYFK5xdf+0HyMqAc4KypkESR4ZJtpEk88A1DwRt sw0ai5LBGuoqqM/LED947Q0cV8gbwn86aoIBBfQ4aS23zY0ouw3YED/7ztVV4FPDmt1N UFhA== X-Received: by 10.140.97.73 with SMTP id l67mr67496937qge.56.1391560569989; Tue, 04 Feb 2014 16:36:09 -0800 (PST) Received: from [192.168.2.150] (c-98-218-173-79.hsd1.va.comcast.net. [98.218.173.79]) by mx.google.com with ESMTPSA id e2sm42725266qab.20.2014.02.04.16.36.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 16:36:09 -0800 (PST) Message-ID: <52F18778.9020107@gmail.com> Date: Tue, 04 Feb 2014 19:36:08 -0500 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Upgrade from activeMq 5.7 to 5.9 References: <1391558559580-4677437.post@n4.nabble.com> In-Reply-To: <1391558559580-4677437.post@n4.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 02/04/2014 07:02 PM, Pankaj Arora wrote: > > Hi, > I am trying to upgrade my broker from 5.7 to 5.9 and my existing consumers > using > activemq-all-5.7.0.jar(http://mvnrepository.com/artifact/org.apache.activemq/activemq-all) > started failing with following error: > 2014-02-04 15:22:31,063 WARN > org.springframework.jms.connection.CachingConnectionFactory:301 - > Encountered a JMSException - resetting the underlying JMS Connection > javax.jms.JMSException: Channel was inactive for too (>30000) long: > http://localhost/ > at > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) > at > org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1949) > at > org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1966) > at > org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101) > at > org.apache.activemq.transport.ResponseCorrelator.onException(ResponseCorrelator.java:126) > at > org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101) > at > org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:295) > at > org.apache.activemq.transport.AbstractInactivityMonitor$4.run(AbstractInactivityMonitor.java:209) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Caused by: org.apache.activemq.transport.InactivityIOException: Channel was > inactive for too (>30000) long: http://localhost/ > ... 4 more > 2014-02-04 15:22:31,064 INFO > org.springframework.jms.listener.DefaultMessageListenerContainer:893 - > Successfully refreshed JMS Connection > javax.jms.JMSException: Channel was inactive for too (>30000) long: > http://localhost/ > at > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) > at > org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1949) > at > org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1966) > at > org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101) > at > org.apache.activemq.transport.ResponseCorrelator.onException(ResponseCorrelator.java:126) > at > org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101) > at > org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:295) > at > org.apache.activemq.transport.AbstractInactivityMonitor$4.run(AbstractInactivityMonitor.java:209) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Caused by: org.apache.activemq.transport.InactivityIOException: Channel was > inactive for too (>30000) long: http://localhost/ > ... 4 more > 2014-02-04 15:22:31,203 INFO > org.apache.activemq.transport.http.HttpClientTransport:260 - Broker Servlet > supports GZip compression. > 2014-02-04 15:22:31,206 INFO > org.springframework.jms.connection.CachingConnectionFactory:291 - > Established shared JMS Connection: ActiveMQConnection > {id=ID:pankajarora-PC-65176-1391555324715-2:10,clientId=null,started=false} > > Exception in thread "ActiveMQ Transport: HTTP Reader http://localhost/" > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: > No such field > org.apache.activemq.command.ActiveMQTextMessage.jmsXGroupFirstForConsumer > ---- Debugging information ---- > field : jmsXGroupFirstForConsumer > class : org.apache.activemq.command.ActiveMQTextMessage > required-type : org.apache.activemq.command.ActiveMQTextMessage > converter-type : > com.thoughtworks.xstream.converters.reflection.ReflectionConverter > path : > /org.apache.activemq.command.MessageDispatch/message/jmsXGroupFirstForConsumer > line number : 148 > class[1] : org.apache.activemq.command.MessageDispatch > version : null > ------------------------------- > at > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.determineType(AbstractReflectionConverter.java:453) > at > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:294) > at > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) > at > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) > at > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:355) > at > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306) > at > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) > at > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) > at > com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1058) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1042) > at com.thoughtworks.xstream.XStream.fromXML(XStream.java:913) > at com.thoughtworks.xstream.XStream.fromXML(XStream.java:904) > at > org.apache.activemq.transport.xstream.XStreamWireFormat.unmarshalText(XStreamWireFormat.java:53) > at > org.apache.activemq.transport.util.TextWireFormat.unmarshal(TextWireFormat.java:56) > at > org.apache.activemq.transport.http.HttpClientTransport.run(HttpClientTransport.java:190) > at java.lang.Thread.run(Unknown Source) > > We have customers in production which consume messages using the old jar. Is > broker 5.9.0 not compatible with 5.7.0 consumers? Interestingly, both 5.7.0 > and 5.9.0 producers are able to produce messages on 5.9.0 broker. > Also when I move consumers to activemq-all-5.9.0.jar it works fine. > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Upgrade-from-activeMq-5-7-to-5-9-tp4677437.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > It appears you are using the HTTP transport correct? If so then you must update the client's as well as the XML marshalling from the newer version to the older version will cause errors like this because the XStream processor can't apply the newer fields in the messages. If you use the standard TCP based transports this wouldn't be an issue but mixing versions over HTTP is not a good idea. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/