mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Vietense <ingo.viete...@gmail.com>
Subject Re: "Line too long" Exception
Date Mon, 25 May 2009 10:52:12 GMT
thanks. that solved my problem :-)


On Mon, May 25, 2009 at 1:17 AM, Emmanuel Lecharny <elecharny@apache.org>wrote:

> Ingo Vietense wrote:
>
>> Hi,
>>
>> i took the ChatServerSpring example and tried to implement server based on
>> this example.
>>
>> But now i'm facing a:
>>
>> org.apache.mina.filter.codec.RecoverableProtocolDecoderException: Line is
>> too long: 1123 (Hexdump: 32 31 39 .......................................
>>
>>
>
> The TextLineDecoder uses an internal buffer with a 1024 size. You can
> change this value using the setMmaxLineLength method :
>
>   /**
>    * Sets the allowed maximum size of the line to be decoded.
>    * If the size of the line to be decoded exceeds this value, the
>    * decoder will throw a {@link BufferDataException}.  The default
>    * value is <tt>1024</tt> (1KB).
>    */
>   public void setMaxLineLength(int maxLineLength)
>
> --
> --
> cordialement, regards,
> Emmanuel L├ęcharny
> www.iktek.com
> directory.apache.org
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message