You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Kevan Miller <ke...@gmail.com> on 2010/10/08 16:14:38 UTC

Re: Problem starting geronimo (ActiveMQ)

On Sep 22, 2010, at 2:39 PM, Faw wrote:

> 
> I'm testing geronimo and porting my cocoon app to it, and like in any testing
> environment, things crash. So after geronimo died, tried to start it and it
> wont run. I deleted the installation installed again, and still wont run.
> Does geronimo installs/uses/saves stuff in other directories other than its
> own? The error I'm getting is the following:
> 
> Module 61/74 org.apache.geronimo.configs/activemq-broker/2.2.2-SNAPSHOT/car                                   
> 2010-09-22 09:58:04,330 ERROR [BrokerService] Failed to start ActiveMQ JMS
> Message Broker. Reason: java.io.EOFException: Chunk stream does not exist at
> page: 0
> java.io.EOFException: Chunk stream does not exist at page: 0
>    at org.apache.kahadb.page.Transaction$2.readPage(Transaction.java:454)
>    at org.apache.kahadb.page.Transaction$2.<init>(Transaction.java:431)
>    at
> org.apache.kahadb.page.Transaction.openInputStream(Transaction.java:428)
>    at org.apache.kahadb.page.Transaction.load(Transaction.java:404)
>    at org.apache.kahadb.page.Transaction.load(Transaction.java:361)
>    at
> org.apache.activemq.broker.scheduler.JobSchedulerStore$3.execute(JobSchedulerStore.java:250)
...

For the record, this restart problem is caused by https://issues.apache.org/activemq/browse/AMQ-2935 -- a hard stop (e.g. kill -9) will frequently cause this problem.

You should be able to avoid this by editing var/activemq/conf/activemq.xml and adding schedulerSupport="false" (assuming you don't require JobScheduler support):

    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="${activemq.brokerName}" tmpDataDirectory="${activemq.data}/tmp_storage" useShutdownHook="false" start="false" schedulerSupport="false">

Working with the ActiveMQ community to get this fixed in an ActiveMQ release that Geronimo can consume. Meantime, we could consider changing the default configuration to use schedulerSupport="false".

--kevan

Re: Problem starting geronimo (ActiveMQ)

Posted by Pramod <ge...@yahoo.com>.
Thanks a lot, it worked for me.

--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Problem-starting-geronimo-ActiveMQ-tp1563093p3414431.html
Sent from the Users mailing list archive at Nabble.com.

Re: Problem starting geronimo (ActiveMQ)

Posted by Kevan Miller <ke...@gmail.com>.
On Jan 26, 2011, at 10:28 PM, James Barwick wrote:

> 
> You guys saved my life.  All was going along just fine.
> 
> I was starting/stopping geronimo 2.2.1 within eclipse for several days (I
> just started this new project 3 days ago).
> 
> Then, I started geronimo in "debug" mode.  Switched to the debug
> perspective, checked a few things, then terminated the server.
> 
> When I went to restart the server, it failed with this message.  Adding the
> schedulerSupport="false" solved my problem.  I don't know if I will need the
> scheduler.  At least I probably wont for now.
> 
> I wonder if the Eclipse Adapter is having problem with activemq's new
> requirement that the config Elements be in alphabetical order?  There is a
> parameter to change this behavior...if the eclipse adapter is specifying
> another xml configuration file on the command line and the elements are not
> in alpha order, it might be causing AMQ to fail to start.
> 
> Grasping...
> 
> again, thanks for this, saved mu life.

Glad it helped.

Two issues at play, I think:

1) the method that the server is being shutdown. A clean shutdown should never have this problem. However, an abnormal shutdown (OutOfMemoryError, kill -9, machine crash, power failure, eclipse terminate(maybe?)) can result in ActiveMQ log files to have an unexpected entry.
.
2) ActiveMQ's new KahaDB implementation had a bug (which appears to have been fixed in AMQ 5.4.2). KahaDB should be able to handle unexpected entries in their log files. However, they weren't. On restart, if an unexpected record was found, they were blowing up.

Upgrading AMQ to 5.4.2 should fix this problem. 

Alternatively, disabling schedulerSupport will also avoid this problem. Assuming you don't alter our default ActiiveMQ configuration to use KahaDB as the persistenceAdapter. If you did, this basic problem could occur on a different log file. As long as you're using the amqPersistenceAdapter (our default) and switch to schedulerSupport=false, you should be fine...

--kevan


Re: Problem starting geronimo (ActiveMQ)

Posted by James Barwick <jb...@sentienthealth.com>.
You guys saved my life.  All was going along just fine.

I was starting/stopping geronimo 2.2.1 within eclipse for several days (I
just started this new project 3 days ago).

Then, I started geronimo in "debug" mode.  Switched to the debug
perspective, checked a few things, then terminated the server.

When I went to restart the server, it failed with this message.  Adding the
schedulerSupport="false" solved my problem.  I don't know if I will need the
scheduler.  At least I probably wont for now.

I wonder if the Eclipse Adapter is having problem with activemq's new
requirement that the config Elements be in alphabetical order?  There is a
parameter to change this behavior...if the eclipse adapter is specifying
another xml configuration file on the command line and the elements are not
in alpha order, it might be causing AMQ to fail to start.

Grasping...

again, thanks for this, saved mu life.
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Problem-starting-geronimo-ActiveMQ-tp1563093p2359680.html
Sent from the Users mailing list archive at Nabble.com.