[ 
https://issues.apache.org/jira/browse/AMQ-2363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dejan Bosanac updated AMQ-2363:
-------------------------------

    Fix Version/s:     (was: 5.4.2)
                   5.5.0

> Client using 41 API and Server is running on 5.2
> ------------------------------------------------
>
>                 Key: AMQ-2363
>                 URL: https://issues.apache.org/jira/browse/AMQ-2363
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.1.2, 5.2.0
>         Environment: linux 32 bit -2.6.18-92.el5 i686 i686 i386 GNU/Linux-, 
> jre1.6.0_10 
>            Reporter: rk
>             Fix For: 5.5.0
>
>
> We are running ActiveMQ ver 5.2 server, all the clients are using Activemq 
> 4.1.1to connect to the same server.
> It works fine for sometime but after that if we restart the activmq server we 
> see the following error. As it works some time and doesnt work few times we 
> are not sure if we have to change the client API to Activemq 5.2. Any comment 
> on this will be helpful.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> INFO | jvm 1 | 2009/08/23 02:36:01 | [ERROR] 02:36:01 AbstractStoreCursor - 
> Failed to fill batch
> INFO | jvm 1 | 2009/08/23 02:36:01 | java.io.IOException: Failed to read to 
> journal for: offset = 692, file = 1, size = 0, type = 0. Reason: 
> java.io.IOException: Invalid location: offset = 692, file = 1, size = 0, type 
> = 0, : java.lang.NegativeArraySizeException
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.amq.AMQPersistenceAdapter.createReadException(AMQPersistenceAdapter.java:647)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.amq.AMQPersistenceAdapter.readCommand(AMQPersistenceAdapter.java:533)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.amq.AMQMessageStore.getMessage(AMQMessageStore.java:435)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.amq.RecoveryListenerAdapter.recoverMessageReference(RecoveryListenerAdapter.java:54)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.kahadaptor.KahaReferenceStore.recoverReference(KahaReferenceStore.java:82)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.kahadaptor.KahaReferenceStore.recoverNextMessages(KahaReferenceStore.java:120)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.amq.AMQMessageStore.recoverNextMessages(AMQMessageStore.java:533)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:75)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:227)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:100)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1179)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.Queue.addSubscription(Queue.java:237)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.AbstractRegion.addConsumer(AbstractRegion.java:275)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.RegionBroker.addConsumer(RegionBroker.java:372)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:86)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:86)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.advisory.AdvisoryBroker.addConsumer(AdvisoryBroker.java:83)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:86)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:93)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.TransportConnection.processAddConsumer(TransportConnection.java:541)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.command.ConsumerInfo.visit(ConsumerInfo.java:345)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at java.lang.Thread.run(Unknown Source)
> INFO | jvm 1 | 2009/08/23 02:36:01 | Caused by: java.io.IOException: Invalid 
> location: offset = 692, file = 1, size = 0, type = 0, : 
> java.lang.NegativeArraySizeException
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.kaha.impl.async.DataFileAccessor.readRecord(DataFileAccessor.java:94)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.kaha.impl.async.AsyncDataManager.read(AsyncDataManager.java:624)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.store.amq.AMQPersistenceAdapter.readCommand(AMQPersistenceAdapter.java:530)
> INFO | jvm 1 | 2009/08/23 02:36:01 | ... 29 more
> INFO | jvm 1 | 2009/08/23 02:36:01 | [ERROR] 02:36:01 AbstractStoreCursor - 
> Failed to fill batch
> INFO | jvm 1 | 2009/08/23 02:36:01 | java.lang.RuntimeException: 
> java.io.IOException: Failed to read to journal for: offset = 692, file = 1, 
> size = 0, type = 0. Reason: java.io.IOException: Invalid location: offset = 
> 692, file = 1, size = 0, type = 0, : java.lang.NegativeArraySizeException
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:230)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:100)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1179)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.Queue.addSubscription(Queue.java:237)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.AbstractRegion.addConsumer(AbstractRegion.java:275)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.region.RegionBroker.addConsumer(RegionBroker.java:372)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:86)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:86)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.advisory.AdvisoryBroker.addConsumer(AdvisoryBroker.java:83)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:86)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:93)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.TransportConnection.processAddConsumer(TransportConnection.java:541)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.command.ConsumerInfo.visit(ConsumerInfo.java:345)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
> INFO | jvm 1 | 2009/08/23 02:36:01 | at 
> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
> INFO | jvm 1 | 2009/08/23 02:36:01 | 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to