RequestFactory and Value Proxy for Objectify Key problem
380 views
Skip to first unread message
Phil C
unread,
Jul 7, 2011, 7:58:24 PM7/7/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
I am trying to convert our application to use RequestFactory (GWT 2.3
using all com.google.web.bindery.requestfactory.shared references). I
am running into issues when trying to use an entity proxy for the
objectify key class.
the entity class then has a reference to the key like this
public interface BarProxy{
Key<BarProxy> getKey();
}
we end up with an error like
java.lang.AssertionError: Incorrect size: 2
at com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl
$CoderCreator.getCoder(AutoBeanCodexImpl.java:124)
at com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl
$PropertyCoderCreator.maybeCreateCoder(AutoBeanCodexImpl.java:354)
at com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl
$PropertyCoderCreator.visitReferenceProperty(AutoBeanCodexImpl.java:
341)
at
when looking at it in the deubugger, there appear to be 2 coders. The
first is for BarProxy, and the second is for the Key.
Any help appreciated.
Kevin Jordan
unread,
Jul 10, 2011, 10:51:42 PM7/10/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Well, that should be KeyProxy, not Key there. I'm also not sure if
you're going to be able to do the T extends EntityProxy generics since
I'm trying to convert my application to RequestFactory too and seem to
be having problems doing that.
Kevin Jordan
unread,
Jul 10, 2011, 11:28:50 PM7/10/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Also, what's the point of the generics on your KeyProxy as T isn't
used to return or set anything in the class.