[Rabbit-dev] StackOverflowError

Robert Olofsson robert.olofsson at khelekore.org
Sun Jun 26 17:00:49 CEST 2011


On Fri, 17 Jun 2011 09:51:24 +0100
Mindaugas Žakšauskas <mindas at gmail.com> wrote:

> Exception in thread "org.khelekore.rnio.impl.SingleSelectorRunner 0"
> java.lang.StackOverflowError
>         at java.util.logging.Logger.getLogger(Logger.java:287)
>         at rabbit.httpio.BaseSocketHandler.<init>(BaseSocketHandler.java:24)
>         at rabbit.httpio.BlockSender.<init>(BlockSender.java:37)
>         at rabbit.handler.BaseHandler.bufferRead(BaseHandler.java:493)
>         at rabbit.httpio.ChunkHandler.handleChunkData(ChunkHandler.java:164)
>         at rabbit.httpio.ChunkHandler.handleData(ChunkHandler.java:74)

Ok, I have identified this problem, it comes from web pages that send back a
big block of data (from a web page) with chunked data and each chunk is only 
a few bytes long, basically the data looks like:

3
<ht
3
ml>
5
<body
1
>
...

Chunked data has a minimal header that tells how big the next chunk is and
then that number of bytes of data.

This can happen with BaseHandler and with GZipHandler/FilterHandler.

Ok, now I figure out a way to remove this problem.

/robo



More information about the Rabbit-dev mailing list