Monday, January 30, 2012

RequestFactory , ServiceLocator and Generic Dao class , NoSuchMethodFound


I'm trying out GWT RequestFactory but hit a problem, my entity is an
JPA(Hibernate) and I have a Dao class like this

public abstract class GenericDao<K, E> () {
List<E> list() {
some code to return a list.
void persist(E entity) {

public class MyDao extends GenericDao<String, MyDao> {

And I have a service locator as this

public class DaoServiceLocator extends ServiceLcator<xxxx> {
public xxxxx {
return new MyDao();

All these works fine , the list() method works perfectly, but not
persist method, it throws java.lang.NoSuchMethodError when I am
calling factory.myEntityRequest().persist(entityProxy) , any ideas?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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