\n
EDIT: After trying absolutely EVERYTHING, it seems that there must be a problem with Google's end. It seems that GPE uses a CloudClientLibGenerator
, which hasn't been working at least for the last...
And now I'm wondering:
\nAnyway, I think the word is dis-end-ppointment with Endpoints...
\nNote: I've opened this issue in Google Code.
\nEDIT: Responses from Google Project Member: "There's currently an issue with Endpoints in general, which is obfuscating any current or prior issues with library generation. I'll update when the current issue is resolved."
\n"We're working to get the problem fixed ASAP. We will post an update once the problem is resolved."
\nYou have to change to a previous GAE SDK version. Both 1.7.5 and 1.7.6 are working. You can download Java version from here.
\nI've tried and the endpoint library generation is working!!! And also the APIs Explorer in the development server, so we can keep developing while waiting for the bug to be fixed, what will happen tomorrow according to Google team...
\nAnd suddenly my already deployed endpoints, which were not working, are working again! (although the client generation is still not working with SDK 1.7.7)
\nEDIT: From Google they're saying that the generation from command line is working as well.
\nStacktrace of the exception thrown while trying to generate client libraries (in GPE Error Log):
\njava.lang.reflect.InvocationTargetException\n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n at java.lang.reflect.Method.invoke(Method.java:601)\n at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createClientLibFromApiConfig(SwarmApiCreator.java:121)\n at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createSwarmApi(SwarmApiCreator.java:242)\n at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmServiceCreator.create(SwarmServiceCreator.java:364)\n at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction$1.run(GenerateSwarmApiAction.java:84)\n at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)\n at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)\n at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)\n at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction.run(GenerateSwarmApiAction.java:80)\n at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)\n at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)\n at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)\n at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)\n at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\n at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)\n at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)\n at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)\n at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)\n at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)\n at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)\n at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)\n at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)\n at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)\n at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)\n at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)\n at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)\n at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)\n at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)\n at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)\n at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)\n at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)\n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n at java.lang.reflect.Method.invoke(Method.java:601)\n at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)\n at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)\n at org.eclipse.equinox.launcher.Main.run(Main.java:1438)\nCaused by: com.google.appengine.repackaged.com.google.api.client.http.HttpResponseException: 400 Bad Request\n{"error": {"message": "Bad Request", "code": 400, "errors": [{"message": "api error", "debug_info": "Could not parse api"}]}}\n at com.google.appengine.repackaged.com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1155)\n at com.google.api.server.spi.tools.CloudClientLibGenerator.postRequest(CloudClientLibGenerator.java:52)\n at com.google.api.server.spi.tools.CloudClientLibGenerator.generateClientLib(CloudClientLibGenerator.java:43)\n ... 41 more\n
\n","author":{"@type":"Person","name":"MikO"},"upvoteCount":12,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"This is now fixed in GPE 3.2.3, and on the service side. You can now use App Engine 1.7.7.
\n\nThere is still one issue remaining:
\n\nhttps://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=191
\n\nand it will be fixed on Monday.
\n","author":{"@type":"Person","name":"Rajeev Dayal"},"upvoteCount":5}}}Reputation: 18751
During last weeks I've been developing an app using GAE/J and Google Cloud Endpoints. I created my custom endpoints (using annotations) and although I had quite a lot of problems, I could solve them and everything was working rather fine.
But now (22/04/2013) I tried to make changes in an endpoint method, and suddenly the Google Eclipse Plugin is not generating the client libraries anymore!
I tried to delete all the generated api files from my project, but nothing worked. I've even downloaded Eclipse again, installed all the last versions of GPE and GAE SDK and started a new project from scratch, but I'm getting the same error...
EDIT: After trying absolutely EVERYTHING, it seems that there must be a problem with Google's end. It seems that GPE uses a CloudClientLibGenerator
, which hasn't been working at least for the last...
And now I'm wondering:
Anyway, I think the word is dis-end-ppointment with Endpoints...
Note: I've opened this issue in Google Code.
EDIT: Responses from Google Project Member: "There's currently an issue with Endpoints in general, which is obfuscating any current or prior issues with library generation. I'll update when the current issue is resolved."
"We're working to get the problem fixed ASAP. We will post an update once the problem is resolved."
You have to change to a previous GAE SDK version. Both 1.7.5 and 1.7.6 are working. You can download Java version from here.
I've tried and the endpoint library generation is working!!! And also the APIs Explorer in the development server, so we can keep developing while waiting for the bug to be fixed, what will happen tomorrow according to Google team...
And suddenly my already deployed endpoints, which were not working, are working again! (although the client generation is still not working with SDK 1.7.7)
EDIT: From Google they're saying that the generation from command line is working as well.
Stacktrace of the exception thrown while trying to generate client libraries (in GPE Error Log):
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createClientLibFromApiConfig(SwarmApiCreator.java:121)
at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createSwarmApi(SwarmApiCreator.java:242)
at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmServiceCreator.create(SwarmServiceCreator.java:364)
at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction$1.run(GenerateSwarmApiAction.java:84)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at com.google.gdt.eclipse.appengine.swarm.wizards.GenerateSwarmApiAction.run(GenerateSwarmApiAction.java:80)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: com.google.appengine.repackaged.com.google.api.client.http.HttpResponseException: 400 Bad Request
{"error": {"message": "Bad Request", "code": 400, "errors": [{"message": "api error", "debug_info": "Could not parse api"}]}}
at com.google.appengine.repackaged.com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1155)
at com.google.api.server.spi.tools.CloudClientLibGenerator.postRequest(CloudClientLibGenerator.java:52)
at com.google.api.server.spi.tools.CloudClientLibGenerator.generateClientLib(CloudClientLibGenerator.java:43)
... 41 more
Upvotes: 12
Views: 3584
Reputation: 281
This is now fixed in GPE 3.2.3, and on the service side. You can now use App Engine 1.7.7.
There is still one issue remaining:
https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=191
and it will be fixed on Monday.
Upvotes: 5
Reputation: 17
I have the same problem. No fix yet it seems. It started happening all of a sudden. I was able to generate cloud endpoint client libraries fine yesterday. But now, no. And even creating a new template project gives the error. So guessing from the error, it looks to be a problem at Google's end.
An open issue has been logged: https://code.google.com/p/googleappengine/issues/detail?id=9180
Upvotes: 0