I'm using the xwiki snippet code to delete spaces. I've had success
with a few of them, but I've run into a problem.
When trying to delete on particular space, I get the following error:
Error number 4001 in 4: Error while parsing velocity page
Rocks.deletespaces Wrapped Exception: Failed to evaluate content with
id deletespaces
Error number 4001 in 4: Error while parsing velocity page
Rocks.deletespaces
Wrapped Exception: Failed to evaluate content with id deletespaces
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page Rocks.deletespaces
Wrapped Exception: Failed to evaluate content with id deletespaces
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:113)
at
com
.xpn
.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:
84)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:272)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:202)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:170)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
438)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
at sun.reflect.GeneratedMethodAccessor224.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
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:619)
at sun.reflect.GeneratedMethodAccessor144.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.ASTIfStatement.render(ASTIfStatement.java:88)
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
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
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:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
94)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
287)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
112)
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:
233)
at
org
.apache
.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org
.apache
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org
.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
697)
at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'delete' in class com.xpn.xwiki.api.Document threw exception
java.lang.OutOfMemoryError: Java heap space @ Rocks.deletespaces6,71?
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
300) 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.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.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
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
178) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
143) at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at
com
.xpn
.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:
84) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:272) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:202) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:170) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderDocument(DefaultXWikiRenderingEngine.java:159) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
438) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:
371) at sun.reflect.GeneratedMethodAccessor224.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
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
178) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
143) at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:619) at
sun.reflect.GeneratedMethodAccessor144.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.ASTIfStatement.render(ASTIfStatement.java:88) 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
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
178) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
143) at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599) at
com.xpn.xwiki.web.Utils.parseTemplate
(Utils.java:124) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) 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:617) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290) at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
94) at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235) at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
287) at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235) at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
112) 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:
233) at
org
.apache
.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191) at
org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128) at
org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102) at
org
.apache
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286) at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org
.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
697) at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:889) at
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690) at
java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: Java heap space
Any ideas?
Sam
Show replies by date