我正在遵循StockWatcher应用程序的步骤。在Eclipse中运行应用程序后,我得到一个显示以下内容的URL(http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997):
http://code.google.com/webtoolkit/doc/1.6/tutorial/images/CreateStarterApplication.png
我在字段中插入我的名字,但出现此错误:
尝试联系服务器时发生错误。请检查
您的网络连接,然后重试。
我在Eclipse中得到以下输出:
Initializing App Engine server
[WARN] ********************************************************
There is a new version of the SDK available.
-----------
Latest SDK:
Release: 1.6.0
Timestamp: Tue Oct 18 01:46:22 CEST 2011
API versions: [1.0]
-----------
Your SDK:
Release: 1.5.5
Timestamp: Sat Oct 08 03:15:30 CEST 2011
API versions: [1.0]
-----------
Please visit http://code.google.com/appengine for the latest SDK.
********************************************************
Nov 15, 2011 5:24:37 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Nov 15, 2011 5:24:37 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /home/javier/programacion/StockWatcher/war/WEB-INF/appengine-web.xml
Nov 15, 2011 5:24:37 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /home/javier/programacion/StockWatcher/war/WEB-INF/web.xml
Nov 15, 2011 6:24:45 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8888/
Nov 15, 2011 5:24:52 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /favicon.ico
Nov 15, 2011 5:24:52 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /favicon.ico
Nov 15, 2011 5:24:58 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Error for /stockwatcher/greet
java.lang.VerifyError: Expecting a stackmap frame at branch target 17 in method com.google.gwt.sample.stockwatcher.server.GreetingServiceImpl.greetServer(Ljava/lang/String;)Ljava/lang/String; at offset 4
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
at java.lang.Class.getConstructor0(Class.java:2714)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:428)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
我在本地运行apache2。
任何想法?
最佳答案
我在Eclipse和启动新的WebApplication时遇到了相同的问题。我通过打开项目属性,java编译器,选中启用项目特定设置和使用编译器符合性级别1.6来解决了该问题
它还给了我一个消息,我需要加载1.6 JRE。
您还会在项目属性,java构建路径,“库”选项卡中找到该内容,编辑JRE系统库,并确保默认设置中具有JRE6,或者可以添加它并选择它以供使用。