mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Mallach ...@ariva.de>
Subject Re: Buffer Overflow Error when getting a large (string) object back from the mina server when using TextLineCodecFactory
Date Fri, 12 Jan 2007 15:02:53 GMT

> I have been successful in sending short string messages to my xml
> server (which is built on top of mina) however when my application
> first starts up (to connect to my server etc) the server returns the
> status of all the office phones this results in the return of quite a
> large string :-( and i get the following error...
> cfg.getFilterChain().addLast(
>                                             "codec",
>                                             new ProtocolCodecFilter(
> new TextLineCodecFactory() ) );
The TextLineDecoder has a default maximum line length of 1024 bytes. You can 
use TextLineCodecFactory.setDecoderMaxLineLength() to allow larger messages.

bye; Paul.

ARIVA.DE AG, Paul Mallach, Produktentwicklung
Walkerdamm 17, 24103 Kiel
Tel.: +(49) 0431/97108-23, Fax: +(49) 0431/97108-29
E-Mail: pm@ariva.de, Web: www.ariva.de

View raw message