我正在努力让Vaadin7应用程序在Google应用程序引擎上运行.我使用app-engine sdk 1.8.5和
eclipse juno.
部署似乎工作,因为我得到:
------------ Deploying frontend ------------
Preparing to deploy:
Created staging directory at: '/tmp/appcfg4530509922106401908.tmp'
Scanning for jsp files.
Scanning files on local disk.
Initiating update.
Cloning 4 static files.
Cloning 8 application files.
Deploying:
Uploading 0 files.
Initializing precompilation...
Deploying new version.
Verifying availability:
Will check again in 1 seconds.
Will check again in 2 seconds.
Will check again in 4 seconds.
Will check again in 8 seconds.
Closing update: new version is ready to start serving.
Updating datastore:
Uploading index definitions.
Deployment completed successfully
然而,在操作结束时有一个弹出窗口说:
An internal error occurred during: "Deploying <app-name> to Google".
java.lang.NullPointerException
什么都写入日志文件,我不知道是什么类型的nullpointer.从Web浏览器访问应用程序提供HTTP 500.
关于什么原因/可能的解决方案的任何提示?
最佳答案 通常,在成功部署之后,Google App Engine Eclipse插件会启动指向your-app-id.appspot.com的浏览器选项卡.如果失败,您可以获得如您所述的NullPointerException.
这就是我,至少在Eclipse 4.3(Kepler)和app-engine sdk 1.8.6上发生的事情.
在这种情况下,您的后端确实已部署,忽略此错误是安全的.但是,您必须手动启动或刷新浏览选项卡.