Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1024

Tomcat's Digester tries to use a non-initialized variable causing a NPE

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            rhn-support-csutherl Coty Sutherland
            rhn-support-csutherl Coty Sutherland
            Jan Onderka Jan Onderka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: