在我的 Google App Engine 应用程序中,我使用 jsoup 库 (jsoup.org)。 我在 Eclipse 上安装了 GAE 1.6.4 SDK,代码仅在本地主机上停止工作。如果我使用 GAE 1.6.3,appspot.com 上的应用程序运行良好,并且相同的应用程序在本地主机中运行良好。
代码是(例如):
string = Jsoup.clean(string, Whitelist.none());
异常(exception)情况是:
java.lang.ClassFormatError: Invalid method Code length 73191 in class file org/jsoup/nodes/Entities
或者(当我第二次执行代码时)
java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
有人有同样的问题吗?我该如何解决?
最佳答案
看看这个: http://www.4shared.com/folder/l8tNGCef/public.html
有2个文件: 解决这个问题的固定 jsoup jar 和源代码
关于java - 仅在本地主机上的 Google App Engine 1.6.4 上使用 Jsoup 时出现 ClassFormatError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9974826/