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 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 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 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 Vincent Massol, 1 year ago
Error number 4001 in 4: Error while parsing velocity page xwiki:WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki
via XWiki.org JIRA by Arnaud Héritier, 1 year ago
Error number 4001 in 4: Error while parsing velocity page xwiki:Social.Developer Documentation Activity Stream Wrapped Exception: Failed to evaluate content with id Developer Documentation Activity Stream
via XWiki.org JIRA by Nikolay, 1 year ago
Error number 4001 in 4: Error while parsing velocity page XWiki.XWikiPreferences Wrapped Exception: Failed to evaluate content with id XWiki Preferences
java.lang.NullPointerException: 	at com.xpn.xwiki.render.DefaultVelocityManager.getVelocityContext(DefaultVelocityManager.java:84)	at com.xpn.xwiki.doc.XWikiDocument.restoreContext(XWikiDocument.java:7343)	at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2901)	at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2768)	at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2717)	at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2694)	at com.xpn.xwiki.api.Object.get(Object.java:68)	at sun.reflect.GeneratedMethodAccessor237.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.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.SimpleNode.render(SimpleNode.java:342)	at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:330)	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)	at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)	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.ASTBlock.render(ASTBlock.java:72)	at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)	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.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:228)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1728)	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:839)	at sun.reflect.GeneratedMethodAccessor144.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.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:228)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1728)	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:839)	at sun.reflect.GeneratedMethodAccessor144.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.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.SimpleNode.render(SimpleNode.java:342)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791)	at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1728)	at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:839)	at sun.reflect.GeneratedMethodAccessor144.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.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:228)	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)	at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791)	at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241)	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)	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:707)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)	at org.eclipse.jetty.server.Server.handle(Server.java:349)	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884)	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)	at java.lang.Thread.run(Unknown Source)