“服务器遇到错误,无法完成您的请求".在appengine上 [英] "The server encountered an error and could not complete your request" on appengine

查看:266
本文介绍了“服务器遇到错误,无法完成您的请求".在appengine上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是JAVA和JSP的初学者.我正在上Appengine的学期项目.我已经部署了项目,并且没有编译或其他错误.但是,当我打开应用程序链接时,它给出的错误是

I am beginner of JAVA and JSP. I am doing semester project on appengine. I have deployed project and there are no compilation or other errors. But when I open my application link it gives an error which is

Error: Server Error
The server encountered an error and could not complete your request.

如果问题仍然存在,请报告您的问题并提及此错误消息以及引起该问题的查询.

If the problem persists, please report your problem and mention this error message and the query that caused it.

在我的应用程序日志中,我看到了三种类型的问题

In my application logs I have seen three types of problems which are

  1. /favicon.ico 404 9ms 0kb

  1. /favicon.ico 404 9ms 0kb

182.177.75.115 - - [19/Dec/2011:05:29:57 -0800] "GET /favicon.ico HTTP/1.1" 404 0 - - "cloudisapp.appspot.com" ms=9 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.000033

没有处理程序匹配此URL.

No handlers matched this URL.

未捕获到servlet的异常

Uncaught exception from servlet

java.lang.UnsupportedClassVersionError: com/google/mystorage/server/GreetingServiceImpl : Unsupported major.minor version 51.0

  • java.lang.UnsupportedClassVersionError: com/google/mystorage/server/GreetingServiceImpl : Unsupported major.minor version 51.0

    此请求使您的应用程序启动了一个新进程,从而导致您的应用程序代码首次被加载.因此,与您的应用程序的典型请求相比,此请求可能花费更长的时间并使用更多的CPU.

    This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

    推荐答案

    2下的错误表示您正在编译某些JDK版本下的类,然后尝试在旧版本的JDK/JRE下运行它们.

    The error under 2. means that you are compiling classes under certain JDK version and then trying to run them under the older version of JDK/JRE.

    由于AppEngine支持Java 5和6,我猜您使用的是Java 7(OpenJDK)?

    Since AppEngine supports java 5 and 6, I'm guessing that you use Java 7 (OpenJDK)?

    顺便说一句,错误在1.以下并不严重:您只是缺少一个favicon.请参见: http://www.w3.org/2005/10/howto-favicon

    Btw, error under 1. is not serious: you are just missing a favicon. See this: http://www.w3.org/2005/10/howto-favicon

    这篇关于“服务器遇到错误,无法完成您的请求".在appengine上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