Hi,
I have to excuse myself on this error.
When you restart Tomcat it works, there seems to be a known issue on importing
macro's.
THanks anyway
Op 16 nov 2010, om 23:10 heeft Ricardo Rodriguez [eBioTIC.] het volgende geschreven:
Hi!
Gerritjan Koekkoek wrote:
Hello
I've imported the MapMacro into my test XWIKI.
If I go to the page imported XWiki/MapMacro the 2 examples show each 2 errors.
1. Failed to execute the [code] macro
2. Not a inline macro
In the details of error 1 I see a out-of-memory error, i'm running on Mac OS X
10.6.5, Tomcat 6.0.29, mySQL 5.1.50 and XWiki 2.5.1.32531
Perhaps you having two different errors. Please, check:
http://jira.xwiki.org/jira/browse/XWIKI-4048
and
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError
It is working for me in a XE 2.7-SNAPSHOT.32908 (Mac OS X 10.5.8, Tomcat
6.0.18, MySQL 5.1.51)
with
export CATALINA_OPTS="-Xmx256m -Xms256m"
export JAVA_OPTS="-Xmx256m -Xms256m"
Details on error 1;
org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content at
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:101) at
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:47) at
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:124) at
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:55) at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:172)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:117)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7405) at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7355) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:831) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:782) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:874) at
com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537) at
sun.reflect.GeneratedMethodAccessor388.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:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493) at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at
org.apache.velocity.runtime.parser.node.ASTSetDirect
ive.render(ASTSetDirective.java:142) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at
com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1862) at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896) at
sun.reflect.GeneratedMethodAccessor155.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:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247) at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) 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.SimpleNode.render(SimpleNode.java:336) at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1910) at
com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1832) at
com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117) 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.web.ActionFilter.doFilter(ActionFilter.java:129) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.plugin.we
bdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.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:127) 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:298) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at
java.lang.Thread.run(Thread.java:680) Caused by: Traceback (most recent call last): File
"<string>", line 3, in <module> File "<string>",
line 3, in <module> File "__pyclasspath__/pygments/lexers/__init__.py",
line 198, in guess_lexer File "__pyclasspath__/pygments/lexers/__init__.py",
line 144, in _iter_lexerclasses File
"__pyclasspath__/pygments/lexers/__init__.py", line 32, in _load_lexers
java.lang.OutOfMemo
ryError: PermGen space java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: PermGen
space at org.python.core.PyException.fillInStackTrace(PyException.java:70) at
java.lang.Throwable.<init>(Throwable.java:181) at
java.lang.Exception.<init>(Exception.java:29) at
java.lang.RuntimeException.<init>(RuntimeException.java:32) at
org.python.core.PyException.<init>(PyException.java:46) at
org.python.core.PyException.<init>(PyException.java:43) at
org.python.core.Py.JavaError(Py.java:481) at
org.python.core.PyTableCode.call(PyTableCode.java:168) at
org.python.core.PyBaseCode.call(PyBaseCode.java:134) at
org.python.core.PyFunction.__call__(PyFunction.java:317) at
pygments.lexers$py._iter_lexerclasses$8(__pyclasspath__/pygments/lexers/__init__.py:146)
at pygments.lexers$py.call_function(__pyclasspath__/pygments/lexers/__init__.py) at
org.python.core.PyTableCode.call(PyTableCode.java:165) at
org.python.core.PyGenerator.__iternext__(PyGenerator.java:149) at
org.python.core.PyGenerator.__iternext__(PyGenerator.java:131) at
pygments.lexers$py.guess_lexer$10(__pyclasspath__/pygments/lexers/__init__.py:206) at
pygments.lexers$py.call_function(__pyclasspath__/pygments/lexers/__init__.py) at
org.python.core.PyTableCode.call(PyTableCode.java:165) at
org.python.core.PyBaseCode.call(PyBaseCode.java:301) at
org.python.core.PyFunction.function___call__(PyFunction.java:376) at
org.python.core.PyFunction.__call__(PyFunction.java:371) at
org.python.pycode._pyx8.f$0(<string>:5) at
org.python.pycode._pyx8.call_function(<string>) at
org.python.core.PyTableCode.call(PyTableCode.java:165) at
org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1253) at
org.python.core.Py.exec(Py.java:1297) at
org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206) at
org.xwiki.rendering.internal.parser.pygments.PygmentsParser.getLexer(PygmentsParser.java:267)
at
org.xwiki.rendering.internal.parser.pygments.PygmentsParser.highlight(PygmentsParser.java:222)
at org.xwiki.rendering.internal.parser.pygments.PygmentsParser.hi
ghlight(PygmentsParser.java:193) at
org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:139) at
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:98) ... 91
more Caused by: java.lang.OutOfMemoryError: PermGen space
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Ricardo RodrÃguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users