Google app engine 使用SocketTimeoutException生成Google云端点库失败:读取超时

Google app engine 使用SocketTimeoutException生成Google云端点库失败:读取超时,google-app-engine,gae-eclipse-plugin,maven-gae-plugin,Google App Engine,Gae Eclipse Plugin,Maven Gae Plugin,谷歌应用程序引擎sdk版本为1.8.9 用于Eclipse的Google插件 操作系统版本为windows 7 x64 语言是英语 尝试使用Eclipse4.3创建留言簿示例 可以成功构建/部署示例项目。而且API也测试正常 但是当尝试使用google->generate cloud endpoint client库时,它会提示一个错误,错误跟踪如下(PS:也尝试使用命令行,仍然失败): 代码如下所示: 问候语.java: 包com.test.guestbook import java.util

谷歌应用程序引擎sdk版本为1.8.9 用于Eclipse的Google插件 操作系统版本为windows 7 x64 语言是英语

尝试使用Eclipse4.3创建留言簿示例

可以成功构建/部署示例项目。而且API也测试正常

但是当尝试使用google->generate cloud endpoint client库时,它会提示一个错误,错误跟踪如下(PS:也尝试使用命令行,仍然失败):

代码如下所示: 问候语.java: 包com.test.guestbook

import java.util.ArrayList;

import javax.inject.Named;

import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.appengine.api.users.User;
/**
 * Defines v1 of a helloworld API, which provides simple "greeting" methods.
 */
@Api(name = "helloworld", version = "v1")
public class Greetings {
  public static ArrayList<HelloGreeting> greetings = new ArrayList<HelloGreeting>();

  static {
    greetings.add(new HelloGreeting("hello world!"));
    greetings.add(new HelloGreeting("goodbye world!"));
  }

  public HelloGreeting getGreeting(@Named("id") Integer id, User user) {
    return greetings.get(id);
  }


}

端点声明中可能存在错误。来自插件的错误消息没有真正意义。您可以添加endpoints类以获取更多信息吗?我也在这里上传了示例代码,它与google中的示例代码非常简单。@Nipper,我也发布了终结点代码,谢谢您的评论,这个问题让我现在睡不着。示例代码有效,您是否安装了最新的google插件(3.5.1)?也许清理项目构建。sorry@Nipper,是的,它是3.5.1,我问一个朋友也在他的环境测试,它也失败了。我想我的代码或配置文件中遗漏了一些东西。
import java.util.ArrayList;

import javax.inject.Named;

import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.appengine.api.users.User;
/**
 * Defines v1 of a helloworld API, which provides simple "greeting" methods.
 */
@Api(name = "helloworld", version = "v1")
public class Greetings {
  public static ArrayList<HelloGreeting> greetings = new ArrayList<HelloGreeting>();

  static {
    greetings.add(new HelloGreeting("hello world!"));
    greetings.add(new HelloGreeting("goodbye world!"));
  }

  public HelloGreeting getGreeting(@Named("id") Integer id, User user) {
    return greetings.get(id);
  }


}
package com.test.guestbook;

public class HelloGreeting {
     public String message;

      public HelloGreeting() {};

      public HelloGreeting(String message) {
        this.message = message;
      }

      public String getMessage() {
        return message;
      }

      public void setMessage(String message) {
        this.message = message;
      }
    }