AppEngine控制台错误:无法解析响应JSON数据

时间:2013-02-03 01:13:31

标签: java google-app-engine mapreduce

几个星期后,当我在AppEngine上启动map-reduce任务时,我得到一个“错误 - 无法解析响应JSON数据”。尝试访问控制台时。知道如何解决这个问题吗?

转储的开始:

Error for /_ah/pipeline/rpc/tree
java.lang.NoClassDefFoundError: org/json/JSONObject
    at com.google.appengine.tools.pipeline.impl.util.JsonUtils.mapToJson(JsonUtils.java:34)
    at com.google.appengine.tools.pipeline.impl.servlets.JsonGenerator.buildJsonRepresentation(JsonGenerator.java:106)
    at com.google.appengine.tools.pipeline.impl.servlets.JsonGenerator.getJson(JsonGenerator.java:48)
    at com.google.appengine.tools.pipeline.impl.servlets.JsonHandler.doGet(JsonHandler.java:44)
    at com.google.appengine.tools.pipeline.impl.servlets.PipelineServlet.doGet(PipelineServlet.java:96)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at fr.mncc.gwttoolbox.rpc.server.filters.CrawlFilter.doFilter(CrawlFilter.java:82)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:141)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
...

1 个答案:

答案 0 :(得分:0)

您需要将JAR从java / lib目录复制到war / WEB-INF / lib目录,截至当前版本,包括charts4j-1.2.jar,commons-logging-1.1.1.jar,guava -14.0-rc1.jar和json.jar。这应解决未找到类的错误。