Twitter4J 中的类格式错误
我有一个程序,可以在有人连接到服务器时更新 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用最新的 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.