activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nao tenho nao digo" <jafod...@gmail.com>
Subject Failed to checkpoint a message store: java.util.concurrent.ExecutionException
Date Sun, 20 Apr 2008 22:38:38 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message