End points giving error when used with objectify ref<> and key<> fields

59 views
Skip to first unread message

Sheena Arora

unread,
Dec 26, 2015, 2:42:17 AM12/26/15
to Google App Engine
Hi,

I am trying to create enpoints (backend APIs) for a java class using objectify to connect with GAE. When I try to access the api using api explorer , I get the error "java.lang.IllegalArgumentException: Parameterized type com.googlecode.objectify.Ref<> not supported."

I have an entity which is having fields as ref<> of other entities.At this point, I can not change the design of the class.

Thanks

Adam (Cloud Platform Support)

unread,
Dec 26, 2015, 6:32:33 PM12/26/15
to Google App Engine
This seems like a question that would be better posted to Stack Overflow, rather than a discussion post. The google-appengine group is intended more for general discussion rather than 1-on-1 support assistance. Please see the main Community Support page for a list of the tags we monitor.

This is an issue that comes up commonly, because Endpoints doesn't support arbitrary objects, however there are ways to work around this. Some discussions and possible solutions to your case can be found here and here

Sheena Arora

unread,
Dec 29, 2015, 12:50:21 AM12/29/15
to Google App Engine
I posted this question on stackoverflow, but didn't get any answers. So thought about posting over here.

Anyway thanks
Reply all
Reply to author
Forward
0 new messages