You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Rakesh K. Cherukuri (JIRA)" <ji...@apache.org> on 2012/12/11 11:09:21 UTC

[jira] [Commented] (JSPWIKI-742) ERROR [com.ecyrd.jspwiki.tags.WikiTagBase] Tag failed: java.lang.NullPointerException

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

Rakesh K. Cherukuri commented on JSPWIKI-742:
---------------------------------------------

JSPWiki : 2.8.3

As part of RCA, found out that PriorityList is using ArrayList internally to maintain the filters. As there is no synchronization in place, there will be concurrent scenario (while adding filters) where there can be a null at one of the index in the ArrayList. This is resulting in NullPointerExceptions for any wiki page view requests.

Attached is a stand alone class that confirms the behavior in PriorityList.
                
> ERROR [com.ecyrd.jspwiki.tags.WikiTagBase] Tag failed: java.lang.NullPointerException
> -------------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-742
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-742
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.3
>         Environment: RHEL_6.1
>            Reporter: RAJESHWARAN
>         Attachments: TestArrayListNPE.java
>
>
> Hello,
> I had used jspwiki2.8.3, i got the following error and the pages were displayed with an empty content.
> After restarting the apache in the site ,the jspwiki pages got displayed with contents and no errors were thrown.I'm sure this error was thrown from jspwiki code. could anyone know about this error?
> ERROR [com.ecyrd.jspwiki.tags.WikiTagBase] Tag failed: java.lang.NullPointerException
>         at com.ecyrd.jspwiki.util.PriorityList.get(PriorityList.java:96) [:]
>         at java.util.AbstractList$Itr.next(AbstractList.java:345) [:1.6.0_26]
>         at com.ecyrd.jspwiki.filters.FilterManager.doPreTranslateFiltering(FilterManager.java:324) [:]
>         at com.ecyrd.jspwiki.WikiEngine.textToHTML(WikiEngine.java:1511) [:]
>         at com.ecyrd.jspwiki.WikiEngine.getHTML(WikiEngine.java:1455) [:]
>         at com.ecyrd.jspwiki.tags.InsertPageTag.doWikiStartTag(InsertPageTag.java:128) [:]
>         at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:89) [:]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira