[jetty-user] Jetty client EofException problem

Xuefu Zhang <[email protected]> Thu, 29 Nov 2012 16:22:09 -0800
Newsgroups gmane.comp.java.jetty.support
Message-ID <CAHRiOPdOJXQsmdBZ2Ww4oeW1CqSPrP9c9SUZ61w2C4=dFV09Qw@mail.gmail.com>
--e0cb4efe2c24ea551c04cfab6385
Content-Type: text/plain; charset=ISO-8859-1

 Hi,

We are using Jetty 6.1.26, and encounter a problem with Jetty client, where
an EOF exception is thrown when the client tries to post to a certain
server. To reproduce the problem, I replace the URL in
HttpExchangeTest.testPostWithContentExchange() with the server url we are
having trouble with:
https://post.prospectmtg.com/Post_LeadGenRetail.asp. The test case fails,
with the following in the stdout:

2012-11-28 16:25:10.800:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
2012-11-28 16:25:10.802:INFO::jetty-6.1.x
2012-11-28 16:25:10.823:INFO::Started [email protected]:45903
2012-11-28 16:25:11.880:WARN::SSL renegotiate denied:
java.nio.channels.SocketChannel[connected local=/192.168.2.100:48240 remote=
post.prospectmtg.com/38.106.58.53:443]
2012-11-28 16:25:11.882:WARN::EXCEPTION on
org.mortbay.jetty.client.ContentExchange@647057258=POST//
post.prospectmtg.com:443/Post_LeadGenRetail.asp#9
org.mortbay.jetty.EofException
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:319)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at
org.mortbay.jetty.client.HttpConnection.handle(HttpConnection.java:245)
    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
    at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
2012-11-28 16:25:12.485:INFO::Graceful shutdown
[email protected]:45903
2012-11-28 16:25:12.988:INFO::Stopped [email protected]:0

The test case itself without changing URL works fine. Also, please note
that if I change the connector type to SOCKET, the test case passes with
the modified URL.

Could any expert give us some remedy/advice on this please? We cannot use
SOCKET,
as it gives other problems. Any help is greatly appreciated.

Thanks a lot.

--Xuefu

--e0cb4efe2c24ea551c04cfab6385
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote"><div><div class=3D"h5">
Hi,<br>
<br>
We are using Jetty 6.1.26, and encounter a problem with Jetty client, where=
<br>
an EOF exception is thrown when the client tries to post to a certain<br>
server. To reproduce the problem, I replace the URL in<br>
HttpExchangeTest.testPostWithContentExchange() with the server url we are<b=
r>
having trouble with:<br>
<a href=3D"https://post.prospectmtg.com/Post_LeadGenRetail.asp" target=3D"_=
blank">https://post.prospectmtg.com/Post_LeadGenRetail.asp</a>. The test ca=
se fails,<br>
with the following in the stdout:<br>
<br>
2012-11-28 16:25:10.800:INFO::Logging to STDERR via<br>
org.mortbay.log.StdErrLog<br>
2012-11-28 16:25:10.802:INFO::jetty-6.1.x<br>
2012-11-28 16:25:10.823:INFO::Started <a href=3D"http://SelectChannelConnec=
[email protected]:45903" target=3D"_blank">[email protected]:45903</=
a><br>
2012-11-28 16:25:11.880:WARN::SSL renegotiate denied:<br>
java.nio.channels.SocketChannel[connected local=3D/<a href=3D"http://192.16=
8.2.100:48240" target=3D"_blank">192.168.2.100:48240</a> remote=3D<br>
<a href=3D"http://post.prospectmtg.com/38.106.58.53:443" target=3D"_blank">=
post.prospectmtg.com/38.106.58.53:443</a>]<br>
2012-11-28 16:25:11.882:WARN::EXCEPTION on<br>
org.mortbay.jetty.client.ContentExchange@647057258=3DPOST//<br>
<a href=3D"http://post.prospectmtg.com:443/Post_LeadGenRetail.asp#9" target=
=3D"_blank">post.prospectmtg.com:443/Post_LeadGenRetail.asp#9</a><br>
org.mortbay.jetty.EofException<br>
=A0 =A0 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:319)<br>
=A0 =A0 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)=
<br>
=A0 =A0 at<br>
org.mortbay.jetty.client.HttpConnection.handle(HttpConnection.java:245)<br>
=A0 =A0 at<br>
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410=
)<br>
=A0 =A0 at<br>
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:58=
2)<br>
2012-11-28 16:25:12.485:INFO::Graceful shutdown<br>
<a href=3D"http://[email protected]:45903" target=3D"_blank">S=
[email protected]:45903</a><br>
2012-11-28 16:25:12.988:INFO::Stopped <a href=3D"http://SelectChannelConnec=
[email protected]:0" target=3D"_blank">[email protected]:0</a><br>
<br>
The test case itself without changing URL works fine. Also, please note<br>
that if I change the connector type to SOCKET, the test case passes with<br=
>
the modified URL.<br>
<br>
Could any expert give us some remedy/advice on this please? We cannot use S=
OCKET,<br>
as it gives other problems. Any help is greatly appreciated.<br>
<br>
Thanks a lot.<br>
<br>
--Xuefu<br>
<br>
</div></div><br>
</div><br>

--e0cb4efe2c24ea551c04cfab6385--