Open dankurka opened 9 years ago
Reported by t.broyer
on 2012-08-16 15:12:12
Accepted
With GWT 2.6.0, now I have the following error:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at eg.gwt.sample.framework.client.ProxyGwtCreateHandler$1.invoke(ProxyGwtCreateHandler.java:29)
... 30 more
Caused by: java.lang.ClassCastException: void
at java.lang.Class.asSubclass(Class.java:3126)
at com.google.web.bindery.requestfactory.vm.InProcessRequestFactory$RequestFactoryHandler.invoke(InProcessRequestFactory.java:63)
at com.sun.proxy.$Proxy116.initialize(Unknown Source)
at eg.gwt.sample.framework.client.RequestFactoryGwtCreateHandler$1.initialize(RequestFactoryGwtCreateHandler.java:25)
... 35 more
No more NPE but InProcessRequestFactory's InvocationHandler expects that each method
of a RequestFactory returns a subclass of RequestContext.
There should be special rules to handle RequestFactory's methods like initialize(...).
At compilation time, RfValidator also fails (but I can't see where as maven is swallowing
the exception at some point).
Reported by xavier.dury
on 2014-04-01 14:25:38
Originally reported on Google Code with ID 7593
Reported by
xavier.dury
on 2012-08-14 13:47:07