It works. Thanks!
Date: Wed, 7 Jan 2015 17:45:15 +0100
From: thomas.mortagne(a)xwiki.com
To: users(a)xwiki.org
Subject: Re: [xwiki-users] Error number 4001 in 4: Error while evaluating velocity
template colorThemeInit.vm
Usually when you have an error like this, look at the last "cause". In
this case it's " java.lang.OutOfMemoryError: Java heap space" meaning
that you did not allocated enough memory to XWiki (i.e. to you
application server).
On Wed, Jan 7, 2015 at 5:42 PM, kelly resche <klybzh22(a)live.fr> wrote:
Hi,
i'm new with XWiki. I've just installed the latest version 6.3 using the .deb
package xwiki-enterprise-tomcat7-mysql on an Ununtu 14.04LTS server.
There were no issue during the installation. But when i connect to XWiki for the first
time via the following URL :
http://localhost:8080/xwiki, XWiki starts until 50% and the i
get the following result :
Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while evaluating velocity
template colorThemeInit.vm
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1637)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:243)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at
com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:243)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at
com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.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.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:243)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at
com.xpn.xwiki.internal.template.TemplateManager.access$100(TemplateManager.java:98)
at
com.xpn.xwiki.internal.template.TemplateManager$1.call(TemplateManager.java:670)
at
com.xpn.xwiki.internal.template.TemplateManager$1.call(TemplateManager.java:666)
at com.xpn.xwiki.internal.template.SUExecutor.call(SUExecutor.java:91)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:665)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at
com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:358)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id
[/templates/distribution.vm]
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:262)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at
com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at
com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
... 135 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method
'getColorThemeFromSkinFile' in class org.xwiki.lesscss.LessCompilerScriptService
threw exception java.lang.OutOfMemoryError: Java heap space at
46:/templates/distribution.vm[line 105, column 38]
at
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
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.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
... 142 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at
org.mozilla.javascript.ScriptableObject.createSlot(ScriptableObject.java:2836)
at org.mozilla.javascript.ScriptableObject.getSlot(ScriptableObject.java:2756)
at org.mozilla.javascript.ScriptableObject.putImpl(ScriptableObject.java:2640)
at org.mozilla.javascript.ScriptableObject.put(ScriptableObject.java:492)
at org.mozilla.javascript.IdScriptableObject.put(IdScriptableObject.java:381)
at
org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:2347)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1598)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1592)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_437(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5820)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_439(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5840)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_434(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5741)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_433(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5641)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_507(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6546)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_483(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6303)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_484(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6329)
at
org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
I don't understand where the problem come from. Any help would be appreciated.
Thanks,
Stacy.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users