Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via XWiki.org JIRA by Paul, 1 year ago
Error number 4001 in 4: Error while parsing velocity page /templates/menuview.vm Wrapped Exception: Failed to evaluate content with id [/templates/menuview.vm]
via XWiki.org JIRA by Hannes Schmoch, 1 year ago
Error number 4001 in 4: Error while parsing velocity page /templates/javascript.vm Wrapped Exception: Failed to evaluate content with id [/templates/javascript.vm]
via XWiki.org JIRA by Adrian Talens, 1 year ago
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'parseTemplate' in class com.xpn.xwiki.api.XWiki threw exception class java.lang.StackOverflowError : null
via XWiki.org JIRA by Freeman Jackson, 1 year ago
Error number 4001 in 4: Error while parsing velocity page /templates/menuview.vm Wrapped Exception: Failed to evaluate content with id [/templates/menuview.vm]
via XWiki.org JIRA by Martin Vanek, 9 months ago
Error number 4001 in 4: Error while parsing velocity page XWiki.XWikiPreferences Wrapped Exception: Failed to evaluate content with id XWiki Preferences
via XWiki.org JIRA by Luis Arias, 1 year ago
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getDocument' in class com.xpn.xwiki.api.XWiki threw exception class java.lang.StringIndexOutOfBoundsException : String index out of range: -8
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/menuview.vm
Wrapped Exception: Failed to evaluate content with id [/templates/menuview.vm]	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:122)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1778)	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:836)	at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:195)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:160)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1778)	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:836)	at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:195)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:160)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1840)	at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:153)	at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:85)	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250)	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)	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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)	at org.mortbay.jetty.Server.handle(Server.java:326)	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)