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.gu...@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
>
> ErrorFailed to retrieve API configs with status: 400
>
> What can be wrong going here?
>
> Regards,
> Rajesh
> *www.VeersoftSolutions.com <http://www.veersoftsolutions.com/>*
> *www.GainERP.com <https://www.gainerp.com/>*
> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and
> Mobile*
>
> On Wed, Mar 15, 2017 at 10:47 AM, Yashavanta S B <
> yashava...@veersoftsolutions.com> wrote:
>
>> 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?
>>
>>
>> --
>> 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+unsubscr...@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/ms
>> gid/google-appengine/0d6004b3-91a6-44ff-b035-7450fcd89c39%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/google-appengine/0d6004b3-91a6-44ff-b035-7450fcd89c39%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Regards,
> Rajesh
> *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
> *www.GainERP.com <https://www.gainerp.com>*
> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and
> Mobile*
>
>


-- 
Regards,
Rajesh
*www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
*www.GainERP.com <https://www.gainerp.com>*
*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+unsubscr...@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/CA%2BS7ijbZ3%3DWPAr%2BoZ0aM3heDqOw%2BWBPAhSXxSid%3DHFPEwEsw7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to