incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-164) NullPointerException in com.ecyrd.jspwiki.util.WatchDog
Date Mon, 28 Jan 2008 10:23:34 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563109#action_12563109
] 

Harry Metske commented on JSPWIKI-164:
--------------------------------------

I spent quite a few hours now, not yet solved, but the following observations:

The NPE is just a result of the following excption:

SEVERE: Exception starting filter WikiJSPFilter
java.lang.NoClassDefFoundError: ReferringPagesPlugin (wrong name: com/ecyrd/jspwiki/plugin/ReferringPagesPlugin)
        at java.lang.ClassLoader.defineClassImpl(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:256)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:589)
        at java.net.URLClassLoader.access$400(URLClassLoader.java:123)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1034)
        at java.security.AccessController.doPrivileged(AccessController.java:279)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:491)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:629)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:328)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:595)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1267)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
        at com.ecyrd.jspwiki.util.ClassUtil.findClass(ClassUtil.java:120)
        at com.ecyrd.jspwiki.plugin.PluginManager.findPluginClass(PluginManager.java:279)
        at com.ecyrd.jspwiki.plugin.PluginManager.executeParse(PluginManager.java:999)
        at com.ecyrd.jspwiki.parser.PluginContent.executeParse(PluginContent.java:191)
        at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleHyperlinks(JSPWikiMarkupParser.java:1407)
        at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleOpenbracket(JSPWikiMarkupParser.java:2203)
        at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parseToken(JSPWikiMarkupParser.java:2725)
        at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.fillBuffer(JSPWikiMarkupParser.java:2557)
        at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parse(JSPWikiMarkupParser.java:2778)
        at com.ecyrd.jspwiki.WikiEngine.textToHTML(WikiEngine.java:1606)
        at com.ecyrd.jspwiki.WikiEngine.scanWikiLinks(WikiEngine.java:1510)
        at com.ecyrd.jspwiki.ReferenceManager.updatePageReferences(ReferenceManager.java:179)
        at com.ecyrd.jspwiki.ReferenceManager.initialize(ReferenceManager.java:284)
        at com.ecyrd.jspwiki.WikiEngine.initReferenceManager(WikiEngine.java:667)
        at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:569)
        at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:386)
        at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:334)
        at com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:55)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
...............

Very strange to me, so I started comparing different JSPWiki instances, switched JDK levels,
checked permissions, replaced repositories, nothing helped.
I finally ended up deleting all pages in the repository that have [{ReferringPagesPlugin}]
in them, and cleaning the JSPWiki work directory. Then JSPWiki finally starts up.

Now what is wrong with the ReferringPagesPlugin ?!! 
Several other plugins work fine (RecentChanges, ReferredPages, CurrentTime), but if I create
a page that has [{ReferringPagesPlugin}] in it, I get the above exception when I try to save
the page.
If  I use the fully qualified name (com.ecyrd.jspwiki.plugin.ReferringPagesPlugin), it works
fine.

I'm lost for now, but will continue to investigate the next few days, if any of you has hints.........



> NullPointerException in com.ecyrd.jspwiki.util.WatchDog
> -------------------------------------------------------
>
>                 Key: JSPWIKI-164
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-164
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.6.1
>         Environment: z/OS 1.8
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390x-64 j9vmmz6423-20071007 (JIT enabled)
> Tomcat 5.5.17
> JSPWiki 2.6.1-cvs-9
>            Reporter: Harry Metske
>
> I can successfully run JSPWiki 2.6.1 (all releases) on Linux with Sun JDK 5, but on an
IBM JDK on z/OS JSPWiki does not startup.
> The stdout shows the following NPE's :
> Starting up background thread: JSPWiki Lucene Indexer.                              
                         
> Starting up background thread: WatchDog for 'JSPWiki'.                              
                         
> Starting up background thread: JSPWiki Lucene Indexer.                              
                         
> Background thread error: (stack trace follows)                                      
                         
> java.lang.NullPointerException                                                      
                         
>  at com.ecyrd.jspwiki.util.WatchDog.enterState(WatchDog.java:231)                   
                         
>  at com.ecyrd.jspwiki.search.LuceneSearchProvider$LuceneUpdater.backgroundTask(LuceneSearchProvider.java:711)

>  at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:135)  
                         
> Exception in thread "JSPWiki Lucene Indexer" com.ecyrd.jspwiki.InternalWikiException
                         
>  at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:171)  
                         
> Background thread error: (stack trace follows)                                      
                         
> java.lang.NullPointerException                                                      
                         
>  at com.ecyrd.jspwiki.util.WatchDog.enterState(WatchDog.java:231)                   
                         
>  at com.ecyrd.jspwiki.search.LuceneSearchProvider$LuceneUpdater.backgroundTask(LuceneSearchProvider.java:711)

>  at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:135)  
                         
> Exception in thread "JSPWiki Lucene Indexer" com.ecyrd.jspwiki.InternalWikiException
                         
>  at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:171)  
                         
> Background thread error: (stack trace follows)                                      
                         
> java.lang.NullPointerException                                                      
                         
>  at com.ecyrd.jspwiki.util.WatchDog$WatchDogThread.backgroundTask(WatchDog.java:375)
                         
>  at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:135)  
                         
> Exception in thread "WatchDog for 'JSPWiki'" com.ecyrd.jspwiki.InternalWikiException
                         
>  at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:171)
> I'm not quite sure if this is a JVM bug or a JSPWiki bug.
> I ran some additional debug-versions of JSPWiki, these showed that more static class
variables, for instance c_kennel was null at line 375.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message