-
Bug
-
Resolution: Done
-
Critical
-
JWS 5.0_RHEL DR1
-
None
This was discovered when trying to use the CRYPT feature of tomcat-vault. After setting up the vault, it's possible to get a NPE and failed vault initialization if an exception occurs while replacing a system property.
INFO [main] org.apache.tomcat.vault.security.vault.PicketBoxSecurityVault.init null java.lang.ExceptionInInitializerError at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:279) at org.apache.catalina.startup.Catalina.load(Catalina.java:540) at org.apache.catalina.startup.Catalina.load(Catalina.java:656) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:306) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:491) Caused by: java.lang.NullPointerException at org.apache.tomcat.util.digester.Digester.replaceSystemProperties(Digester.java:358) at org.apache.tomcat.util.digester.Digester.<clinit>(Digester.java:112) ... 9 more
The NPE hides the actual error.