activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Failed to checkpoint a message store: java.util.concurrent.ExecutionException
Date Mon, 21 Apr 2008 06:29:43 GMT

On 20 Apr 2008, at 23:38, nao tenho nao digo wrote:

> Hello ppl,
>
> I'm using activemq 5.0.0 in a redhat linux with mysql persistence.  
> Everyday
> i'm getting the exception:
>
> 2008-04-20 11:09:53,296 [eckpoint Worker] ERROR  
> JournalPersistenceAdapter
>   -
> Failed to checkpoint a message store:
> java.util.concurrent.ExecutionException:
> java.io.IOException: Already started.
> java.util.concurrent.ExecutionException: java.io.IOException: Already
> started.
>        at java.util.concurrent.FutureTask$Sync.innerGet(Unknown  
> Source)
>        at java.util.concurrent.FutureTask.get(Unknown Source)
>        at
> org.apache.activemq.store.journal.JournalPersistenceAdapter.doCheckpo
> int(JournalPersistenceAdapter.java:397)
>        at
> org.apache.activemq.store.journal.JournalPersistenceAdapter$1.iterate
> (JournalPersistenceAdapter.java:118)
>        at
> org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskR
> unner.java:98)
>        at
> org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRun
> ner.java:36)
> Caused by: java.io.IOException: Already started.
>        at
> org.apache.activemq.store.jdbc.TransactionContext.begin(TransactionCo
> ntext.java:148)
>        at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.beginTransactio
> n(JDBCPersistenceAdapter.java:356)
>        at
> org.apache.activemq.store.journal.JournalPersistenceAdapter.beginTran
> saction(JournalPersistenceAdapter.java:192)
>        at
> org.apache.activemq.util.TransactionTemplate.run(TransactionTemplate.
> java:41)
>        at
> org.apache.activemq.store.journal.JournalMessageStore.checkpoint(Jour
> nalMessageStore.java:257)
>        at
> org.apache.activemq.store.journal.JournalMessageStore.checkpoint(Jour
> nalMessageStore.java:232)
>        at
> org.apache.activemq.store.journal.JournalPersistenceAdapter$4.call(Jo
> urnalPersistenceAdapter.java:367)
>        at
> org.apache.activemq.store.journal.JournalPersistenceAdapter$4.call(Jo
> urnalPersistenceAdapter.java:366)
>        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown  
> Source)
>        at java.util.concurrent.FutureTask.run(Unknown Source)
>        at java.util.concurrent.ThreadPoolExecutor 
> $Worker.runTask(Unknown
> Source
> )
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>        at java.lang.Thread.run(Unknown Source)
> 2008-04-20 11:11:16,004 [eckpoint Worker] ERROR  
> JournalPersistenceAdapter
>   -
> Failed to checkpoint a message store:
> java.util.concurrent.ExecutionException:
> java.io.IOException: Already started.
>
> I have the same error with the configuration:
>
>   <persistenceAdapter>
>        <journaledJDBC journalLogFiles="5"
> dataDirectory="${activemq.base}/activ
> emq-data"  dataSource="#mysql-ds"/>
>    </persistenceAdapter>
>
> and
>
> <persistenceAdapter>
>                        <journaledJDBC  dataSource="#mysql-ds"
> useDatabaseLock="
> false"/>
> </persistenceAdapter>.
>
>
> with mysql-ds bean:
> <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
> destroy-me
> thod="close">
>    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
>    <property name="url"
> value="jdbc:mysql://***.***.***.***/activemq?relaxAutoCo
> mmit=true"/>
>    <property name="username" value="*****"/>
>    <property name="password" value="******"/>
>    <property name="poolPreparedStatements" value="true"/>
>     <property name="initialSize" value="10" />
>     <property name="maxActive" value="64" />
>                <property name="maxIdle" value="2" />
>                <property name="maxWait" value="15000" />
>  </bean>
>
> Can anyone help  me solve this issue?
>
> Thanks in advance.
>
> Nuno Palma

Hi Nuno,

could you raise a jira for this so we can track it  ? - see http://issues.apache.org/activemq/browse/AMQ




cheers,

Rob

http://open.iona.com/ -Enterprise Open Integration
http://rajdavies.blogspot.com/




Mime
View raw message