Error receiving XML in HTTPResponse body

jaimemm jaimemm at gmail.com
Tue Jan 13 11:20:24 EST 2009


The following error is taking place when receiving XML data in HTTPResponse


WARNING: EXCEPTION, please implement
test.netty.HttpResponseHandler.exceptionCaught() for proper handling.
java.lang.IllegalArgumentException: invalid version format: <?XML
	at
org.jboss.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:68)
	at
org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:53)
	at
org.jboss.netty.handler.codec.http.HttpResponseDecoder.readInitial(HttpResponseDecoder.java:40)
	at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:80)
	at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:42)
	at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:372)
	at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:345)
	at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.handleUpstream(ReplayingDecoder.java:308)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:293)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:280)
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:299)
	at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:244)
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:161)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
13-Jan-2009 16:16:52 org.jboss.netty.channel.SimpleChannelHandler
WARNING: EXCEPTION, please implement
test.netty.HttpResponseHandler.exceptionCaught() for proper handling.
java.lang.IllegalArgumentException: Invalid header syntax: <er-response
id="100001" sub-id="0">
	at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.splitHeader(HttpMessageDecoder.java:240)
	at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.readHeaders(HttpMessageDecoder.java:181)
	at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:83)
	at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:42)
	at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:372)
	at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:345)
	at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.handleUpstream(ReplayingDecoder.java:308)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:293)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:280)
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:299)
	at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:244)
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:161)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
-----------------

is it something wrong configured or a bug?
-- 
View this message in context: http://n2.nabble.com/Error-receiving-XML-in-HTTPResponse-body-tp2151841p2151841.html
Sent from the Netty User Group mailing list archive at Nabble.com.




More information about the netty-users mailing list