Titlecircular reference (kind of) in init of lucene search provider
Date13-Jun-2005 17:36:21 EEST
Version2.2.21
Submitterajbanck
Bug criticalityBadBug
Browser version
Bug statusClosedBug
PageProvider used
Servlet ContainerTomcat
Operating System
URL
Java version1.4

WikiEngine.initialize initializes several managers. pageManager is first created, later searchManager. SearchManager initializes Lucene, which starts building the index and uses the page provider. Page provider however references the searchmanager as it wants to add pages to the index, which is still null. This should be fixed somehow:

java.lang.NullPointerException at com.ecyrd.jspwiki.providers.CachingProvider.getTextFromCache(CachingProvider.java:449) at com.ecyrd.jspwiki.providers.CachingProvider.getPageText(CachingProvider.java:380) at com.ecyrd.jspwiki.PageManager.getPageText(PageManager.java:171) at com.ecyrd.jspwiki.search.LuceneSearchProvider.initialize(LuceneSearchProvider.java:172) at com.ecyrd.jspwiki.search.SearchManager.initialize(SearchManager.java:66) at com.ecyrd.jspwiki.search.SearchManager.<init>(SearchManager.java:56) at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:495) at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:388) at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:284) at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:240)


Should be fixed in 2.2.22.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 15-Jun-2005 19:29 by 158.228.228.108