示例

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

//other methods that must implement the interface
}

解决方案
避免返回 this。改用 getEJBObject()。


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

//other methods that must implement the interface
}