I looked a little closely and there is something weird, there is a
request in your XWikiContext but it does not return any servlet path
according to your stack trace.
If it's running in it's own thread how do you create the XWikiContext ?
On Thu, Dec 18, 2008 at 1:40 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
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
--
Thomas Mortagne