activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yogu13 <yogesh....@synechron.com>
Subject ActiveMQ 5.8.0 Issue with HTTP Connector
Date Tue, 19 Mar 2013 10:09:55 GMT
Hi,

We are using ActiveMQ 5.8.0 on JDK 1.6.37 (ubuntu machine). We are getting
the following error... As soon as we get the error the consumer count for
the queue goes to 0 and stops processing of any messages within the queue.
Below is the trace of it

2013-03-19 20:42:00,240 | WARN  | /api/message/example |
org.eclipse.jetty.servlet.ServletHandler | qtp1348062170-27
javax.jms.JMSException: java.io.UTFDataFormatException: encoded string too
long: 67966 bytes
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1391)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1319)
        at
org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1798)
        at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289)
        at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224)
        at org.apache.activemq.web.WebClient.send(WebClient.java:251)
        at
org.apache.activemq.web.MessageServlet.doPost(MessageServlet.java:150)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:363)
        at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
        at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)
        at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
        at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.util.concurrent.ExecutionException:
java.io.UTFDataFormatException: encoded string too long: 67966 bytes
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at
org.apache.activemq.broker.region.Queue.doMessageSend(Queue.java:799)
        at org.apache.activemq.broker.region.Queue.send(Queue.java:721)
        at
org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:406)
        at
org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:392)
        at
org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:282)
        at
org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129)
        at
org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:96)
        at
org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:317)
        at
org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:135)
        at
org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:499)
        at
org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:749)
        at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
        at
org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
        at
org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
        at
org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:241)
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        ... 1 more
Caused by: java.io.UTFDataFormatException: encoded string too long: 67966
bytes
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
        at
org.apache.activemq.util.MarshallingSupport.marshalPrimitiveMap(MarshallingSupport.java:62)
        at
org.apache.activemq.command.Message.beforeMarshall(Message.java:226)
        at
org.apache.activemq.command.ActiveMQTextMessage.beforeMarshall(ActiveMQTextMessage.java:107)
        at
org.apache.activemq.openwire.v6.MessageMarshaller.looseMarshal(MessageMarshaller.java:277)
        at
org.apache.activemq.openwire.v6.ActiveMQMessageMarshaller.looseMarshal(ActiveMQMessageMarshaller.java:111)
        at
org.apache.activemq.openwire.v6.ActiveMQTextMessageMarshaller.looseMarshal(ActiveMQTextMessageMarshaller.java:111)
        at
org.apache.activemq.openwire.OpenWireFormat.marshal(OpenWireFormat.java:168)
        at
org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.addMessage(KahaDBStore.java:430)
        at
org.apache.activemq.store.kahadb.KahaDBStore$StoreQueueTask.run(KahaDBStore.java:1191)
        ... 3 more
2013-03-19 20:42:14,480 | WARN  | /api/message/example |
org.eclipse.jetty.servlet.ServletHandler | qtp1348062170-30
javax.jms.JMSException: java.io.UTFDataFormatException: encoded string too
long: 185503 bytes
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1391)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1319)
        at
org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1798)
        at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289)
        at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224)
        at org.apache.activemq.web.WebClient.send(WebClient.java:251)
        at
org.apache.activemq.web.MessageServlet.doPost(MessageServlet.java:150)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:363)
        at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
        at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)
        at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
        at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.util.concurrent.ExecutionException:
java.io.UTFDataFormatException: encoded string too long: 185503 bytes
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at
org.apache.activemq.broker.region.Queue.doMessageSend(Queue.java:799)
        at org.apache.activemq.broker.region.Queue.send(Queue.java:721)
        at
org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:406)
        at
org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:392)
        at
org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:282)
        at
org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129)
        at
org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:96)
        at
org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:317)
        at
org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:135)
        at
org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:499)
        at
org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:749)
        at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
        at
org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
        at
org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
        at
org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:241)
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        ... 1 more
Caused by: java.io.UTFDataFormatException: encoded string too long: 185503
bytes
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
        at
org.apache.activemq.util.MarshallingSupport.marshalPrimitiveMap(MarshallingSupport.java:62)
        at
org.apache.activemq.command.Message.beforeMarshall(Message.java:226)
        at
org.apache.activemq.command.ActiveMQTextMessage.beforeMarshall(ActiveMQTextMessage.java:107)
        at
org.apache.activemq.openwire.v6.MessageMarshaller.looseMarshal(MessageMarshaller.java:277)
        at
org.apache.activemq.openwire.v6.ActiveMQMessageMarshaller.looseMarshal(ActiveMQMessageMarshaller.java:111)
        at
org.apache.activemq.openwire.v6.ActiveMQTextMessageMarshaller.looseMarshal(ActiveMQTextMessageMarshaller.java:111)
        at
org.apache.activemq.openwire.OpenWireFormat.marshal(OpenWireFormat.java:168)
        at
org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.addMessage(KahaDBStore.java:430)
        at
org.apache.activemq.store.kahadb.KahaDBStore$StoreQueueTask.run(KahaDBStore.java:1191)
        ... 3 more


Please note that the message comes via the HTTP connector in XML format.

Please do let me know if you need anything else. We experienced the same
error in ActiveMQ 5.5.1 because of which we upgraded to 5.8.0 hoping the
issue would have been fixed.

Thank you!

Regards,
-Yogesh



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-0-Issue-with-HTTP-Connector-tp4664876.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message