Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 20457 invoked from network); 3 Jun 2004 16:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jun 2004 16:39:03 -0000 Received: (qmail 38662 invoked by uid 500); 3 Jun 2004 16:39:13 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 38636 invoked by uid 500); 3 Jun 2004 16:39:13 -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 38623 invoked by uid 99); 3 Jun 2004 16:39:13 -0000 Received: from [192.223.178.26] (HELO maillnx-us311.fmr.com) (192.223.178.26) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 03 Jun 2004 09:39:13 -0700 Received: from virmmk111nts.fmr.com (virmmk111nts.fmr.com [172.25.106.96]) by maillnx-us311.fmr.com (Switch-3.1.2/Switch-3.1.0) with SMTP id i53GcqXw013343 for ; Thu, 3 Jun 2004 12:38:52 -0400 Received: from MSGBOSCLF2WIN.fmr.com ([10.46.17.175]) by MSGMROIM01WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.6713); Thu, 3 Jun 2004 12:38:52 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message Subject: Suppressing stack dump in executeMethod() MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a67c9646-1bc4-4f4e-abb5-244ee65f3354" Date: Thu, 3 Jun 2004 12:38:51 -0400 Message-ID: <6B47B27510E25545AAACFEF4088715020B3F24@MSGBOSCLF2WIN.DMN1.FMR.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Suppressing stack dump in executeMethod() Thread-Index: AcRJiUCCep6pChJ1QcakABW+HtebxQ== From: "Foran, Christopher" To: "Commons HttpClient Project" X-OriginalArrivalTime: 03 Jun 2004 16:38:52.0078 (UTC) FILETIME=[40DCDCE0:01C44989] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPartTM-000-a67c9646-1bc4-4f4e-abb5-244ee65f3354 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C44989.4087342A" ------_=_NextPart_001_01C44989.4087342A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I most likely should know how to find the answer to this question, but... I am doing SSL and when I use an incorrect password for the keystore it looks like somewhere in HttpClient.executeMethod() the stack dump is being printed.. In my application I am catching everything I should be, and I don't want to user to see this information. Is there a way for me to tell HttpClient to suppress this output. I want to handle this exception in my application. Thanks. java.lang.RuntimeException: KeyManagerFactoryImpl: Keystore was tampered with, or password was incorrect at com.ibm.jsse.w.a(Unknown Source) at com.ibm.jsse.w.engineInit(Unknown Source) at javax.net.ssl.KeyManagerFactory.init(Unknown Source) at javax.net.ssl.SSLSocketFactory.getDefault(Unknown Source) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSo cket(SSLProtocolSocketFactory.java:112) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:66 3) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon nectionAdapter.open(MultiThreadedHttpConnectionManager.java:959) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:6 61) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:5 29) at xxx.xxxxxxxx.xxxxxx.xxxxxx.run(Unknown Source) christopher.foran@fmr.com | 617.563.4785 ------_=_NextPart_001_01C44989.4087342A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Suppressing stack dump in executeMethod()

I most likely should know how to find = the answer to this question, but…

I am doing SSL and when I use an = incorrect password for the keystore it looks like somewhere in = HttpClient.executeMethod() the stack dump is being printed..  In my = application I am catching everything I should be, and I don't want to = user to see this information.  Is there a way for me to tell = HttpClient to suppress this output. I want to handle this exception in = my application. Thanks.

java.lang.RuntimeException: = KeyManagerFactoryImpl: Keystore was tampered with, or password was = incorrect
        at = com.ibm.jsse.w.a(Unknown Source)
        at = com.ibm.jsse.w.engineInit(Unknown Source)
        at = javax.net.ssl.KeyManagerFactory.init(Unknown Source)
        at = javax.net.ssl.SSLSocketFactory.getDefault(Unknown Source)
        at = org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSoc= ket(SSLProtocolSocketFactory.java:112)

        at = org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:663= )
        at = org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConn= ectionAdapter.open(MultiThreadedHttpConnectionManager.java:959)

        at = org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:66= 1)
        at = org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:52= 9)
        at = xxx.xxxxxxxx.xxxxxx.xxxxxx.run(Unknown Source)

christopher.foran@fmr.com | 617.563.4785


------_=_NextPart_001_01C44989.4087342A-- ------=_NextPartTM-000-a67c9646-1bc4-4f4e-abb5-244ee65f3354 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org ------=_NextPartTM-000-a67c9646-1bc4-4f4e-abb5-244ee65f3354--