Hi All,
I cannot test xwiki-webdav anymore because XWikiCacheStore throws a null
pointer exception that i cannot figure out. I think this is introduced by a
recent commit, please help me with this. Following is the exception,
<dump>
java.lang.NullPointerException
at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:95)
at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:80)
at
com.xpn.xwiki.store.XWikiCacheStore.<init>(XWikiCacheStore.java:62)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:675)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:652)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:312)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
at
com.xpn.xwiki.plugin.webdav.XWikiDavResourceImpl.getXWikiContext(XWikiDavResourceImpl.java:350)
at
com.xpn.xwiki.plugin.webdav.XWikiDavResourceImpl.<init>(XWikiDavResourceImpl.java:205)
at
com.xpn.xwiki.plugin.webdav.XWikiResourceFactoryImpl.createResource(XWikiResourceFactoryImpl.java:105)
at
com.xpn.xwiki.plugin.webdav.XWikiResourceFactoryImpl.createResource(XWikiResourceFactoryImpl.java:69)
at
com.xpn.xwiki.plugin.webdav.XWikiDavServlet.service(XWikiDavServlet.java:351)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:219)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:738)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:325)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:859)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:391)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
</dump>
In XWikiCacheStore.initCache() method,
CacheFactory cacheFactory = context.getWiki().getCacheFactory();
here, cacheFactory has become null.
I've only found this problem and currently looking into it, if anyone can
help me get over this quickly it would be a big help.
Thanks.
- Asiri