[
http://jira.xwiki.org/jira/browse/XWIKI-1885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_19817
]
Vincent Massol commented on XWIKI-1885:
---------------------------------------
I forgot to explain the problem:
My take is that the errors are happening when there are several threads calling
XWikiRadeoxRenderEngine at the same time (note that a new instance of
XWikiRadeoxRenderEngine is created at each render call) . When this happens the
init() method is called. There's a test to check if the filter pipe is
initialized or not but this test isn't thread safe so what happens is that one
thread will start reinitializing the filter pipe. Then the second thread sees a
non null filter pipe and start the rendering. The problem is that the filters
have not finished initializing in the first thread and thus the rendering fails
randomly...
> Sometimes some Radeox macros fail to render and Radeox filter exceptions
> appear in the XWiki logs
> -------------------------------------------------------------------------------------------------
>
> Key: XWIKI-1885
> URL: http://jira.xwiki.org/jira/browse/XWIKI-1885
> Project: XWiki Platform
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.2 M2
> Reporter: Vincent Massol
> Assigned To: Vincent Massol
> Fix For: 1.2 RC1
>
>
> This is the type of error in the log:
> {noformat}
> 10:09:33,704 [http-8080-13] WARN filter.FilterPipe - Filtering
> exception: [EMAIL PROTECTED]
> java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at
> org.radeox.filter.regex.RegexReplaceFilter.filter(RegexReplaceFilter.java:66)
> at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169)
> at
> com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:106)
> at
> com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:72)
> {noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications