There may be a runtime exception... Try catching Throwable instead of catching Exception. I hope, this might give more info about the failure.
-----Original Message----- From: talldean [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2008 8:23 AM To: [email protected] Subject: Problems calling new PostMethod(url) I have the following block of code, using a freshly downloaded HttpClient-3.1, and cannot figure out what I've done wrong. try { String urlString = "http://www.google.com"; logger.trace("1"); PostMethod method = new PostMethod(urlString); logger.trace("2"); } catch (Exception e) { logger.trace("3"); } The logs get the message "1", and the program terminates before it seems to get to the trace 2 line, without throwing an exception of any sort. Any ideas? Same thing seems to happen with both PostMethod and GetMethod, and I'm out of ideas. -- View this message in context: http://www.nabble.com/Problems-calling-new-PostMethod%28url%29-tp1909107 9p19091079.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
