com.xpn.xwiki.XWikiException: 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

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 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
via XWiki.org JIRA by Todd Sherman, 1 year ago
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getFileItems' in class com.xpn.xwiki.plugin.fileupload.FileUploadPluginApi threw exception java.lang.NullPointerException @ <unknown template>[3,42]
via XWiki.org JIRA by Todd Sherman, 1 year ago
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getFileItems' in class com.xpn.xwiki.plugin.fileupload.FileUploadPluginApi threw exception java.lang.NullPointerException @ <unknown template>[2,42]
via XWiki.org JIRA by Erwan Arzur, 1 year ago
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'get' in class com.xpn.xwiki.api.Document threw exception class java.lang.NullPointerException : null
via XWiki.org JIRA by Melv Ng, 1 year ago
Error number 4001 in 4: Error while parsing velocity page MyTestSpace.WebHome Wrapped Exception: Invocation of method 'delete' in class com.xpn.xwiki.api.Document threw exception class java.lang.NullPointerException : null
com.xpn.xwiki.XWikiException: 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
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1045)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1017)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:98)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:153)
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 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at java.lang.Thread.run(Thread.java:595)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.