简体   繁体   English

GAE SDK 1.9.4打破了GPE 3.5.1

[英]GAE SDK 1.9.4 breaks GPE 3.5.1

When i tried to generate the client library using eclipse interface i got this erro: 当我尝试使用eclipse界面生成客户端库时,我得到了这个错误:

在此输入图像描述

eclipse.buildId=M20120914-1800 java.version=1.7.0_25 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=pt_BR Framework arguments: -product org.eclipse.epp.package.dsl.product -keyring /Users/renanfranca/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.dsl.product -keyring /Users/renanfranca/.eclipse_keyring -showlocation Error Thu May 01 19:39:22 BRT 2014 Unexpected Exception java.lang.reflect.InvocationTargetException at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction$1.run(GenerateSwarmApiAction.java:82) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: java.lang.ClassNotFoundException: com.google.api.server.spi.tools.ClientLibGenerator$Language at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivil eclipse.buildId = M20120914-1800 java.version = 1.7.0_25 java.vendor = Oracle Corporation BootLoader常量:OS = macosx,ARCH = x86_64,WS = cocoa,NL = pt_BR框架参数:-product org.eclipse.epp.package .dsl.product -keyring /Users/renanfranca/.eclipse_keyring -showlocation命令行参数:-os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.dsl.product -keyring / Users / renanfranca /。 eclipse_keyring -showlocation错误Thu May 01 19:39:22 BRT 2014在com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction $ 1.run(GenerateSwarmApiAction.java:82)上的意外异常java.lang.reflect.InvocationTargetException org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:121)引起:java.lang.ClassNotFoundException:com.google.api.server.spi.tools.ClientLibGenerator $ java.net.URLClassLoader上的语言在java.security.AccessController.doPrivil的java.net.URLClassLoader $ 1.run(URLClassLoader.java:355)$ 1.run(URLClassLoader.java:366) eged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createClientLibFromApiConfig(SwarmApiCreator.java:113) at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createSwarmApi(SwarmApiCreator.java:258) at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmServiceCreator.create(SwarmServiceCreator.java:444) at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction$1.run(GenerateSwarmApiAction.java:80) ... 1 more java.lang.ClassLoader.loadClass(ClassLoader.java:354)java.lang.ClassLoader.loadClass(ClassLoader.java:424)java.net.URLClassLoader.findClass(URLClassLoader.java:354)的eged(Native Method)(ClassLoader.java:357)在com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createClientLibFromApiConfig(SwarmApiCreator.java:113)的com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createSwarmApi(SwarmApiCreator。 java:258)com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmServiceCreator.create(SwarmServiceCreator.java:444)at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction $ 1.run (GenerateSwarmApiAction.java:80)......还有1个

I tried the command line at the root of the project: 我在项目的根目录下尝试了命令行:

$SDK/endpoints.sh get-client-lib my.package.MyEndpointsApi $ SDK / endpoints.sh get-client-lib my.package.MyEndpointsApi

And its only generated the endpoints client libs, but not the folder: 它只生成端点客户端库,但不生成文件夹:

myendpointsapi-v1-generated-source myendpointsapi-V1生成源

When i got back to appengine 1.9.3 it's work like a charm again.. 当我回到appengine 1.9.3时,它再次像魅力一样......

Anyone know how to solve this? 有谁知道如何解决这个问题?

In line with Romin, I also think that the AppEngine SDK 1.9.4 breaks GPE 3.5.1. 与Romin一致,我也认为AppEngine SDK 1.9.4打破了GPE 3.5.1。 I had the same problem when I updated to SDK 1.9.4 a few days ago. 我几天前更新到SDK 1.9.4时遇到了同样的问题。 I rolled back to 1.9.3, and the endpoints are generated successfully. 我回滚到1.9.3,并成功生成端点。 I reported GPE issue no. 我报告了GPE问题。 278 . 278

For those who need manual installation instructions of GAE SDK 1.9.3 on Eclipse 对于需要在Eclipse上使用GAE SDK 1.9.3的手动安装说明的用户

I had the same issue and found this download link to the GAE SDK 1.9.3 https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.3.zip 我遇到了同样的问题,发现了GAE SDK 1.9.3的下载链接https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.3.zip

