Przykład

public class BeanClass implements javax.ejb.EntityBean {
public Object returningMethod () {
//..
return this;
}

//inne metody, które muszą implementować interfejs
}

Rozwiązanie
Unikaj zwracania słowa kluczowego this. Używaj w zamian metody getEJBObject().


public class BeanClass implements javax.ejb.EntityBean {
public Object returningMethod () {
//..
return this.getEJBObject();
}

//inne metody, które muszą implementować interfejs
}