示例
public class
BeanClass
implements
javax.ejb.EntityBean {
private static
Policy p;
private static
Policy p2;
public void
manageSecurity(){
//..
p = p2.getPolicy();
p2 = p;
Policy p3 = p;
}
//other methods that must implement the interface
}
解决方案
不要访问或修改 java.security.* 对象(Policy、Security、Provier、Principal 和 KeyStore)