hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuzwa, Erik" <Erik.Yu...@encana.com>
Subject GetMethod instantiation throwing exception?
Date Mon, 04 Oct 2004 15:39:35 GMT
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 =
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
             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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message