示例

public class BeanClass implements javax.ejb.SessionBean {
public String ejbPostCreate () {
//instantiation of bean

return "example primary key";
}

//other methods that must implement the interface
}

解决方案
为方法 ejbPostCreate() 声明 void 返回类型


public class BeanClass implements javax.ejb.SessionBean {
public void ejbPostCreate () {
//instantiation of bean
}

//other methods that must implement the interface
}