Java 谷歌应用程序引擎上的Jersey错误

Java 谷歌应用程序引擎上的Jersey错误,java,google-app-engine,jersey,Java,Google App Engine,Jersey,在我的java应用程序中,我将Jersey用于REST服务。每件事 工作完美,但我得到这个错误,这消耗了大量的CPU (13830cpu_ms)并将应用程序冻结几秒钟 com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider: The provider c class, class com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$

在我的java应用程序中,我将Jersey用于REST服务。每件事 工作完美,但我得到这个错误,这消耗了大量的CPU (13830cpu_ms)并将应用程序冻结几秒钟

com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider: The provider c     
class, class com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App, could not be
instantiated. Processing will continue but the class will not be utilized
java.lang.SecurityException: Unable to get members for class  
  com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App
    at com.google.appengine.runtime.Request.process-d73c0d822f527031(Request.java)
    at java.lang.Class.getDeclaredMethods(Class.java:252)

知道我如何解决这个问题吗?

@Drew Sears:谢谢,但是错误发生在Jersey代码中-不是我的代码,因此没有代码显示

最后我发现了问题:我只使用jersey-core-1.7.jar这样的jersey库。这很好,应用程序将仅使用这些库运行REST服务,但如果生成JSON,它将搜索提供JSON数组提供程序的jackson库


通过简单地添加jackson*.jar libs,问题就解决了。

您需要显示一些代码(导致错误的地方),否则这只会导致一系列的否决票,最终得出结论:jackson正在工作,但这不是推荐的方法。改用
json