Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 64074 invoked from network); 23 Jul 2004 12:04:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Jul 2004 12:04:43 -0000 Received: (qmail 1416 invoked by uid 500); 23 Jul 2004 12:04:41 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 1371 invoked by uid 500); 23 Jul 2004 12:04:40 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 1353 invoked by uid 99); 23 Jul 2004 12:04:39 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.142.32.135] (HELO mxout5.cac.washington.edu) (140.142.32.135) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 23 Jul 2004 05:04:37 -0700 Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout5.cac.washington.edu (8.13.0+UW04.06/8.13.0+UW04.06) with ESMTP id i6NC4TkO024194; Fri, 23 Jul 2004 05:04:29 -0700 Received: from [10.0.1.2] (pool-151-199-37-57.bos.east.verizon.net [151.199.37.57]) (authenticated bits=0) by smtp.washington.edu (8.13.0+UW04.06/8.13.0+UW04.06) with ESMTP id i6NC3sIw018555 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Fri, 23 Jul 2004 05:04:28 -0700 Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <7050AC85-DCA0-11D8-8B66-00306557E112@u.washington.edu> Content-Transfer-Encoding: quoted-printable Cc: Arturo Esquivel Sanchez From: Michael Becke Subject: Fwd: RV: Please Help ! Date: Fri, 23 Jul 2004 08:04:24 -0400 To: Commons HttpClient Project X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Please find the message below. Mike Begin forwarded message: > =A0-----Mensaje original----- > De: =A0=A0=A0 Esquivel Sanchez, Arturo=A0 > Enviado el:=A0=A0=A0=A0 Mi=E9rcoles, 21 de Julio de 2004 06:14 p.m. > Para:=A0=A0 'commons-httpclient-dev@jakarta.apache.org' > Asunto: Please Help ! > > > > > thanks Mike, > > I=B4M USIGN A PROXY, WEBLOGIC SERVER 6.1, RUNNING THE PROCESS FROM = UNIX =20 > AND THIS IS AN EXAMPLE OF MY CODE: > (NOTE: this code runs every 1 minute from a threed.sleep) > > > > url=3D"http://www.whatever.com"; > > HttpClient client =3D new HttpClient(); > client.getState().setProxyCredentials(null, null, new =20 > UsernamePasswordCredentials(System.getProperty("http.proxyUserName"), =20= > System.getProperty("http.proxyPassword"))); > > =20 > = client.getHostConfiguration().setProxy(System.getProperty("http.proxyHo=20= > st"),Integer.parseInt(System.getProperty("http.proxyPort","80"))); > > GetMethod method1 =3D new GetMethod(url); > try{ > =A0=A0=A0=A0=A0=A0=A0 statusCode =3D client.executeMethod(method1); > =A0=A0=A0=A0=A0=A0=A0 System.out.println("Return Code=3D> " + = statusCode); > }catch (HttpRecoverableException e) { > =A0=A0=A0=A0=A0=A0=A0 System.out.println("An recoverable exception =20 > occurred,retrying. " + e.getMessage()); > =A0=A0=A0=A0=A0=A0=A0=A0 e.printStackTrace(); > }finally{ > =A0=A0=A0=A0=A0=A0=A0 System.out.println("Releasing Connection method = 1....." ); > =A0=A0=A0=A0=A0=A0=A0 method1.releaseConnection(); > =A0} > > > > THIS IS WHAT THE LOGGING IS DISPLAYING: > (NOTE: i don=B4t always get this error, most of the time the code = works =20 > fine, but when i get the error and since is a runnable process, i need = =20 > to stop the process by killing its id process, stop the weblogic =20 > server, wait like 30 minutes, and then try again) > > > > > > 004/07/21 10:10:51:415 CDT [DEBUG] HttpClient - -Java version: = 1.3.1.10 > 2004/07/21 10:10:51:416 CDT [DEBUG] HttpClient - -Java vendor: =20 > Hewlett-Packard C > o. > 2004/07/21 10:10:51:417 CDT [DEBUG] HttpClient - -Java class path: =20 > /opt/bea/webl > ogic/v61:/opt/bea/weblogic/v61/lib/weblogic_sp.jar:/opt/bea/weblogic/=20= > v61/lib/web > logic.jar:/opt/bea:/opt/bea/weblogic/v61/lib/drivers/jconnect5_5/=20 > jconn2.jar:/opt > /bea/weblogic/v61/lib/db2drivers/db2java.zip:/opt/bea/weblogic/v61/=20 > lib/db2driver > s/runtime.zip:/opt/bea/weblogic/v61/config/wldominfra01/fml/classes:/=20= > opt/bea/web > logic/v61/config/wldominfra01/utilerias/C617_infra.jar:/opt/bea/=20 > weblogic/v61/con > fig/wldominfra01/utilerias/jregex1.2_01.jar:/opt/bea/weblogic/v61/=20 > config/wldomin > fra01/utilerias/CAME.jar:/opt/bea/weblogic/v61/lib/encripcion/=20 > US_export_policy.j > ar:/opt/bea/weblogic/v61/lib/encripcion/local_policy.jar:/opt/bea/=20 > weblogic/v61/l > ib/encripcion/jce1_2_2.jar:/opt/bea/weblogic/v61/lib/encripcion/=20 > sunjce_provider. > jar:/opt/bea/weblogic/v61/lib/tse/activation.jar:/opt/bea/weblogic/=20 > v61/lib/tse/c > astor-0.9.3.9-xml.jar:/opt/bea/weblogic/v61/lib/tse/commons-=20 > logging.jar:/opt/bea > /weblogic/v61/lib/tse/dom.jar:/opt/bea/weblogic/v61/lib/tse/dom4j.jar:=20= > /opt/bea/w > eblogic/v61/lib/tse/fscontext.jar:/opt/bea/weblogic/v61/lib/tse/=20 > jaas.jar:/opt/be > a/weblogic/v61/lib/tse/jaxm-api.jar:/opt/bea/weblogic/v61/lib/tse/=20 > jaxm-runtime.j > ar:/opt/bea/weblogic/v61/lib/tse/jaxp-api.jar:/opt/bea/weblogic/v61/=20= > lib/tse/jaxr > -api.jar:/opt/bea/weblogic/v61/lib/tse/jaxr-apidoc.jar:/opt/bea/=20 > weblogic/v61/lib > /tse/jaxr-ri.jar:/opt/bea/weblogic/v61/lib/tse/jaxrpc-api.jar:/opt/=20 > bea/weblogic/ > v61/lib/tse/jaxrpc-ri.jar:/opt/bea/weblogic/v61/lib/tse/jcert.jar:/=20 > opt/bea/weblo > gic/v61/lib/tse/jnet.jar:/opt/bea/weblogic/v61/lib/tse/jsse.jar:/opt/=20= > bea/weblogi > c/v61/lib/tse/mail.jar:/opt/bea/weblogic/v61/lib/tse/providerutil.jar:=20= > /opt/bea/w > eblogic/v61/lib/tse/regexp.jar:/opt/bea/weblogic/v61/lib/tse/saaj-=20 > api.jar:/opt/b > ea/weblogic/v61/lib/tse/saaj-ri.jar:/opt/bea/weblogic/v61/lib/tse/=20 > sax.jar:/opt/b > ea/weblogic/v61/lib/tse/soap.jar:/opt/bea/weblogic/v61/lib/tse/=20 > xalan.jar:/opt/be > a/weblogic/v61/lib/tse/xercesImpl.jar:/opt/bea/weblogic/v61/lib/tse/=20= > xsltc.jar:/o > pt/bea/weblogic/v61/lib/tse/TSE.jar:/opt/bea/weblogic/v61/config/=20 > wldominfra01/se > rverclasses/CORREODEV.jar:/opt/bea/weblogic/v61/config/wldominfra01/=20= > serverclasse > s/C995_055_srv.jar > 2004/07/21 10:10:51:428 CDT [DEBUG] HttpClient - -Operating system =20 > name: HP-UX > 2004/07/21 10:10:51:430 CDT [DEBUG] HttpClient - -Operating system =20 > architecture: > =A0PA_RISC2.0 > 2004/07/21 10:10:51:431 CDT [DEBUG] HttpClient - -Operating system =20 > version: B.11 > .00 > 2004/07/21 10:10:51:432 CDT [DEBUG] HttpClient - -SUN 1.2: SUN (DSA =20= > key/paramete > r generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 =20 > certificates; > =A0JKS keystore) > 2004/07/21 10:10:51:432 CDT [DEBUG] HttpClient - -SunRsaSign 1.0: =20 > SUN's provider > =A0for RSA signatures > 2004/07/21 10:10:51:433 CDT [DEBUG] HttpClient - -SunJCE 1.22: SunJCE =20= > Provider ( > implements DES, Triple DES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, =20= > HMAC-SHA1) > 2004/07/21 10:10:51:433 CDT [DEBUG] HttpClient - -SunJSSE 1.0302: Sun =20= > JSSE provi > der(implements RSA Signatures, PKCS12, SunX509 key/trust factories, =20= > SSLv3, TLSv1 > ) > 2004/07/21 10:10:51:711 CDT [DEBUG] HttpConnection - =20 > -HttpConnection.setSoTimeou > t(0) > 2004/07/21 10:10:51:751 CDT [DEBUG] HttpMethodBase - -Execute loop try = =20 > 1 > 2004/07/21 10:10:51:768 CDT [DEBUG] HttpMethodBase - -Adding Host =20 > request header > 2004/07/21 10:10:52:242 CDT [DEBUG] HttpMethodBase - -Authorization =20= > required > 2004/07/21 10:10:52:271 CDT [DEBUG] HttpAuthenticator - =20 > -Authenticating with the > =A0'Enter Username and Password ' authentication realm at 10.97.106.2 > 2004/07/21 10:10:52:278 CDT [DEBUG] HttpMethodBase - =20 > -HttpMethodBase.execute(): > Server demanded authentication credentials, will try again. > 2004/07/21 10:10:52:282 CDT [DEBUG] HttpMethodBase - -Resorting to =20 > protocol vers > ion default close connection policy > 2004/07/21 10:10:52:282 CDT [DEBUG] HttpMethodBase - -Should NOT close = =20 > connectio > n, using HTTP/1.1. > 2004/07/21 10:10:52:282 CDT [DEBUG] HttpMethodBase - -Execute loop try = =20 > 2 > 2004/07/21 10:10:52:283 CDT [DEBUG] HttpMethodBase - -Request to add =20= > Host header > =A0ignored: header already added > 2004/07/21 10:10:52:285 CDT [DEBUG] HttpMethodBase - -Closing the =20 > connection. > 2004/07/21 10:10:52:286 CDT [INFO] HttpMethodBase - -Recoverable =20 > exception caugh > t when processing request > 2004/07/21 10:10:52:292 CDT [WARN] HttpMethodBase - -Recoverable =20 > exception caugh > t but MethodRetryHandler.retryMethod() returned false, rethrowing =20 > exception > An recoverable exception occurred,retrying.=A0 =20 > org.apache.commons.httpclient.HttpR > ecoverableException: Error in parsing the status=A0 line from the =20 > response: unable > =A0to find line starting with "HTTP" > org.apache.commons.httpclient.HttpRecoverableException: =20 > org.apache.commons.httpc > lient.HttpRecoverableException: Error in parsing the status=A0 line = from =20 > the respo > nse: unable to find line starting with "HTTP" > =A0=A0=A0=A0=A0=A0=A0 at =20 > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB > ase.java:1965) > =A0=A0=A0=A0=A0=A0=A0 at =20 > org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMetho > dBase.java:2659) > =A0=A0=A0=A0=A0=A0=A0 at =20 > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j > ava:1093) > =A0=A0=A0=A0=A0=A0=A0 at =20 > org.apache.commons.httpclient.ConnectMethod.execute(ConnectMethod.jav > a:201) > =A0=A0=A0=A0=A0=A0=A0 at =20 > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav > a:675) > =A0=A0=A0=A0=A0=A0=A0 at =20 > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav > a:529) > =A0=A0=A0=A0=A0=A0=A0 at =20 > Banamex.C734_000.AeromexicoValida.Proc_Saldo(AeromexicoValida.java:35 > 7) > =A0=A0=A0=A0=A0=A0=A0 at =20 > Banamex.C734_000.AeromexicoValida.ValidaServicio(AeromexicoValida.jav > a:134) > =A0=A0=A0=A0=A0=A0=A0 at =20 > Banamex.C734_000.AeromexicoValida.run(AeromexicoValida.java:68) > =A0=A0=A0=A0=A0=A0=A0 at java.lang.Thread.run(Unknown Source) > Releasing Connection method 1..... > > > > > > hope this help to understand the problem > > thanks again > > Best Regards > > Arturo > > > > > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > From: Michael Becke > Subject: Please Help ! > Date: Mon, 19 Jul 2004 21:45:25 -0400 > > Hello Arturo, > > This problem could be caused by a number of things.=A0 Please post a = wire > log and > some sample code and we should be able to get to the bottom of the > problem. > > Mike > > On Jul 19, 2004, at 2:31 PM, Esquivel Sanchez, Arturo wrote: > > > > > Hi, > > > > I'm getting the error: Error in parsing the status line from the > > response: > > unable to find line starting with "HTTP". > > and i=B4m pretty sure that its related to the consideration = documented =20 > by > > Daniel C. Amadei : > > > > JSSE prior to Java 1.4 incorrectly reports socket timeout. > > Prior to Java 1.4, in Sun's JSSE implementation, a read operation =20= > that > > has > > timed out incorrect reports end of stream condition instead of =20 > throwing > > java.io.InterruptedIOException as expected. HttpClient responds to =20= > this > > exception by assuming that the connection was dropped and throws a > > recoverable HTTP exception: Error in parsing the status line from = the > > response: unable to find line starting with "HTTP". It should = instead > > report > > "java.io.InterruptedIOException: Read timed out". If you see the > > "unable to > > find line..." message when working with an older version of JDK and > > JSSE, it > > can be caused by the timeout waiting for data and not by a problem > > with the > > connection. > > Work-around: One possible solution is to increase the timeout value =20= > as > > the > > server is taking too long to start sending the response. =20 > Alternatively > > you > > may choose to upgrade to Java 1.4 or above which does not exhibit =20= > this > > problem > > > > Unfortunely in my company=B4s tech unit is not going to be easy = neither > > quick > > to upgrade to the Java version 1.4. > > And I already tried to increase the client setTimeOut method and =20 > didn=B4t > > work.... > > > > So is there a way you can help to modified the necesary components = in > > order > > to fix the problem from the HttpClient side. > > Or give me some hints on how to fix it and generate a new > > commons-httpclient-2.0.jar that includes the fix. > > Or if there is already a version of the HttpClient v2.0 that fix = this > > problem > > > > The version that i=B4m using is the 2.0. > > > > I really really appreciate your help > > > > Best Regards > > Arturo > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: =20 > commons-httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: =20 > commons-httpclient-dev-help@jakarta.apache.org > > > =20= --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org