简体   繁体   English

Google App Engine模块/服务应用程序从Eclipse部署

[英]Google App Engine modules / services app deploy from Eclipse

Since a week my Google App Engine project fails to deploy to the Google server. 一周以来,我的Google App Engine项目无法部署到Google服务器。 It is an EAR project (with modules / services) which does not use maven. 这是一个不使用maven的EAR项目(带有模块/服务)。 I have always deployed it to the remote server using the 'Servers' panel in Eclipse (JEE, or WTP). 我一直使用Eclipse(JEE或WTP)中的“服务器”面板将其部署到远程服务器。 The Google plugin for Eclipse inserts a drop-down menu in the 'Servers' panel. 用于Eclipse的Google插件在“服务器”面板中插入一个下拉菜单。

The error occurs immediately when I try to deploy. 当我尝试部署时,错误立即发生。 It says: 它说:

'Executing Google App Engine Remote Operation' has encountered a problem. “执行Google App Engine远程操作”遇到问题。 An internal error occurred during "Executing Google App Engine Remote Operation". 在“执行Google App Engine远程操作”期间发生内部错误。

In the details there is a bit more information, namely "java.lang.NullPointerException". 详细信息中有更多信息,即“ java.lang.NullPointerException”。 Not stack trace, no indication where the NPE happened, no location of a log file. 没有堆栈跟踪,没有指示NPE发生的位置,没有日志文件的位置。

Does anyone (maybe from Google?) know where to start looking for the cause of this error? 是否有人(可能来自Google?)知道从哪里开始查找此错误的原因?

When looking at the 'versions' panel in the app engine console, I noticed that the size of my project had shrunk from 18 to 12 MB. 在App Engine控制台中查看“版本”面板时,我注意到我的项目大小从18 MB缩小到12 MB。 Apparently, not all the necessary libraries were deployed. 显然,并未部署所有必需的库。 Maybe this was caused by a failed update of the Google plugin? 也许是由于Google插件更新失败导致的?

I removed the Google plugin for Eclipse and re-installed it. 我删除了Eclipse的Google插件,然后重新安装了它。 Then I reconfigured my project from scratch. 然后,我从头开始重新配置我的项目。 The problem has gone away, so it was probably caused by some misconfiguration. 该问题已消失,因此可能是由于某些错误配置引起的。

I had to rollback an update that apparently was in progress, in spite of the earlier error. 尽管有较早的错误,但我不得不回滚显然正在进行的更新。 The drop-down menu in the servers panel is useless for rollbacks, since it will always end in an error, doing nothing useful. 服务器面板中的下拉菜单对于回滚是没有用的,因为它总是以错误结束,因此无济于事。 I had to use appcfg from the command-line. 我必须从命令行使用appcfg

This is not really a solution to the deploy problem I had, but it works for now. 这不是解决我所遇到的部署问题的真正方法,但目前可以使用。

I had the same problem with Google plugin on eclipse. 我在eclipse上使用Google插件遇到了同样的问题。 As a backup I use the google app engine launcher GUI. 作为备份,我使用了Google App Engine启动器GUI。 Just point it to the project in your file directory and click "deploy". 只需将其指向文件目录中的项目,然后单击“部署”即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM