$xwiki not always available?
Thomas Drevon
thomas.drevon at intermedia.uio.no
Thu Jul 19 14:20:21 CEST 2007
Hi!
I've made a panel that displays tags in a tag cloud (size relative to
occurrence). But on a few occasions I get an exception, and I've managed
to pinpoint fairly accurately under what circumstance. The code
involved, that usually works is this:
#set($query = "select elements(prop.list) from BaseObject as obj,
DBStringListProperty as prop where obj.className='XWiki.TagClass' and
obj.id=prop.id.id and prop.id.name='tags'")
#set( $allTags = $xwiki.search($query))
#set( $allTagsSorted = $xwiki.sort($allTags))
If the user is not logged in, and presses the login link in the top left
corner (--> /xwiki/bin/login/XWiki/XWikiLogin), the panel returns the
enclosed exception. After some debugging, it seems that $allTags is not
assigned a value from $xwiki.search($query). This leads me to believe
that $xwiki might not be available from this particular context. Has
anyone else encountered this, or is it an artifact in my environment?
I'm running xwiki v1.1-milestone2, mysql, winxp, tomcat, java5. Both my
db and xwiki installs are pretty fresh and un-tampered with.
best regards :-)
Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exception.txt
Url: http://lists.xwiki.org/pipermail/users/attachments/20070719/b8fa7eb4/attachment-0001.txt
More information about the users
mailing list