这是stacktrace:
06-16 14:44:20.462 5526 5535 W System.err: **The screen name / password combination seems to be invalid.** Relevant discussions can be on the Internet at:
06-16 14:44:20.462 5526 5535 W System.err: http://www.google.co.jp/search?q=96430884 or
06-16 14:44:20.462 5526 5535 W System.err: http://www.google.co.jp/search?q=000024ea
06-16 14:44:20.462 5526 5535 W System.err: TwitterException{exceptionCode=[96430884-000024ea 9aae86e9-10c613ce 9aae86e9-10c613a4], statusCode=-1, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.3}
06-16 14:44:20.462 5526 5535 W System.err: at twitter4j.auth.OAuthAuthorization.getOAuthAccessToken(OAuthAuthorization.java:181)
06-16 14:44:20.462 5526 5535 W System.err: at twitter4j.TwitterBaseImpl.getOAuthAccessToken(TwitterBaseImpl.java:299)
06-16 14:44:20.462 5526 5535 W System.err: at com.outware.wineregions.activities.NameAndPasswordActivity$2.doInBackground(NameAndPasswordActivity.java:107)
06-16 14:44:20.462 5526 5535 W System.err: at com.outware.wineregions.activities.NameAndPasswordActivity$2.doInBackground(NameAndPasswordActivity.java:1)
06-16 14:44:20.462 5526 5535 W System.err: at android.os.AsyncTask$2.call(AsyncTask.java:185)
06-16 14:44:20.462 5526 5535 W System.err: at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
06-16 14:44:20.462 5526 5535 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:137)
06-16 14:44:20.462 5526 5535 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
06-16 14:44:20.462 5526 5535 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
06-16 14:44:20.462 5526 5535 W System.err: at java.lang.Thread.run(Thread.java:1096)
06-16 14:44:20.462 5526 5535 W System.err: **Caused by: Host is unresolved: api.twitter.com:443** Relevant discussions can be on the Internet at:
06-16 14:44:20.462 5526 5535 W System.err: http://www.google.co.jp/search?q=9aae86e9 or
06-16 14:44:20.462 5526 5535 W System.err: http://www.google.co.jp/search?q=10c613ce
06-16 14:44:20.462 5526 5535 W System.err: TwitterException{exceptionCode=[9aae86e9-10c613ce 9aae86e9-10c613a4], statusCode=-1, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.3}
06-16 14:44:20.470 5526 5535 W System.err: at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:204)
06-16 14:44:20.470 5526 5535 W System.err: at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:65)
06-16 14:44:20.470 5526 5535 W System.err: at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:102)
06-16 14:44:20.470 5526 5535 W System.err: at twitter4j.auth.OAuthAuthorization.getOAuthAccessToken(OAuthAuthorization.java:174)
06-16 14:44:20.470 5526 5535 W System.err: ... 9 more
06-16 14:44:20.470 5526 5535 W System.err: Caused by: java.net.UnknownHostException: Host is unresolved: api.twitter.com:443
06-16 14:44:20.470 5526 5535 W System.err: at java.net.Socket.connect(Socket.java:1037)
06-16 14:44:20.470 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:62)
06-16 14:44:20.470 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionManager$ConnectionPool.getHttpConnection(HttpConnectionManager.java:145)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionManager.getConnection(HttpConnectionManager.java:67)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:821)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:807)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:395)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendRequest(HttpURLConnection.java:1224)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnection.java:1558)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java:1551)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1145)
06-16 14:44:20.478 5526 5535 W System.err: at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.getOutputStream(HttpsURLConnection.java:262)
06-16 14:44:20.478 5526 5535 W System.err: at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:162)
它可以在一台设备上运行,但在另一台设备上,它会产生上述错误,是的,此应用程序已被批准在iPhone上使用xauth,我确信密钥/密钥对没有问题,因为它适用于其他设备。
任何人都可以给我任何建议吗?谢谢!
答案 0 :(得分:0)
我们遇到了类似的问题,但原因可能与您的不同。
在我们的案例中,我们设置了2个Twitter应用程序,一个用于生产,另一个用于测试。生产已启用xAuth而测试则未启用。安装了生产应用程序的设备可以毫无问题地登录,因为显然他们正在使用支持xAuth的Twitter应用程序。安装了测试应用程序的设备获得与您的相同的堆栈跟踪。
答案 1 :(得分:0)
如果Twitter客户端上的时钟(大量)不同步,您也会收到此错误。 我刚碰到这个,我的手机关闭了几个星期,内部时钟设置为1980年1月1日。设置时钟正确解决了问题。