标签: gae-eclipse-plugin

如何从命令行关闭Google App Engine的本地开发服务器?

dev_appserver.py从Eclipse 运行了本地GAE app server(),然后Eclipse崩溃了.所以我不得不杀死Eclipse并重启它.但是,当Eclipse重新启动时,它失去了与仍然运行的GAE服务器的连接,我无法想出如何关闭它.

google-app-engine gae-eclipse-plugin

6
推荐指数
1
解决办法
3255
查看次数

GWT + GAE错误:通过运行GWTTestCase-JUnit失败org.mortbay.jetty.nio.SelectChannelConnector

我通常将Eclipse IDE用于GAE + GWT项目.

环境:GWT2.1.1,GAE 1.4.0

在GWT项目(没有GAE),在项目中使用GWTTestCase ,,,→没问题.运行良好.

在GWT + GAE项目中,在GWT项目中使用GWTTestCase,→当运行扩展GWTTestcase的测试时,出现错误.

错误如下:java.lang.NoSuchMethodError:org.mortbay.thread.Timeout.(Ljava/lang/Object;)V org.mortbay.io.nio.SelectorManager $ SelectSet.(SelectorManager.java:306)at org. mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 303)org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)org.mortbay.jetty.Server.doStart(Server.java:233)org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java) :39)com.google.gwt.dev.shell.jet.JettyLauncher.start(JettyLauncher.java:542)com.google上的com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:431). gwt.dev.DevModeBase.startUp(DevModeBase.java:1053)位于com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:680)的com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java: 625)在com.google.gwt.junit.client.GWTTestCase.ru nTest(GWTTestCase.java:456)在junit.framework.TestCase.runBare(TestCase.java:134)的junit.framework.TestResult $ 1.protect(TestResult.java:110)在junit.framework.TestResult.runProtected(TestResult. java:128)at junit.framework.TestResult.run(TestResult.java:113)at junit.framework.TestCase.run(TestCase.java:124)at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase) .java:311)在junit.framework.TestSuite.runTest(TestSuite.java:232)的junit.framework.TestSuite.run(TestSuite.java:227)org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner. java:83)org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)在Org.eclipse上的org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) .jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java:390)org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

测试来源如下:package com.companyName.client;

import com.google.gwt.junit.client.GWTTestCase;

public class Test extends GWTTestCase {


@Override
public String getModuleName() {
    return "com.companyName.projectName";
}


/**
 * test
 */
public void testNumburOne () {
    System.out.println("testNumburOne");
}

}
Run Code Online (Sandbox Code Playgroud)

没有GAE,那将正常运行.

gwt gae-eclipse-plugin

5
推荐指数
1
解决办法
3553
查看次数

从app-engine端点提供blob

我想从我的谷歌端点服务器提供blob到Android应用程序; 不是blob的链接,实际的blob.我是否必须在Base64中对blob进行编码以从端点发送它,还是由app-engine处理?

请不要将此问题与从前端到后端发送图像的反向路径混淆.我想从SERVER发送到CLIENT.我是否需要对blob进行编码或使用app-engine处理?哦,我正在使用Java.

google-app-engine google-eclipse-plugin gae-eclipse-plugin google-cloud-endpoints

5
推荐指数
0
解决办法
510
查看次数

无法部署到GAE - 应用程序不存在

使用Eclipse时,我在尝试使用JAX-RS和JAXB部署相当基本的Web应用程序时遇到错误.它在本地运行正常,但在远程服务器上尝试时,我得到如下所示的消息...

"部署到Google"遇到问题/此应用程序不存在

在此输入图像描述

下面显示了我的appengine-web.xml

在此输入图像描述

XML文件说明我在xml中使用与项目属性中指定的名称相同的名称...

在此输入图像描述

输出窗口显示......

------------ Deploying frontend ------------

Preparing to deploy:
    Created staging directory at: '/var/folders/n8/6by626014jbfc0dwmxnb0ly00000gn/T/appcfg2754901216637807129.tmp'
    Scanning for jsp files.
    Scanning files on local disk.
    Initiating update.
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=hillingarincident&version=0&
404 Not Found
This application does not exist (app_id=u'hillingarincident').


Debugging information may be found in /private/var/folders/n8/6by626014jbfc0dwmxnb0ly00000gn/T/appengine-deploy447984481661870877.log
Run Code Online (Sandbox Code Playgroud)

引用的调试日志显示......

Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=hillingarincident&version=0&
404 Not Found
This application does not exist (app_id=u'hillingarincident').

        at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
        at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
        at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
        at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:644)
        at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:449)
        at …
Run Code Online (Sandbox Code Playgroud)

google-app-engine gae-eclipse-plugin

3
推荐指数
1
解决办法
4681
查看次数

升级到app-engine 1.7.7后,在mac osx上添加JRE 7到eclipse

我一直在用GAE-Eclipse插件开发一个应用程序.我刚刚将eclipse更新为app-engine 1.7.7.因此,我发起了一直在走过的错误旋风.我终于想到我需要安装jre7.所以我去了http://www.macupdate.com/app/mac/44788/java-se-runtime-environment-7并安装了jre.然后我尝试通过直通将eclipse与jre联系起来eclipse > preferences > java > installed JREs.在那里我只看到Java SE 6.所以我点击MacOS X VM然后浏览到/System/Library/Frameworks/JavaVM.framework/Versions/.当我到达那里时,我期望找到1.7.但相反,在1.6.0我看到A之后Current,CurrentJDK.

列表中是否缺少正确的版本,或者我将选择其中哪一个?

gae-eclipse-plugin osx-mountain-lion eclipse-juno google-cloud-endpoints

3
推荐指数
1
解决办法
4410
查看次数

启动GAE/GWT项目时出错:无法恢复以前的TimeZone

当我尝试使用Eclipse插件运行GWT App Engine项目时,出现以下错误:

Initializing App Engine server
[ERROR] Unable to start App Engine server
java.lang.RuntimeException: Unable to restore the previous TimeZone
    at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228)
    at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:164)
    at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)
    at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    at com.google.gwt.dev.DevMode.main(DevMode.java:311)
Caused by: java.lang.NoSuchFieldException: defaultZoneTL
    at java.lang.Class.getDeclaredField(Class.java:1899)
    at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222)
    ... 6 more
[ERROR] shell failed in doStartupServer method
Unable to start embedded HTTP server
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at      com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:102)
    at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    at com.google.gwt.dev.DevMode.main(DevMode.java:311)
Run Code Online (Sandbox Code Playgroud)

gwt google-app-engine gae-eclipse-plugin

2
推荐指数
1
解决办法
7405
查看次数