Parameterized type com.googlecode.objectify.Key not supported.

88 views
Skip to first unread message

Yashavanta S B

unread,
Mar 15, 2017, 1:17:51 AM3/15/17
to Google App Engine

I am using Google App Engine 1.9.42, Eclipse, Objectify 4.0rc2. My Class is as follows:


@Entity
public class LeadActivity {
@Id
private Long id;
private String subject;
Key<Job> jobKey;

//getters & setters
}

When I try calling the google endpoint for this class thru Eclipse, I get the following error: java.lang.IllegalArgumentException: Parameterized type com.googlecode.objectify.Key<Job> not supported.


Any ideas what I am doing wrong?


After this i completely removed above API method and try to call other API methods which does not have Key<Job>  field type.

But i still get the same messaage  java.lang.IllegalArgumentException: Parameterized type com.googlecode.objectify.Key<Job> not supported.


[INFO] Mar 14, 2017 4:34:29 PM com.google.api.server.spi.SystemService invokeServiceMethod
[INFO] SEVERE: exception occurred while calling backend method
[INFO] java.lang.IllegalArgumentException: Parameterized type com.googlecode.objectify.Key<com.veersoft.gwt.shared.job.Job> not supported.
[INFO]  at com.google.api.server.spi.config.jsonwriter.JsonConfigWriter.addTypeToSchema(JsonConfigWriter.java:549)
[INFO]  at com.google.api.server.spi.config.jsonwriter.JsonConfigWriter.addTypeToNode(JsonConfigWriter.java:671)
.... more messages
[INFO]  at com.google.api.server.spi.SystemService.getApiConfigs(SystemService.java:411)    
[INFO]  at com.google.api.server.spi.BackendService.getApiConfigs(BackendService.java:98)   
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                      
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
.... more messages
[INFO] Mar 14, 2017 4:34:29 PM com.google.apphosting.utils.jetty.JettyLogger warn
[INFO] WARNING: /_ah/api/vsloginendpoint/v2/vsLoginIonic2: java.io.IOException: Failed to retieve API configs with status: 400   

Is the API cached? If so, how do i clean the cache?

What is "Failed to retrieve API configs with status" means?


Rajesh Gupta

unread,
Mar 15, 2017, 6:22:07 AM3/15/17
to google-a...@googlegroups.com
Trying to do further investigation on the same issue.

I typed http://localhost:8888/_ah/api in the browser

I got the following 

Error

Failed to retrieve API configs with status: 400

What can be wrong going here?

Regards,
Rajesh
Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and Mobile

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0d6004b3-91a6-44ff-b035-7450fcd89c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Rajesh
Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and Mobile

Rajesh Gupta

unread,
Mar 15, 2017, 7:01:00 AM3/15/17
to google-a...@googlegroups.com
We are using ofy Key, so transformers class is also added to the @Api annotation to take care of the ofy key class. Please see the following.

@Api(name = "jobscustomreportsendpoint", version = "v2",
    description = "An API to perform jobs custom reports", transformers = { KeyTransformer.class })

Still we get the same error.


On Wed, Mar 15, 2017 at 3:51 PM, Rajesh Gupta <rajesh...@veersoftsolutions.com> wrote:
Trying to do further investigation on the same issue.

I typed http://localhost:8888/_ah/api in the browser

I got the following 

Error

Failed to retrieve API configs with status: 400

What can be wrong going here?

Regards,
Rajesh
Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and Mobile

Rajesh Gupta

unread,
Mar 15, 2017, 7:51:45 AM3/15/17
to google-a...@googlegroups.com
Hello all,
In the above mentioned LeadActivity class, we were using  @ApiResourceProperty(ignored = AnnotationBoolean.TRUE) for some fields.

For, some fields we were dependent on  the transformer class in the @Api annotation

Endpoints was not liking it.   We cleaned up the LeadActivity class, and now we are using only the Transformers in the @Api annotation.   

Everything is fine.

Thanks.

On Wed, Mar 15, 2017 at 4:30 PM, Rajesh Gupta <rajesh...@veersoftsolutions.com> wrote:
We are using ofy Key, so transformers class is also added to the @Api annotation to take care of the ofy key class. Please see the following.

@Api(name = "jobscustomreportsendpoint", version = "v2",
    description = "An API to perform jobs custom reports", transformers = { KeyTransformer.class })

Still we get the same error.

Jordan (Cloud Platform Support)

unread,
Mar 15, 2017, 11:35:29 AM3/15/17
to Google App Engine
I am happy to hear that you were able to solve your issue in this groups thread. Note that Google Groups is meant for general product discussions and not for technical support. Technical questions are to be posted on Stack Overflow with the Google Cloud supported tags
Reply all
Reply to author
Forward
0 new messages