RE: ActiveMQ exits on startup with UTFDataFormatException: bad string

2015-09-12 Thread gijsbert802
I don't think there's a corrupt message, if I revert back to 5.11.1 then ActiveMQ starts normally. I ran ActiveMQ with a debugger and was able to reproduce the error. The byte array that is loaded by getAdapter().doGetMessageById(c, seq); is not empty, I dumped the complete content to a file and u

Re: ActiveMQ exits on startup with UTFDataFormatException: bad string

2015-09-12 Thread gijsbert802
The error occurs on startup, so I don't get a chance to connect an external client. I tried replacing the client jar in activemq/lib (replaced activemq-client-5.12.0.jar with activemq-client-5.11.1.jar), but that logs another error. 2015-09-12 17:03:24,431 ERROR o.a.activemq.broker.BrokerService

Re: how do you test rollback with an embedded broker?

2015-09-12 Thread Kevin Burton
AH ! Good point about the prefetch policy. That always confusing because it’s a way for messages to kind of be delivered but hidden. Anyway. Setting prefetch to zero doesn’t resolve it.. But closing the second connection DOES… So I think this is how it works.. which I couldn’t find documented

Re: how do you test rollback with an embedded broker?

2015-09-12 Thread Christopher Shannon
Your problem is you are always creating a new consumer in your consume() method but never closing it. So the consumer is sticking around and hanging onto messages in prefetch. You either need to reuse your message consumer (call receive() on the same open consumer after rollback because it's gett

Re: ActiveMQ exits on startup with UTFDataFormatException: bad string

2015-09-12 Thread Christopher Shannon
OpenWire v11 was introduced in 5.12.0. Can you try using a 5.11.1 client with a 5.12.0 broker? I'm curious to see if the error still exists if the OpenWire version falls back to v10. On Sat, Sep 12, 2015 at 11:14 AM, Tim Bain wrote: > The interesting line in the stack trace is > > org.apache.a

RE: ActiveMQ exits on startup with UTFDataFormatException: bad string

2015-09-12 Thread Tim Bain
The interesting line in the stack trace is org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(). (The 5.11.1 version of that code is at http://grepcode.com/file/repo1.maven.org/maven2/org.apache.activemq/activemq-jdbc-store/5.11.1/org/apache/activemq/store/jdbc/JDB

RE: ActiveMQ exits on startup with UTFDataFormatException: bad string

2015-09-12 Thread Weatherby,Gerard
Total guess; I'd look at the encoding of your xml configuration files. What's the operating system? > -Original Message- > From: gijsbert802 [mailto:vandenbr...@zorgdomein.nl] > Sent: Saturday, September 12, 2015 8:07 AM > To: users@activemq.apache.org > Subject: ActiveMQ exits on startup

ActiveMQ exits on startup with UTFDataFormatException: bad string

2015-09-12 Thread gijsbert802
Hi all, I'm trying to upgrade ActiveMQ from 5.11.1 to 5.12, but I'm getting an error when ActiveMQ is starting. It seems to come from the JDBCPersistenceAdapter. We're using an Oracle database as persistent storage. Other than the ActiveMQ version, nothing changed. Here's the relevant logging: