activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shanmugam <shanmuth...@gmail.com>
Subject Failed to checkpoint a message store in activemq 5.9.0
Date Fri, 20 Mar 2015 12:10:46 GMT
Hi All

I am using *activemq 5.9.0* with persistence message

below is activemq config

 <persistenceFactory>
           <journalPersistenceAdapterFactory journalLogFiles="5"
journalLogFileSize="50MB" dataDirectory="${activemq.base}/data"
dataSource="#amq1.local-ds" useDatabaseLock="false"
createTablesOnStartup="false"/>
        </persistenceFactory>

<bean id="amq1.local-ds" class="org.postgresql.ds.PGPoolingDataSource">
            <property name="serverName" value="host"/>
            <property name="databaseName" value="db"/>
            <property name="portNumber" value="5432"/>
            <property name="user" value="postgres"/>
            <property name="password" value="postgres"/>
            <property name="dataSourceName" value="postgres"/>
            <property name="initialConnections" value="1"/>
            <property name="maxConnections" value="100"/>
        </bean>


i am facing following exception in broker log file

 *Failed to checkpoint a message store:
java.util.concurrent.ExecutionException: java.io.IOException: Already
started. | 
org.apache.activemq.store.journal.JournalPersistenceAdapter | Persistence
Adaptor Task-6264
java.util.concurrent.ExecutionException: java.io.IOException: Already
started.*
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at
org.apache.activemq.store.journal.JournalPersistenceAdapter.doCheckpoint(JournalPersistenceAdapter.java:445)
        at
org.apache.activemq.store.journal.JournalPersistenceAdapter$2.iterate(JournalPersistenceAdapter.java:250)
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Already started.
        at
org.apache.activemq.store.jdbc.TransactionContext.begin(TransactionContext.java:160)
        at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.beginTransaction(JDBCPersistenceAdapter.java:510)
        at
org.apache.activemq.store.journal.JournalPersistenceAdapter.beginTransaction(JournalPersistenceAdapter.java:228)
        at
org.apache.activemq.util.TransactionTemplate.run(TransactionTemplate.java:41)
        at
org.apache.activemq.store.journal.JournalMessageStore.checkpoint(JournalMessageStore.java:257)
        at
org.apache.activemq.store.journal.JournalMessageStore.checkpoint(JournalMessageStore.java:232)
        at
org.apache.activemq.store.journal.JournalPersistenceAdapter$4.call(JournalPersistenceAdapter.java:415)
        at
org.apache.activemq.store.journal.JournalPersistenceAdapter$4.call(JournalPersistenceAdapter.java:413)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)

can any one help me

Thanks
Shanmugam M



--
View this message in context: http://activemq.2283324.n4.nabble.com/Failed-to-checkpoint-a-message-store-in-activemq-5-9-0-tp4693525.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message