You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2016/08/25 04:57:20 UTC
[jira] [Closed] (JSPWIKI-1031) InternalWikiException - cause and
stacktrace
[ https://issues.apache.org/jira/browse/JSPWIKI-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harry Metske closed JSPWIKI-1031.
---------------------------------
Resolution: Fixed
Fixed in 2.10.3-svn-14.
> InternalWikiException - cause and stacktrace
> --------------------------------------------
>
> Key: JSPWIKI-1031
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1031
> Project: JSPWiki
> Issue Type: Bug
> Components: Core & storage
> Reporter: Jürgen Weber
> Attachments: InternalWikiException.patch
>
>
> 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)
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)