Search code examples
gwtrequestfactory

RequestFactory IllegalArgumentException:property


I create a proxy from a clean request, and then set some properties. It works for some of them but for the others, I get an IllegalArgumentException.

    MyRequest myRequest = myRequestProvider.get();
    MyProxy my = myRequest.create(MyProxy.class);
    my.setPaypal("xxx");

and I get java.lang.IllegalArgumentException: paypal in com.google.web.bindery.event.shared.SimpleEventBus.doFire().


Solution

  • My proxy class did not define a getter for the property paypal. By adding the getter the exception is gone. Hope it helps.