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
13:47:50,211 ERROR http-9080-2 http://myHost:9080/xwiki/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2F… SimpleLog4JLogSystem:logVelocityMessage:154 - Method sort threw exception for reference $xwiki in template XWiki.XWikiLogin at [6,24]
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'sort' in class com.xpn.xwiki.api.XWiki threw exception java.lang.NullPointerException @ XWiki.XWikiLogin[6,31]
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:229)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:161)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:132)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:366)
at com.xpn.xwiki.objects.classes.TextAreaClass.displayView(TextAreaClass.java:165)
at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1265)
at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1245)
at com.xpn.xwiki.api.Document.display(Document.java:864)
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1249)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1218)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:491)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1249)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1218)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:491)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1249)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1218)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:98)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:159)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at java.util.Collections.sort(Collections.java:116)
at com.xpn.xwiki.api.XWiki.sort(XWiki.java:1676)
at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
... 99 more
Resend
---------- Forwarded message ----------
From: Lee Meador <lee(a)leemeador.com>
Date: Jul 16, 2007 2:48 PM
Subject: External link to same server
To: xwiki-users(a)objectweb.org
The links documentation tells how to add a link to another wiki page and a
link to a URL like http://yahoo.com
I would like to link to a URL that isn't inside the xwiki application but is
on the same server without putting in the hostname or ip address. If I was
doing this in html, I would use "<a href="/otherapp/home">Other App</a>.
I tried the form [/otherapp/home] and simply /otherapp/home but those don't
generate the right link. (The first comes out as a link to an xwiki page.
The second comes out as plain text.)
Is there a way to do this?
Thanks.
--
-- Lee Meador
--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com
I already tried to post this question earlier via the ObjectWeb Sympa
interface, but did not see it back in the archive list, nor did I get a
e-mail confirmation. So please excuse me if it is posted twice now.
I am currently evaluating XWiki for deployment in my company. So far
everything looks great, but I ran into a blocking issue. I have setup
XWiki to authenticate with LDAP, which is a requirement for us. The user
names provided by our LDAP server all have dots in them, like
'eric.ter.haar'. XWiki seems to have a problem with this. When login in
for the first time it creates a new user name that is equal to the part
after the last dot, e.g., 'haar'. And it creates a space with the other
part, like 'eric.ter'. The next login fails but without any notice.
Does anyone know how to get around this?
Thanks,
Eric
Oi,
Simple question: is that possible? Or are security manager
configurations (Tomcat Sandboxed) make impossible to tune to run current
XWiki (1.0)?
[]s, Fernando Lozano
Hi there,
This is a silly question, but I can't find anywhere on xwiki.org which
is the sandbox login and password. But the xwiki.org registration states
we should not register to use the Sandbox.
[]s, Fernando Lozano
Hi, I just switched from MediaWiki and installed XWiki 1.1m3, and I found
section editing and collaborative editing one page in xwiki is not so well
supported compared with MediaWiki. And I have several questions:
(1) Instead of using h2 tag to automatically add a section editing icon,
could I manually tag a paragraph as a section and edit it?
(2) Even if I divide the whole page into several sections with h2 tag, when
different users edit different sections in one page, xwiki still indicates
someone locks the page, is it possible to get smaller lock granularity and
lock just the section rather than the whole page?
I think wiki is a collaborative tool, and editing one page in the same time
is a very important functionality and should be well
supported.Anysuggestion is appreciated, thanks.
Regards,
Hi,
I'm about to modify the SVN externals definition for trunks-users so
that they point to our own XWiki readonly SVN repo instead of
pointing to the OW repo as there are issues with it.
If you have checked out trunks-users, then do a svn update once I've
made the change. Hopefully that'll just work. If not, you might need
to do a new checkout.
Sorry for that
Thanks
-Vincent
Hi Vincent,
This feature isn't implemented. Is that something Mediawiki does?
MediaWiki does not support manually annotating a section, but MediaWiki will
automatically divide all html head titles(h1, h2 ...) into a section, so the
granularity of a page is relatively small, and conflict will happen
rarely, while in Xwiki, only " 1.1" tag will generate a section to edit.
This is a bug. Would you mind creating a JIRA issue for it? (in the
> XWiki Platform project - http://jira.xwiki.org)
Issue created.
http://jira.xwiki.org/jira/browse/XWIKI-1531
Regards,
Yue
Hi Brandon,
Your idea sounds good. I'm gonna try it to see if it works on local configuration. If not I will have to do all the tests on our server and that what I don't want.
Thanks and Bye
If you're working local, that could be why.
I've never tried this setup extensively myself; but I have known the hosts file to work in certain circumstances for the same thing (using a name to access an IP address).
Have you considered using something like Winproxy to provide DNS services? There is usually a free trial available as well, so you needn't pay to test the scenario.
-----Original Message-----
From: diaga(a)nomade.fr [mailto:diaga@nomade.fr]
Sent: 23 July 2007 12:01
To: xwiki-users
Subject: RE: [xwiki-users] Virtual wiki
Hi Tim,
Thank you for your answer. I was afraid that the only solution is using DNS. But at least, I am sure now that this is the only solution.
Bye
Diaga,
I had the same problem and the way I solved it, and only way I know, is having a DNS. Look into the archive for the advice I recieved. Also, make sure you granted the rights for both databases on your relational database.
Tim
________________________________
From: diaga(a)nomade.fr [mailto:diaga@nomade.fr]
Sent: Thu 7/19/2007 10:56 AM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] Virtual wiki
Hi,
I was trying to create two virtual wikis but this is not working. I used apache and the hosts file of windows to make virtual hosts pointing on the xwiki controller. I have no DNS, I am working on local. In the near futur, I will have an pûbmlic IP adresse and no DNS or subdomain. I am a little confuse. If someone can help because I am really lost.
Thanks a lot, bye
------------------------ ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! --------------- Découvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en cliquant ici http://alicebox.fr Soumis à conditions.
------------------------ ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! ---------------
Découvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en cliquant ici http://alicebox.fr
Soumis à conditions.
Lets say I have this 2 line text file called Hello.txt.
Hello world.
goodbye world.
How can I display the contents of this file on a page? I believe I can do it
with page.setTextArticle(article);. However, I am a newbie to xwiki and I
am still in the dark. What is the full code snippet to use?
Thanks in advance.
carlos