Caused By: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

During runtime your application is unable to find the jar. Taken from this answer by Jared: It is important to keep two different exceptions straight in our head in this case: java.lang.ClassNotFoundException This an Exception, it indicates that the class was not found on the classpath. This indicates that we were trying to load the … Read more

How to call API (Oauth 1.0)?

PFB working code. Hope it will be useful. import java.io.InputStream; import java.io.StringWriter; import java.net.URI; import java.net.URISyntaxException; import oauth.signpost.OAuthConsumer; import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer; import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; import oauth.signpost.signature.AuthorizationHeaderSigningStrategy; import org.apache.commons.io.IOUtils; import org.apache.http.HttpHost; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpRequestBase; import org.apache.http.impl.client.DefaultHttpClient; import com.intuit.ipp.data.Account; import com.intuit.ipp.exception.FMSException; import com.intuit.ipp.net.MethodType; import com.intuit.ipp.services.DataService; public class POCWithoutDevkitTest { private DataService service; … Read more