scheglov / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
Eclipse Public License 1.0
0 stars 3 forks source link

Could not generate cloud endpoints #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm working on a backend for my android app on google appengine from months up 
to now. Everything was working quite good until yesterday. 
I have not generated endpoint in last 2 months but when I tried to do so 
yesterday the error showed up.

What steps will reproduce the problem?
1. From Android IDE (Eclipse 4.2) I click on 'Generate cloud endpoint client 
library'.
2. ... I have to wait a BIG amount of time...
3. The error appear (I will paste the stacktrace below).

What is the expected output? What do you see instead?
Expected output -> all ok and my new endpoint library in my android project.
Actual output -> (stacktrace below).

What version of the product are you using? On what operating system?
Ubuntu 13.04 64bit.
AppengineSDK (tried 1.9.2 ,1.9.3, 1.9.4 )

Please provide any additional information below.

Stacktrace in error log:
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: 
com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmGenerationException:

com.google.appengine.repackaged.com.google.api.client.http.HttpResponseException
: 400 Bad Request
{"error": {"message": "Bad Request", "code": 400, "errors": [{"message": "api 
exception", "debug_info": "Cannot decode JSON Schema for: {u'parameterName': 
u'resource'}"}]}}
    at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmApiCreator.createClientLibFromApiConfig(SwarmApiCreator.java:144)
    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
Caused by: 
com.google.appengine.repackaged.com.google.api.client.http.HttpResponseException
: 400 Bad Request
{"error": {"message": "Bad Request", "code": 400, "errors": [{"message": "api 
exception", "debug_info": "Cannot decode JSON Schema for: {u'parameterName': 
u'resource'}"}]}}
    at com.google.appengine.repackaged.com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1054)
    at com.google.api.server.spi.tools.CloudClientLibGenerator.postRequest(CloudClientLibGenerator.java:53)
    at com.google.api.server.spi.tools.CloudClientLibGenerator.generateClientLib(CloudClientLibGenerator.java:44)
    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:142)
    ... 4 more

Original issue reported on code.google.com by vitok...@gmail.com on 9 May 2014 at 12:20

GoogleCodeExporter commented 9 years ago
In problem tab the message is the following

There was a problem generating the API metadata for your Cloud Endpoints 
classes: 
com.google.appengine.repackaged.com.google.api.client.http.HttpResponseException
: 400 Bad Request
{"error": {"message": "Bad Request", "code": 400, "errors": [{"message": "api 
exception", "debug_info": "Cannot decode JSON Schema for: {u'parameterName': 
u'resource'}"}]}}   ******appname******-AppEngine       Unknown Google App Engine 
Cloud Endpoints Problem Marker

Original comment by vitok...@gmail.com on 9 May 2014 at 1:29

GoogleCodeExporter commented 9 years ago
The problem was in my Code: a Blob passed as parameter.
Hard to find because eclipse did not give any clue about the issue, nor the 
output using endpoint.sh directly from appengine sdk.

Original comment by vitok...@gmail.com on 11 May 2014 at 5:34

GoogleCodeExporter commented 9 years ago

Original comment by rdayal@google.com on 12 May 2014 at 6:25