Hi,
Is your indexer running in it's own thread ?
In that case the problem is that when you ask for URL XWiki need the
current URL for some informations it does not have in its
configuration like the current host or protocol or even the port to be
able to recreate the URL as expected.
Are you sure it worked fine in 1.6 ?
On Tue, Dec 16, 2008 at 1:09 PM, Juergen Lorenz Simon <simon(a)webtecc.com> wrote:
Hi,
I'm writing an indexer plugin for XWiki and recently found a problem
when trying to obtain the external document url:
java.lang.NullPointerException
at com.xpn.xwiki.XWiki.getServletPath(XWiki.java:4317)
at
com
.xpn
.xwiki
.web.XWikiServletURLFactory.addServletPath(XWikiServletURLFactory.java:
208)
at
com
.xpn
.xwiki
.web.XWikiServletURLFactory.createURL(XWikiServletURLFactory.java:178)
at
com
.xpn
.xwiki
.web
.XWikiServletURLFactory.createExternalURL(XWikiServletURLFactory.java:
273)
at com.xpn.xwiki.doc.XWikiDocument.getExternalURL(XWikiDocument.java:
925)
at
com
.kontrast
.vodafone
.portal
.xwiki.plugins.indexer.IndexUpdater.runMainLoop(IndexUpdater.java:180)
at
com
.kontrast
.vodafone
.portal.xwiki.plugins.indexer.IndexUpdater.run(IndexUpdater.java:116)
I updated to XWiki version 1.7-SNAPSHOT recently. Before that I didn't
experience this. Can anyone shed some light on this?
Thanks,
J.L.Simon
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne