Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java &引用;“远程API已安装”;应用程序引擎上_Java_Google App Engine_Objectify_Remoteapi - Fatal编程技术网

Java &引用;“远程API已安装”;应用程序引擎上

Java &引用;“远程API已安装”;应用程序引擎上,java,google-app-engine,objectify,remoteapi,Java,Google App Engine,Objectify,Remoteapi,我正在尝试使用Google App Engine远程API从我的开发服务器连接到生产数据存储。第一个请求似乎成功了,我确实连接到了生产数据存储,但在后续请求中,它没有正确连接,我收到以下消息: 远程API已安装 这是我用来连接远程API的代码: try { RemoteApiOptions options = new RemoteApiOptions() .server("xxxxx.appspot.com", 80) .useServic

我正在尝试使用Google App Engine远程API从我的开发服务器连接到生产数据存储。第一个请求似乎成功了,我确实连接到了生产数据存储,但在后续请求中,它没有正确连接,我收到以下消息:

远程API已安装

这是我用来连接远程API的代码:

try {
    RemoteApiOptions options = new RemoteApiOptions()
            .server("xxxxx.appspot.com", 80)
            .useServiceAccountCredential("xxxxx@appspot.gserviceaccount.com", 
                                         "WEB-INF/xxxxxx-xxxxxx.p12");
        RemoteApiInstaller installer = new RemoteApiInstaller();
        installer.install(options);
    } catch (Exception e) {
        System.out.println(e.getMessage());
    }

不确定是否相关,但我使用objectify与数据存储交互

您是否也使用installer.uninstall();在你完成所有远程操作之后operations@MarkDoyle不我希望所有操作都是远程的……理想情况下,在代码中的某个地方,您应该卸载remoteAPI。如果“dev server”指的是“dev appengine web server”,那么就指每个请求,因为remoteAPI安装程序是通过线程自行安装的。我个人从一个独立的java应用程序使用remoteAPI和Objectify,所以这不是问题所在。