无法生成云端点客户端库

时间:2014-06-05 15:05:06

标签: android eclipse google-app-engine google-plugin-eclipse

我正在使用this tutorial构建一个使用GAE的应用,我正在尝试按照here解释为类生成Cloud端点库。

但是,我遇到了意外错误。以下是详细信息:

eclipse.buildId=v22.6.2-1085508
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Framework arguments:  -product com.android.ide.eclipse.adt.package.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.android.ide.eclipse.adt.package.product

Error
Thu Jun 05 20:24:00 IST 2014
Unexpected Exception

java.lang.reflect.InvocationTargetException
    at     com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction$1.run(GenerateSwarmApi    Action.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.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
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
Root exception:
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.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
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)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

我使用的Eclipse版本是4.3。

2 个答案:

答案 0 :(得分:0)

我面临同样的问题。但是,我找到了这个链接,我认为它可以帮助: http://mall.51zks.com/Problem/index/-190279264/generating-the-api-metadata-for-cloud-endpoints-classes-failed/

它基本上链接到此链接,它告诉我们如何使用命令行创建端点库: https://developers.google.com/appengine/docs/java/endpoints/endpoints_tool

我正在研究这个解决方案。如果我得到任何好消息,我会更新。

答案 1 :(得分:0)

如Google Bugtracker所述,这是一个已知错误,您必须降级到1.9.3或将插件工具升级到3.6.0 见:https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=278