Monday, April 30, 2012

Re: RequestFactory and Value Proxy for Objectify Key problem

For anyone else that passes this way looking for the cause of the AssertionError: Incorrect size: 2 in AutoBeanCodexImpl$CoderCreator.getCoder()...

I had an AutoBean with an ArrayList<AnotherAutoBean>.  I changed it to be just List<AnotherAutoBean> and it fixed the problem.


On Friday, July 8, 2011 9:58:24 AM UTC+10, Phil C wrote:
I am trying to convert our application to use RequestFactory (GWT 2.3
using all references).  I
am running into issues when trying to use an entity proxy for the
objectify key class.

public interface KeyProxy<T extends EntityProxy> extends ValueProxy{
        long getId();
        String getKindClassName();
        String getName();
        KeyProxy<?> getParent();
        <V extends EntityProxy> KeyProxy<V> getRoot();

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

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.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment