0

I am trying to consume a RESTful web service using Java, and have been following the tutorial on 4.8 Preemptive Authentication.

However, I keep getting an InvocationTargetException error, and started moving bits and pieces of the code out to track down the source.

I have my code down to essentially one functional line:

import java.io.IOException;
import org.apache.http.impl.client.DefaultHttpClient;

public class TestRestClient() {

  public void doStuff() {
    DefaultHttpClient client = new DefaultHttpClient();
  }

}

Any ideas?

Edit: Result of getAllStackTrace() in a finally block

Tyler
  • 304
  • 1
  • 3
  • 12

0 Answers0