Guys
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...
4ip>
12-Jan-2007 12:33:51 [AnonymousIoService-7]
com.myserver.client.xml.XMLProxyProtocolHandler.exceptionCaught() -
Exception caught by proxy:
12-Jan-2007 12:33:51 [AnonymousIoService-7]
com.myserver.client.xml.XMLProxyProtocolHandler.exceptionCaught() -
Exception type =
org.apache.mina.filter.codec.ProtocolDecoderException, message =
org.apache.mina.common.BufferDataException: Line is too long: 7230
(Hexdump: empty)
org.apache.mina.filter.codec.ProtocolDecoderException:
org.apache.mina.common.BufferDataException: Line is too long: 7230
(Hexdump: empty)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:168)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
--------------------------------------------------------------
note that I am using the following protocol on both my proxy for the
client and xmlserver.....
cfg.getFilterChain().addLast(
"codec",
new ProtocolCodecFilter(
new TextLineCodecFactory() ) );
I am assuming that this buffer overflow is simply that this protocol
has a limit therefore is there a work around for this or do i need to
use another protocol????
--
Peter Ellis