Showing posts with label JMS. Show all posts
Showing posts with label JMS. Show all posts

30 January 2011

Apache ActiveMQ Startup Exception

I don't use ActiveMQ a lot but when I get back to a project where I was using it, I seem to get startup exceptions pretty often.  The stack trace is really long and ugly.

java.io.EOFException: Chunk stream does not exist at page: 0

At first I wasn't sure what was going on, just deleted the activemq folder, unzipped the distro, and back running in minutes.  The next time it happened, I spent a few minutes looking at what I may have done to cause this.


Out of just dumb luck, I found that if I deleted the activemq/data folder contents (not the data folder itself, just the contents - kahadb, localhost, etc), I could restart without error.  Turns out that there's a bug in KahaDB, the default persistence store in ActiveMQ.

I've found no side effects from deleting the data folder contents, none of my deployed apps need to maintain message persistence between shutdowns.

YMMV.

What do you think? Leave a comment.

28 January 2008

ESB 01

Enterprise Service Bus (ESB). Nice name. Every time I see something with "enterprise" in the title, I get the "ooh"s. Or is it the "aah"s? I simply can't walk past a book titled "Enterprise blah blah" without stopping to thumb thru it. It's only $59.99 and it's shiny. Should I impulse buy it now or add it to the Amazon cart for later?

ESBs. I've messed with a few of them, probably used Apache's ServiceMix the most. Using servicemix, I had a Groovy SOAP server working with a JMS app in about 10 minutes. Maybe it was 15. I tend to exaggerate. Whatever time, it was short and servicemix was easy. Speaking of MQ, have you read Linda's Open Message Queue Blog? It looks pretty good but she hasn't updated since October 2007.

Some guys at work are using BEA's Aqua Logic. I've not had the chance to use it but they seem to like it, especially the message transformations. I've got a demo disc sitting on my desk and anyone can download a demo. I should test drive this soon. Last summer I used both JBoss and WebLogic JEE servers and I found that WebLogic was much more stable. I think the price is a little steep for mortals but the product was better.

There's also Mule which I've never tried. I've stumbled across an interesting article "Exploring ESB Patterns with Mule". Yet another thing to work thru and try out when I have a spare hour or ten.