Hello List,
We have just activated statistics in our 1.4.1 xwiki installation and
when accessing the Stats.WebHome page I get the following exception.
Error number 4001 in 4: Error while parsing velocity page Stats.WebHome
Wrapped Exception: Failed to evaluate content with id Web Home
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page Stats.WebHome
Wrapped Exception: Failed to evaluate content with id Web Home
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:231)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.
java:93)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:258)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:182)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:151)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:43
3)
at
com.xpn.xwiki.objects.classes.TextAreaClass.displayView(TextAreaClass.ja
va:163)
at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1407)
at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1387)
at com.xpn.xwiki.api.Document.display(Document.java:940)
at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.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.jav
a:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:88)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.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.ASTIfStatement.render(ASTIfState
ment.java:88)
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.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.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.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.ASTIfStatement.render(ASTIfState
ment.java:88)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.
java:93)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:258)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:182)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:151)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultX
WikiRenderingEngine.java:140)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:42
3)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:608)
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.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.ASTIfStatement.render(ASTIfState
ment.java:88)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:109)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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:596)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:830)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:112)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:471)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244
)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getDocumentStatistics' in class com.xpn.xwiki.api.StatsService
threw exception java.lang.NullPointerException @ Stats.WebHome6,33? at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:286) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203) at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.
java:419) at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpressio
n.java:73) at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDir
ective.java:125) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:88) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117) at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226) at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.
java:93) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:258) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:182) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:151) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:43
3) at
com.xpn.xwiki.objects.classes.TextAreaClass.displayView(TextAreaClass.ja
va:163) at
com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1407) at
com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1387) at
com.xpn.xwiki.api.Document.display(Document.java:940) at
sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.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.jav
a:318) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:88) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.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.ASTIfStatement.render(ASTIfState
ment.java:88) 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.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.SimpleNode.render(SimpleNode.jav
a:318) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.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.ASTIfStatement.render(ASTIfState
ment.java:88) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117) at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226) at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.
java:93) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:258) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:182) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki
RenderingEngine.java:151) at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultX
WikiRenderingEngine.java:140) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:42
3) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117) at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:608) at
sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.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.ASTIfStatement.render(ASTIfState
ment.java:88) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:145) at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.
java:117) at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at
com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:109) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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:596) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:830) at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:112) at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821) at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:471) at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:633) at
org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at
org.mortbay.http.HttpServer.service(HttpServer.java:954) at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244
) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused
by: java.lang.NullPointerException at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsReader.getHqlNameFilterFromScop
e(XWikiStatsReader.java:129) at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsReader.getDocumentStatistics(XW
ikiStatsReader.java:199) at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.getDocumentStatistics(XWi
kiStatsServiceImpl.java:171) at
com.xpn.xwiki.api.StatsService.getDocumentStatistics(StatsService.java:9
0) at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245) 116 more