You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by James Barwick <jb...@sentienthealth.com> on 2011/01/27 04:28:34 UTC

Re: Problem starting geronimo (ActiveMQ)

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.

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