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$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之类的球衣库。很好,应用程序将仅使用此库运行REST服务,但是如果生成JSON,它将搜索提供JSON数组提供程序的jackson库。 通过简单地添加jackson * .jar库,问题就解决了。     

要回复问题请先登录注册