Re: [jetty-user] Jetty client EofException problem
Jesse McConnell <[email protected]> Thu, 29 Nov 2012 18:42:04 -0600
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAPHPUsL1qij+PTixTBDEhBt-eCw7Bb2wZQzM+SUGRPZNKqSX7w@mail.gmail.com> |
--20cf3071d0b22d0f1904cfabab81 Content-Type: text/plain; charset=UTF-8 general recommendation is to update to jetty 7 or jetty 8, or even the jetty 9 milestone releases (preferred for you particular case I suspect) which have the new jetty-client api which is much improved and lambda ready for java8 http://webtide.intalio.com/2012/11/the-new-jetty-9-http-client/ if you absolutely _need_ support on jetty6 then you can always contact webtide.com jesse -- jesse mcconnell [email protected] On Thu, Nov 29, 2012 at 6:22 PM, Xuefu Zhang <[email protected]> wrote: > 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:48240remote= > 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 > > > > --20cf3071d0b22d0f1904cfabab81 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable general recommendation is to update to jetty 7 or jetty 8, or even the jett= y 9 milestone releases (preferred for you particular case I suspect) which = have the new jetty-client api which is much improved and lambda ready for j= ava8<div> <br></div><div><a href=3D"http://webtide.intalio.com/2012/11/the-new-jetty-= 9-http-client/">http://webtide.intalio.com/2012/11/the-new-jetty-9-http-cli= ent/</a><br></div><div><br></div><div>if you absolutely _need_ support on j= etty6 then you can always contact <a href=3D"http://webtide.com">webtide.co= m</a></div> <div><br></div><div>jesse</div><div class=3D"gmail_extra"><br clear=3D"all"= >--<br>jesse mcconnell<br><a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a><br> <br><br><div class=3D"gmail_quote">On Thu, Nov 29, 2012 at 6:22 PM, Xuefu Z= hang <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>></span> wrote:<br><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"> <div class=3D"gmail_quote"><div><div> 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> =C2=A0 =C2=A0 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:319= )<br> =C2=A0 =C2=A0 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.jav= a:212)<br> =C2=A0 =C2=A0 at<br> org.mortbay.jetty.client.HttpConnection.handle(HttpConnection.java:245)<br> =C2=A0 =C2=A0 at<br> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410= )<br> =C2=A0 =C2=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.<span class=3D"HOEnZb"><font color=3D"#888888"><br> <br> --Xuefu<br> <br> </font></span></div></div><br> </div><br> </blockquote></div><br></div> --20cf3071d0b22d0f1904cfabab81--