Hi, sorry I have to ask, but the example at http://code.google.com/intl/en-US/webtoolkit/doc/latest/DevGuideRequestFactory.html is relative unclear to me how about making the RequestFactory work with Persistence function NOT in the Entity and not beeing static. I have not found any examples. Could some one please help.
I am experience the following problem/exception with my implementation and can see were the problem is: @Service(value = EmployeeService.class, locator = DaoServiceLocator.class) public interface EmployeeRequest extends RequestContext { ... InstanceRequest<EmployeeProxy, Void> persist(EmployeeProxy employee); } ServiceImpl: public class EmployeeService extends GenericDAO<EmployeeGWT, ObjectId>{ ... public void persist(EmployeeGWT employee){ em.save(employee); } } Client call: EmployeeRequest request = requestFactory.employeeRequest(); EmployeeProxy newEmployee = request.create(EmployeeProxy.class); newEmployee.setDepartment("void"); newEmployee.setDisplayName("VoidMan"); Request<Void> createReq = request.persist(newEmployee).using(newEmployee); I get the following Exception: java.lang.IllegalArgumentException: object is not an instance of declaring class 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:601) at com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.invoke(ReflectiveServiceLayer.java:182) I am not sure what this means and looking for clues. Is the @Service wrong or what is missing or wrong here? Maybe this is even totally unrelated to my question? kind regards -- 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/-/Cpk1i8E2HZAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.