Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 29732 invoked from network); 13 May 2006 06:45:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 May 2006 06:45:51 -0000 Received: (qmail 60088 invoked by uid 500); 13 May 2006 06:45:47 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 60059 invoked by uid 500); 13 May 2006 06:45:46 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 60048 invoked by uid 99); 13 May 2006 06:45:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 23:45:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rtparies@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 23:45:45 -0700 Received: by py-out-1112.google.com with SMTP id e30so720561pya for ; Fri, 12 May 2006 23:45:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=IBUpF9mpW8FeJlFgeRXaBCjqewCIPJ+murgloy5Du5kKtNQFM1NgqEOqjfk7DeFC7jouAKqprgWDf4bcRPEsDfWxoVasnFo3DagiRWgYS8ysKJ3+mvbJDIF4OoCigWY6ycPQ7w7zuRKpmLrPo2LhycFAPUTfcwqFdI4u+UZghfI= Received: by 10.35.31.14 with SMTP id i14mr301912pyj; Fri, 12 May 2006 23:45:23 -0700 (PDT) Received: by 10.35.48.8 with HTTP; Fri, 12 May 2006 23:45:23 -0700 (PDT) Message-ID: Date: Sat, 13 May 2006 01:45:23 -0500 From: "Randy Paries" To: commons-user@jakarta.apache.org Subject: HttpClient getting a ValidatorException MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hello, if i connect to be site via http everything is cool, but if i connect using https is get the exception (see below) the code snippet i am using is: Thanks for any help =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D HttpClient client =3D new HttpClient(); if ( port =3D=3D 80){ client.getHostConfiguration().setHost(NodeName, 80, "http"); }else{ client.getHostConfiguration().setHost(NodeName, 443, "https"); } PostMethod authpost =3D new PostMethod(billMaxURL); authpost.setRequestHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"); NameValuePair PFORM =3D new NameValuePair("FORM", "updateacct"); NameValuePair PCIDX =3D new NameValuePair("bmui_cidx", "-1"); authpost.setRequestBody( new NameValuePair[] {PFORM, PCIDX }); client.executeMethod(authpost); =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1476= ) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHa= ndshaker.java:847) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHands= haker.java:106) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:4= 33) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java= :815) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSo= cketImpl.java:1025) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.jav= a:619) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:= 59) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org