You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Ives Stoddard (JIRA)" <ji...@apache.org> on 2011/01/12 01:24:45 UTC

[jira] Created: (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
------------------------------------------------------------------------------------

                 Key: AMQ-3131
                 URL: https://issues.apache.org/jira/browse/AMQ-3131
             Project: ActiveMQ
          Issue Type: Bug
          Components: Message Store
    Affects Versions: 5.4.2
         Environment: - Sun Solaris 5.10
- Master / Slave with shared storage
            Reporter: Ives Stoddard



The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):

{noformat}

2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
java.lang.IllegalStateException: PageFile is not loaded
        at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
        at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
        at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
        at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
        at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
        at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
        at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
        at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
        at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
        at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
        at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
        at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
        at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
        at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
        at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
        at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
        at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
        at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
        at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
        at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
        at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
{noformat}

Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):

{noformat}
2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
java.lang.IllegalStateException: PageFile is not loaded
        at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
        at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
        at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
        at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
        at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
        at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
        at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
        at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
        at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
        at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
        at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
        at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
        at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
        at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
        at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
        at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
        at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
        at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
        at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
        at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
        at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
        at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
{noformat}

Subsequent start / stops result in the same shutdown errors above.

Is there a workaround for this besides deleting the datastore DB files?




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


[jira] Commented: (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999312#comment-12999312 ] 

Ioannis Canellos commented on AMQ-3131:
---------------------------------------

I am having similar issues. In my case they are clearly related to the scheduler.


javax.jms.JMSException: PageFile is not loaded
        at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
        at org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1833)
        at org.apache.activemq.ActiveMQConnection$2$1.run(ActiveMQConnection.java:1754)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: PageFile is not loaded
        at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
        at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
        at org.apache.activemq.broker.scheduler.JobSchedulerImpl.schedule(JobSchedulerImpl.java:110)
        at org.apache.activemq.broker.scheduler.SchedulerBroker.send(SchedulerBroker.java:185)
        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:227)
        at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:135)
        at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:462)
        at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:677)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:311)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:228)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
        at org.apache.activemq.transport.nio.NIOTransport.serviceRead(NIOTransport.java:129)
        at org.apache.activemq.transport.nio.NIOTransport.access$000(NIOTransport.java:44)
        at org.apache.activemq.transport.nio.NIOTransport$1.onSelect(NIOTransport.java:68)
        at org.apache.activemq.transport.nio.SelectorSelection.onSelect(SelectorSelection.java:94)
        at org.apache.activemq.transport.nio.SelectorWorker$1.run(SelectorWorker.java:119)
        ... 3 more


> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Gary Tully (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187960#comment-13187960 ] 

Gary Tully commented on AMQ-3131:
---------------------------------

Glad you got sorted :-)
On Jan 17, 2012 7:51 p.m., "Arthur Naseef (Commented) (JIRA)" <


                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981699#action_12981699 ] 

Gary Tully commented on AMQ-3131:
---------------------------------

please attach the full log of the broker if this occurs again. the additional context may help diagnose.

> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

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


[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Arthur Naseef (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187945#comment-13187945 ] 

Arthur Naseef commented on AMQ-3131:
------------------------------------

SCRATCH THAT.

I had build problems that prevented the updates from taking effect.  Using the latest version of the scheduler sources resolves the problem for us.
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Ives Stoddard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990122#comment-12990122 ] 

Ives Stoddard commented on AMQ-3131:
------------------------------------

@Frank: couple questions...

1) do you recall what the changes were to activemq.xml?
2) are you using the scheduler functionality?
3) are you using anything other than the default prefectch or batching settings?

Thanks.

> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Gary Tully (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188504#comment-13188504 ] 

Gary Tully commented on AMQ-3131:
---------------------------------

@devantor: for the periodic expiry case, that can be disabled via policy entry, expireMessagesPeriod=0
Expiry will still occur on send/dispatch, the only problem will be when there are no consumers, there will be no check for expiry, so expired messages can build up till dispatch is attempted again. 
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Sébastien Bucci (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001363#comment-13001363 ] 

Sébastien Bucci commented on AMQ-3131:
--------------------------------------

I have the same problem after an activemq.xml change.
Environment : 
 - Windows xp/2008 r2
 - I'm using scheduler

{code:java}
2011-02-10 05:00:46,992 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
java.lang.IllegalStateException: PageFile is not loaded
	at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
	at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
	at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
	at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
	at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
	at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
	at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
	at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
	at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
	at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
	at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
	at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
	at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
	at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
	at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
	at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
	at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
	at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
	at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
	at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
	at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
	at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
{code}

> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Matthew Good (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017697#comment-13017697 ] 

Matthew Good commented on AMQ-3131:
-----------------------------------

I have the same problem.  In my case, I deleted several queues from admin console.  These queues were used for testing scheduled messages.  When I stopped ActiveMQ, I got 5 of these errors.  When I restarted it 5 of the queues I deleted reappeared.  Coincidence or part of the problem - I can't say.

> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Frank Gynnild (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990094#comment-12990094 ] 

Frank Gynnild commented on AMQ-3131:
------------------------------------

I ran into the same issue today, but I got if after changing some parameters in the activemq.xml file and then did a restart of AMQ.

> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Gary Tully (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-3131.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.6.0
         Assignee: Gary Tully

The schedular store is not started when it is created so the use before initialisation error should not occur on trunk. Reopen if this is reproducible with trunk of 5.6 
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Jean-Philippe Melanson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153051#comment-13153051 ] 

Jean-Philippe Melanson commented on AMQ-3131:
---------------------------------------------

Similar stack trace here:
{code}
Caused by: java.lang.IllegalStateException: PageFile is not loaded 
  at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721) 
  at org.apache.kahadb.page.PageFile.tx(PageFile.java:239) 
  at org.apache.activemq.broker.scheduler.JobSchedulerImpl.schedule(JobSchedulerImpl.java:110) 
  at org.apache.activemq.broker.scheduler.SchedulerBroker.send(SchedulerBroker.java:185) 
  at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129) 
  at org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:96)
{code} 

I haven't reproduced it yet, but I opened up the trunk code and seems like {{JobSchedulerImpl.schedule()}} methods are using the {{tx()}} method, which in turn asserts that the {{PageFile}} is loaded, which doesn't seems to be the case. 

I don't know the code at all, but I wonder if the job scheduler should check if the page file is loaded first, load it if needed and process with the transaction? What do you think?
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "devantor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188495#comment-13188495 ] 

devantor commented on AMQ-3131:
-------------------------------

I don't know the steps to reproduce this one. But this bug affect also expired messages. org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:772)

Failed to reset batching
java.lang.IllegalStateException: PageFile is not loaded
at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:469)
at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:256)
at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
at org.apache.activemq.broker.region.Queue.doBrowse(Queue.java:1009)
at org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:772)
at org.apache.activemq.broker.region.Queue.access$100(Queue.java:83)
at org.apache.activemq.broker.region.Queue$2.run(Queue.java:123)
at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Sergei Sokolov (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188334#comment-13188334 ] 

Sergei Sokolov commented on AMQ-3131:
-------------------------------------

Arthur, right now I experience the same error. Moreover, I can see a lot of .log files in KahaDb. I believe that they are not got cleaned up because of this exception.

I also don't want to move to 5.6.0 and I would love to have this fix in 5.5.1 version. Can you commit your changes into 5.5.1 version so the latest snapshot of 5.5.1 would have your changes?
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Arthur Naseef (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185731#comment-13185731 ] 

Arthur Naseef commented on AMQ-3131:
------------------------------------

Hey Gary, we need to back-port a patch as we are not comfortable to run the 5.6-SNAPSHOT to fix this problem and the 5.5.1 version is still problematic.

After back-porting all of the changes to the Scheduler code, this still happens.

Do you have any idea where else I should look?  I've been going through all of the Jira entries resolved in 5.6 and not finding any promising leads.

                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Gary Tully (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155545#comment-13155545 ] 

Gary Tully commented on AMQ-3131:
---------------------------------

For the shutdown case, there is a fix on trunk, the org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512) checks if the page file has been unloaded as it will be due to being shutdown before the destinations.
http://svn.apache.org/viewvc?rev=1170201&view=rev
                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3131) Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded

Posted by "Arthur Naseef (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188543#comment-13188543 ] 

Arthur Naseef commented on AMQ-3131:
------------------------------------

Sergei - my issue was with the scheduler for which the fixes are in 5.5.1, I believe.  If your having trouble due to the scheduler, the latest head version of the sources for the following directory fixed my problem:

activemq-core/src/main/java/org/apache/activemq/broker/scheduler

Note that we still see "failed to reset batching" errors with this update when shutting down the brokers if there are messages still pending delivery in the scheduler, but that's not a problem for us.

                
> Failed to reset batching ... java.lang.IllegalStateException: PageFile is not loaded
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3131
>                 URL: https://issues.apache.org/jira/browse/AMQ-3131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.2
>         Environment: - Sun Solaris 5.10
> - Master / Slave with shared storage
>            Reporter: Ives Stoddard
>            Assignee: Gary Tully
>             Fix For: 5.6.0
>
>
> The following error just started showing up in our ActiveMQ log file for unknown reasons (repeated 11 times, all within a second):
> {noformat}
> 2011-01-11 03:42:00,997 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | Thread-2002
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.console.command.StartCommand$1.run(StartCommand.java:135)
> {noformat}
> Similarly we now have an issue on shutdown, with the following error (also repeating 11 times):
> {noformat}
> 2011-01-11 10:34:39,652 | ERROR | Failed to reset batching | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
> java.lang.IllegalStateException: PageFile is not loaded
>         at org.apache.kahadb.page.PageFile.assertLoaded(PageFile.java:721)
>         at org.apache.kahadb.page.PageFile.tx(PageFile.java:239)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.resetBatching(KahaDBStore.java:512)
>         at org.apache.activemq.store.ProxyMessageStore.resetBatching(ProxyMessageStore.java:93)
>         at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.resetBatch(QueueStorePrefetch.java:85)
>         at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.stop(AbstractStoreCursor.java:69)
>         at org.apache.activemq.broker.region.cursors.StoreQueueCursor.stop(StoreQueueCursor.java:84)
>         at org.apache.activemq.broker.region.Queue.stop(Queue.java:853)
>         at org.apache.activemq.broker.region.AbstractRegion.stop(AbstractRegion.java:110)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.region.RegionBroker.doStop(RegionBroker.java:713)
>         at org.apache.activemq.broker.jmx.ManagedRegionBroker.doStop(ManagedRegionBroker.java:113)
>         at org.apache.activemq.broker.region.RegionBroker.stop(RegionBroker.java:213)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.scheduler.SchedulerBroker.stop(SchedulerBroker.java:104)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.BrokerFilter.stop(BrokerFilter.java:161)
>         at org.apache.activemq.broker.TransactionBroker.stop(TransactionBroker.java:114)
>         at org.apache.activemq.broker.BrokerService$3.stop(BrokerService.java:1773)
>         at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
>         at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:575)
>         at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1971)
>         at org.apache.activemq.broker.BrokerService$4.run(BrokerService.java:1938)
> {noformat}
> Subsequent start / stops result in the same shutdown errors above.
> Is there a workaround for this besides deleting the datastore DB files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira