一段时间后,有些东西刷新了系统属性

问题描述

我们有带有Tomcat且已部署WAR应用程序的CentOS服务器。

半年没有问题后,我们遇到了一个例外:

org.bouncycastle.cms.CMSAttributeTableGenerationException: Validation Failed for the target,%CERT INFO HERE% 
  For online validation by CRLDP parameter 'com.sun.security.enableCRLDP' (Oracle) 
  or 'com.ibm.security.enableCRLDP' (IBM) must be set 'true' to enable 
  or 'ocsp.enable' must be set 'true' (OCSP),or CRL passed for offline validation

它表示系统属性com.sun.security.enableCRLDPcom.ibm.security.enableCRLDPocsp.enable之一未设置为true,但关键是WAR应用正在将这些道具设置为开始

System.setProperty("com.sun.security.enableCRLDP","true");
log.debug("Property com.sun.security.enableCRLDP enabled");

System.setProperty("ocsp.enable","true");
log.debug("Property ocsp.enable enabled");

tomcat重新启动后,它开始正常运行。 因此,看起来某物或某人由于某种原因改变了CentOS中的系统属性

我100%确信tomcat和CentOS不会在异常发生之前重新启动,没有任何内容部署到服务器。

经过一段时间或某些过程后,如何重置系统道具? 有什么机制可以避免这种情况吗?

P.S。我知道我可以将此props认设置为true,但是我想先尝试构建独立的解决方案。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)