How to manually install GAE SDK 1.9.3 in eclipse? 如何在eclipse中手动安装GAE SDK 1.9.3? Since I am very new to Android, I took some time to learn to manually install an eclipse plugin. 由于我对Android很新,我花了一些时间学习手动安装eclipse插件。 Please read Konstantin's answer how-to-install-plugin-for-eclipse-from-zip 请阅读Konstantin的回答how-to-install-plugin-for-eclipse-from-zip

For those how hasn't the SDK 1.9.3 as me, is possibile to install this SDK following the next steps: 对于那些没有像我这样的SDK 1.9.3,可以按照以下步骤安装此SDK:

  1. Download the SDK from here: https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.3.zip 从此处下载SDK: https//storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.3.zip

  2. Unzip in the folder Eclipse/plugins/ 解压缩Eclipse / plugins /文件夹

  3. Reboot Eclipse and go to Properties -> Google -> App Engine 重新启动Eclipse并转到属性 - > Google - > App Engine

  4. Click on Configure SDKs 单击配置SDK

  5. Click on Add 单击“添加”

  6. Browse to the folder where you unziped the plugin and click Ok. 浏览到解压缩插件的文件夹,然后单击“确定”。

  7. Choose now the new SDK 1.9.3. 现在选择新的SDK 1.9.3。 That's all ;) 就这样 ;)

I used this link to obtain the 1.9.3 sdk: 我使用此链接获取1.9.3 sdk:

http://mvnrepository.com/artifact/com.google.appengine/appengine-java-sdk/1.9.3 http://mvnrepository.com/artifact/com.google.appengine/appengine-java-sdk/1.9.3

other then that, yeah, just add via the Configure SDK properties 除此之外,是的,只需通过配置SDK属性添加

My experience was exactly the same: I couldnt generate Cloud EndPoint Libraries and the datastore didn´t work via Android. 我的经验完全相同:我无法生成Cloud EndPoint库,数据存储也无法通过Android工作。

If you want to downgrade your Google App Engine SDK after you updated it, seek into your Eclipse installation folder and look for the old SDK in plugings folder. 如果您想在更新后降级Google App Engine SDK,请进入Eclipse安装文件夹并在插件文件夹中查找旧版SDK。

Afterwards you can import these old SDK to your projects from "Project Properties" and "Google/App Engine", "Configure SDK", "Add". 之后,您可以从“项目属性”和“Google / App Engine”,“配置SDK”,“添加”将这些旧SDK导入到您的项目中。 There, you must fin the path I talked about. 在那里,你必须完成我所谈论的道路。

Now you can chose both SDK. 现在您可以选择两个SDK。

I tried with 1.9.3 and it worked again. 我尝试了1.9.3并再次工作。

Edited : Finally this soulution didn´t work, so I downgrade to my last stable version of Google App Engine SDK, the 1.9.2. 编辑 :最后这个解决方案不起作用,所以我降级到我最后一个稳定版的Google App Engine SDK,1.9.2。 This one worked for me. 这个对我有用。

I received this email today.. 我今天收到了这封邮件..

Updates: Status: Fixed Labels: Release-3.6.0 更新:状态:固定标签:版本-3.6.0

Comment #7 on issue 278 by rdayal@google.com: GPE 3.5.1 incompatible with GAE SDK 1.9.4 - Endpoint generation fails http://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=278 问题278评论#7 rdayal@google.com:GPE 3.5.1与GAE SDK 1.9.4不兼容 - 终端生成失败http://code.google.com/p/google-plugin-for-eclipse/issues/细节?ID = 278

I hope a GPE update will come son (I CAN'T WAIT) 我希望GPE更新将成为儿子 (我不能等待)

I gave up from Eclipse I'm using AndroidStudio now and it's generate the libraries automatically: http://rominirani.com/2014/08/27/gradle-tutorial-part-10-consuming-endpoints-in-android-code/ 我放弃了Eclipse,我现在正在使用AndroidStudio,它会自动生成库: http//rominirani.com/2014/08/27/gradle-tutorial-part-10-consuming-endpoints-in-android-code/

Start AndroidStudio from this awesome post Series: http://rominirani.com/2014/07/28/gradle-tutorial-series-an-overview/ 从这个精彩的帖子系列启动AndroidStudio: http//rominirani.com/2014/07/28/gradle-tutorial-series-an-overview/

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

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