Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 25510 invoked from network); 7 Nov 2009 06:52:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Nov 2009 06:52:40 -0000 Received: (qmail 20266 invoked by uid 500); 7 Nov 2009 06:52:40 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 20193 invoked by uid 500); 7 Nov 2009 06:52:39 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 20183 invoked by uid 99); 7 Nov 2009 06:52:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Nov 2009 06:52:39 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of menarialaxmilal@gmail.com designates 209.85.222.199 as permitted sender) Received: from [209.85.222.199] (HELO mail-pz0-f199.google.com) (209.85.222.199) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Nov 2009 06:52:35 +0000 Received: by pzk37 with SMTP id 37so1148839pzk.10 for ; Fri, 06 Nov 2009 22:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=kgr/ZV2OEYLQrB5MB32qfTN5a6Awk2gBQUoFBDlY5lc=; b=TUS/oLJBlXOT+G5OS66Yd3yAypRdIEmdJ7O+9v93DUQmdSWUknVkiDWitGu7QjDR8u MlZli4vtORQ+UASC30EthTJ79Da1zQOEvazvO8cv9h9CQihSvrBJ8NWkR4TP+ZkgSJgq STKUEZQl+12ZdnJhLTDlTmlcYG9lD8XDS7ggs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hDQzz+ehN5qVfTe6w5oEakNxoYPodqdDw83yhONj0e6qdclQFqoMmlpgOkU00rJrM6 OJP9Mm/KWEn1jDulJ27hjt4bVStqO7wR01xkoLcWOHL5sJ7VhVSGAUnDfdhKlPT21S4f 9/Q9VyVU2s1Wku8eTFNcSDJ9RYn1OQY8eJ7zU= MIME-Version: 1.0 Received: by 10.115.84.9 with SMTP id m9mr7982168wal.163.1257576735565; Fri, 06 Nov 2009 22:52:15 -0800 (PST) In-Reply-To: <25aac9fc0911040243i1730a449p9b69eb20f4c8e7a5@mail.gmail.com> References: <26160038.post@talk.nabble.com> <25aac9fc0911030517s654290a8w599aeb2bd3899710@mail.gmail.com> <26190841.post@talk.nabble.com> <25aac9fc0911040243i1730a449p9b69eb20f4c8e7a5@mail.gmail.com> Date: Sat, 7 Nov 2009 12:22:15 +0530 Message-ID: <4e2bf4c80911062252q4a3d4e3ar4b1eb311ed7e3d2c@mail.gmail.com> Subject: Re: An Issue while send a request From: Laxmilal Menaria To: HttpClient User Discussion Content-Type: text/plain; charset=ISO-8859-1 Issue has been resolved now, my jre folder have missing sunmscapi.dll, so I have re download jre from sun site.. On Wed, Nov 4, 2009 at 4:13 PM, sebb wrote: > On 04/11/2009, Jawahar Nayak wrote: >> >> I am not getting any statuscode. I am getting the following error... > > You wrote: > > "But I did not get any response. And no any exception is thrown." > > which is why I responded as I did. > >> Exception in thread "main" java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at com.simontuffs.onejar.Boot.run(Boot.java:306) >> at com.simontuffs.onejar.Boot.main(Boot.java:159) >> Caused by: java.lang.UnsatisfiedLinkError: no sunmscapi in java.library.path > > This is nothing to do with HttpClient. > > It is either a problem in the Java installation, or a problem in the > "com.simontuffs.onejar" software. > >> at java.lang.ClassLoader.loadLibrary(Unknown Source) >> at java.lang.Runtime.loadLibrary0(Unknown Source) >> at java.lang.System.loadLibrary(Unknown Source) >> at sun.security.mscapi.SunMSCAPI$1.run(SunMSCAPI.java:34) >> at java.security.AccessController.doPrivileged(Native Method) >> at sun.security.mscapi.SunMSCAPI.(SunMSCAPI.java:32) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> >> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown >> Source) >> >> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown >> Sou >> rce) >> at java.lang.reflect.Constructor.newInstance(Unknown Source) >> at java.lang.Class.newInstance0(Unknown Source) >> at java.lang.Class.newInstance(Unknown Source) >> at sun.security.jca.ProviderConfig$3.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at sun.security.jca.ProviderConfig.doLoadProvider(Unknown Source) >> at sun.security.jca.ProviderConfig.getProvider(Unknown Source) >> at sun.security.jca.ProviderList.getProvider(Unknown Source) >> at sun.security.jca.ProviderList$ServiceList.tryGet(Unknown Source) >> at sun.security.jca.ProviderList$ServiceList.access$200(Unknown >> Source) >> at sun.security.jca.ProviderList$ServiceList$1.hasNext(Unknown >> Source) >> at java.security.Signature.getInstance(Unknown Source) >> at com.sun.net.ssl.internal.ssl.JsseJce.getSignature(Unknown Source) >> at com.sun.net.ssl.internal.ssl.JsseJce.isEcAvailable(Unknown >> Source) >> at >> com.sun.net.ssl.internal.ssl.CipherSuite$KeyExchange.isAvailable(Unkn >> own Source) >> at com.sun.net.ssl.internal.ssl.CipherSuite.isAvailable(Unknown >> Source) >> at >> com.sun.net.ssl.internal.ssl.CipherSuiteList.buildAvailableCache(Unkn >> own Source) >> at com.sun.net.ssl.internal.ssl.CipherSuiteList.getDefault(Unknown >> Sourc >> e) >> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(Unknown Source) >> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.(Unknown Source) >> at >> com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknow >> n Source) >> at >> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat >> eSocket(SSLProtocolSocketFactory.java:82) >> at >> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat >> eSocket(SSLProtocolSocketFactory.java:127) >> at >> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java >> :707) >> at >> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt >> pMethodDirector.java:387) >> at >> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe >> thodDirector.java:171) >> at >> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav >> a:397) >> at >> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav >> a:346) >> >> >> >> sebb-2-2 wrote: >> > >> > On 03/11/2009, Jawahar Nayak wrote: >> >> >> >> Hi, >> >> >> >> I am using the httpclient 3.1. I sent a http request, in response it >> >> should return with a status code and with some response. But I did not >> >> get >> >> any response. And no any exception is thrown. >> >> >> >> >> >> boolean flag=false; >> >> try{ >> >> statusCode = httpClient.executeMethod(secureHostConfig, >> >> method); >> >> System.out.println("Status code: " +statusCode); >> >> if(statusCode==200){ flag=true; >> >> } >> >> >> >> }catch(Exception e){ >> >> System.out.println("Error while sending http request"); >> >> }finally{ >> >> if(!flag){ >> >> System.out.println("Operation Failed"); >> >> } >> >> } >> >> >> >> I am always getting "Operation Failed" but I don't see "Error while >> >> sending >> >> http request". >> >> What could be the cause for this problem and how I can resolve it ? >> > >> > I think you have misunderstood how HTTP requests work. Exceptions are >> > normally only thrown if there is a low-level communication error, >> > otherwise the Status Code is set, e.g. to "404" if the page does not >> > exist. >> > >> > What is the value of the status code? >> > >> >> Thanks >> >> >> >> >> >> -- >> >> View this message in context: >> >> http://old.nabble.com/An-Issue-while-send-a-request-tp26160038p26160038.html >> >> Sent from the HttpClient-User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org >> >> For additional commands, e-mail: httpclient-users-help@hc.apache.org >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org >> > For additional commands, e-mail: httpclient-users-help@hc.apache.org >> > >> > >> > >> >> >> -- >> View this message in context: http://old.nabble.com/An-Issue-while-sending-http-request-tp26160038p26190841.html >> >> Sent from the HttpClient-User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org >> For additional commands, e-mail: httpclient-users-help@hc.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org