activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Bugs in Stomp transport
Date Fri, 05 May 2006 07:32:01 GMT
On 5/5/06, Danielius Jurna <danielius@elitnet.lt> wrote:
>
> Hi.
>
> I found some bugs in stomp transport:
> CommandParser.java:41
> in.readline() can return null -> possible NullPointerException

There's actually a try/catch for that exception in the code there...

> HeaderParser.java:48
> the same - in.readline() can return null -> possible NullPointerException
>
> I'm getting these nullpointers when unplugging cable from the client
> (failover test) - stream returns null when connection is closed (according
> to DataInput javadoc). After that you have to restart broker to get stomp
> working - not very nice :-(.

Good catch. I've tidied up the null handling code in these 2 files now
to make it a little more clear; let us know if that fixes it for you.

--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message