Friday, June 3, 2011

RequestFactory exception when creating a proxy

An exception is thrown when I try to create a proxy:

myRequestProvider.get().create(MyDomainDomain.class);

java.lang.IllegalArgumentException: Unknown proxy type com.app.shared.proxy.MyDomainProxy
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.createProxy(AbstractRequestContext.java:411)
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.create(AbstractRequestContext.java:401)

with MyDomainProxy

@ProxyFor(MyDomain.class)
public interface MyDomainProxy extends EntityProxy {

    String getProperty();

    void setProperty(String property);

}


and MyDomain class

// DatastoreObject handles a Long id and a version
public class MyDomain extends DatastoreObject {

    private String property;

    public MyDomain() {
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

}

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cm14eFBoakdUVkVK.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment