Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-1031

InternalWikiException - cause and stacktrace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core & storage
    • None

    Description

      JSPWiki throws InternalWikiException if something really bad happenes. Currently InternalWikiException has only a constructor with String parameter, Cause and StackTrace get lost, people wonder what happened (e.g. JSPWIKI-182).

      There should also be constructors with
      InternalWikiException(String message, Throwable cause)

      InternalWikiException extends RuntimeException which only has Throwable constructors since 1.4, probably InternalWikiException was written earlier.

      With Throwable constructor, Tomcat logs the real cause:

      Caused by: org.apache.wiki.api.exceptions.WikiException: JSPWiki: Unable to load and setup properties from jspwiki.properties. Failed to start. Caused by: Failed to instantiate class org.apache.wiki.PageManager; please check log files for better information.
      at org.apache.wiki.WikiEngine.<init>(WikiEngine.java:444)

      Caused by: java.lang.ClassNotFoundException: de.jwi.jspwiki.MyProvider
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)
      at org.apache.wiki.util.ClassUtil.findClass(ClassUtil.java:174)
      at org.apache.wiki.providers.CachingProvider.initialize(CachingProvider.java:151)

      Attachments

        1. InternalWikiException.patch
          11 kB
          Jürgen Weber

        Activity

          People

            Unassigned Unassigned
            weberjn Jürgen Weber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: