Re: [xwiki-users] Failed to execute macro: include
Hi, Usually, you'd want to look at the "Caused by [...]" line of the error log. In this particular case, it's: Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 Dan On Tue, 2010-07-27 at 20:52 +0200, Gerritjan Koekkoek wrote: > Hi, > > Is there a smart way to find the error causing a "Failed to execute macro: > include" > When I click details of the error it displays a whole page of errorlines > ending with > ... 91 more > I have the feeling important information is missing. > > for experts; the error codes i see; > org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for > Document [CategorySheet] > at > org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:143) > at > org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:49) > at > org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175) > at > org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120) > at > org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72) > at > com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5696) > at > com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671) > at > com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:569) > at > com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:583) > at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475) > at sun.reflect.GeneratedMethodAccessor265.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.ASTSetDirective.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:191) > at > org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156) > at > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) > at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710) > at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631) > at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657) > at sun.reflect.GeneratedMethodAccessor142.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.re
[xwiki-users] Failed to execute macro: include
Hi, Is there a smart way to find the error causing a "Failed to execute macro: include" When I click details of the error it displays a whole page of errorlines ending with ... 91 more I have the feeling important information is missing. for experts; the error codes i see; org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for Document [CategorySheet] at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:143) at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:49) at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175) at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5696) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:569) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:583) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475) at sun.reflect.GeneratedMethodAccessor265.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.ASTSetDirective.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:191) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657) at sun.reflect.GeneratedMethodAccessor142.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:191) at org.xwiki.velocity.internal.Defau
Re: [xwiki-users] rename database
On 07/26/2010 06:18 PM, Maslak Jr., Michael wrote: > Is there a restriction that the database be named xwiki? I renamed the > database to xwiki_old and changed the URL in the database configuration file > to : > name="connection.url">jdbc:mysql://localhost/xwiki_old?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8&sessionVariables=sql_mode='' Try to change the xwiki.db property in WEB-INF/xwiki.cfg -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users