Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 11777 invoked from network); 4 Oct 2004 15:39:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Oct 2004 15:39:44 -0000 Received: (qmail 77262 invoked by uid 500); 4 Oct 2004 15:39:43 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 77219 invoked by uid 500); 4 Oct 2004 15:39:42 -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 77205 invoked by uid 99); 4 Oct 2004 15:39:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,MIME_HTML_NO_CHARSET X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [142.56.1.104] (HELO ECMIME1.aec.ca) (142.56.1.104) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 04 Oct 2004 08:39:41 -0700 Received: from martin.aec.ca (unverified) by ECMIME1.aec.ca (Content Technologies SMTPRS 4.3.14) with ESMTP id for ; Mon, 4 Oct 2004 09:41:03 -0600 Received: by martin.aec.ca with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Oct 2004 09:41:03 -0600 Message-ID: From: "Yuzwa, Erik" To: "'commons-httpclient-dev@jakarta.apache.org'" Subject: GetMethod instantiation throwing exception? Date: Mon, 4 Oct 2004 09:39:35 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4AA28.59E77010" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4AA28.59E77010 Content-Type: text/plain Hi all, I'm trying to get HttpClient working alongside NTLM authentication to automagically grab some XML data for users. The docs are fairly clear on using HttpClient with NTLM, however my GetMethod instantiation regularly blows up throwing a "java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException" //begin-code snippet //according to HttpClient docs, run this code before using NTLM... String secProviderName = "com.sun.crypto.provider.SunJCE"; java.security.Provider secProvider = (java.security.Provider)Class.forName(secProviderName).newInstance(); Security.addProvider(secProvider); HttpClient client = new HttpClient(); //grabbing server names from a file to do the requestin' String sUrl = "http://" + sServer + "/onenet/xtier-login"; //DOES build valid URLs client.getState().setCredentials( AuthScope.ANY, new NTCredentials(sUser, sPass, sServer, "stovokor.com") ); GetMethod http_get = new GetMethod( sUrl ); //wammo! Here's the offender //end-code snippet There's no documentation with the GetMethod object concerning any exceptions thrown during instantiation, so I'm stuck trying to figure out what the hey is happening. Thanks! ------_=_NextPart_001_01C4AA28.59E77010--