Apache HttpClient
조회 수: 12 (최근 30일)
이전 댓글 표시
I am using java code, including the Apache HttpClient .jar, to use an OAuth website API. I am using java clases created by the site to gain access and retrieve information. When I run my java code outside of Matlab it executes properly, getting the required OAuth token and token secret and then gathers information.
When I execute the same java code through matlab I end up recieveing the following error:
java.lang.NullPointerException
org.apache.commons.httpclient.HttpMethodBase.getStatusCode(HttpMethodBase.java:570)
I did some research and it seem that the NPE is thrown when the .getStatusCode is called before .execute is finished running.
I am assuming that this is occurring because of a lack of connection to the internet... maybe???
Any help would be appreciated. Thanks!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Java Client Programming에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!