Twitter4J 中的类格式错误

发布于 2024-10-22 23:46:17 字数 1207 浏览 4 评论 0原文

我有一个程序,可以在有人连接到服务器时更新 Twitter 帐户。从周三到今天早上,该程序运行良好。现在我遇到了这个异常:

Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag 133 in class file java/util/Arrays$ArrayList
    at java.util.Arrays.asList(Arrays.java:3355)
    at twitter4j.auth.OAuthAuthorization.toParamList(OAuthAuthorization.java:371)
    at twitter4j.auth.OAuthAuthorization.generateAuthorizationHeader(OAuthAuthorization.java:206)
    at twitter4j.auth.OAuthAuthorization.generateAuthorizationHeader(OAuthAuthorization.java:260)
    at twitter4j.auth.OAuthAuthorization.getAuthorizationHeader(OAuthAuthorization.java:75)
    at twitter4j.internal.http.HttpClientImpl.setHeaders(HttpClientImpl.java:246)
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:116)
    at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:65)
    at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:102)
    at twitter4j.TwitterImpl.post(TwitterImpl.java:1764)
    at twitter4j.TwitterImpl.updateStatus(TwitterImpl.java:447)

该程序使用 twitter4j 在 twitter 上发布。我得到了今天发布的最新的 twitter4j jar,并且我已经更新到最新的 jvm,但我仍然遇到这个问题。

有人知道出了什么问题吗?

谢谢

I have a program that updates a twitter account when somebody is connecting to the server. From wednesday till this morning the program worked fine. Now I'm getting this exception:

Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag 133 in class file java/util/Arrays$ArrayList
    at java.util.Arrays.asList(Arrays.java:3355)
    at twitter4j.auth.OAuthAuthorization.toParamList(OAuthAuthorization.java:371)
    at twitter4j.auth.OAuthAuthorization.generateAuthorizationHeader(OAuthAuthorization.java:206)
    at twitter4j.auth.OAuthAuthorization.generateAuthorizationHeader(OAuthAuthorization.java:260)
    at twitter4j.auth.OAuthAuthorization.getAuthorizationHeader(OAuthAuthorization.java:75)
    at twitter4j.internal.http.HttpClientImpl.setHeaders(HttpClientImpl.java:246)
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:116)
    at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:65)
    at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:102)
    at twitter4j.TwitterImpl.post(TwitterImpl.java:1764)
    at twitter4j.TwitterImpl.updateStatus(TwitterImpl.java:447)

The program uses twitter4j for posting on twitter. I got the newest jar for twitter4j, released today and I have updated to the latest jvm, but I'm still having this problem.

Does anybody know what's wrong?

Thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

著墨染雨君画夕 2024-10-29 23:46:17

您应该使用最新的 twitter api jar 重新编译您的代码,很可能他们已经更改了其 api 的接口,并且您的代码需要更新。

You should recompile your code using the latest twitter api jar, most likely they have changed the interface to their apis and your code will need to be updated.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文