Hello,
I'm trying to get rid of errors in my xwiki.log and this post is about
XWiki complaining that XWiki.WikiMacroTemplate has empty ID.
Environment: XWiki iteratively upgraded 2.2 -> 2.3 -> 2.4 -> 2.6 ->
3.0RC1 (there might have been minor version upgrade in-between)
The question is: How should I fix this issue? (remove
XWiki.WikiMacroTemplate? simply add random ID to the document?)
And the actual exception
2011-03-29 17:48:05,389
[
http://host/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin&…]
[
http://host/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin&…]
ERROR ro.DefaultWikiMacroInitializer - Incomplete macro definition in
[name = [WikiMacroTemplate], type = [DOCUMENT], parent = [name = [XWiki],
type = [SPACE], parent = [name = [xwiki], type =[WIKI], parent =
[null]]]], macro id is empty
org.xwiki.rendering.macro.wikibridge.WikiMacroException: Incomplete macro
definition in [name = [WikiMacroTemplate], type = [DOCUMENT], parent =
[name = [XWiki], type = [SPACE], parent = [name = [xwiki], type
= [WIKI], parent = [null]]]], macro id is empty
at
com.xpn.xwiki.internal.macro.DefaultWikiMacroFactory.buildMacro(DefaultWikiMacroFactory.java:133)
at
com.xpn.xwiki.internal.macro.DefaultWikiMacroFactory.createWikiMacro(DefaultWikiMacroFactory.java:99)
at
com.xpn.xwiki.internal.macro.DefaultWikiMacroInitializer.registerMacro(DefaultWikiMacroInitializer.java:224)
at
com.xpn.xwiki.internal.macro.DefaultWikiMacroInitializer.registerMacrosForWiki(DefaultWikiMacroInitializer.java:179)
at
com.xpn.xwiki.internal.macro.DefaultWikiMacroInitializer.registerExistingWikiMacros(DefaultWikiMacroInitializer.java:148)
at
com.xpn.xwiki.internal.macro.DefaultWikiMacroInitializer.registerExistingWikiMacros(DefaultWikiMacroInitializer.java:105)
at
com.xpn.xwiki.internal.macro.RegisterMacrosOnImportListener.onEvent(RegisterMacrosOnImportListener.java:106)
at
org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:278)
at
org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:247)
at
com.xpn.xwiki.plugin.packaging.Package.install(Package.java:606)
at
com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:318)
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:140)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
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
org.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.webdav.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:619)
Regards,
Roman
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Incomplete-macro-definition-XWiki-WikiMac…
Sent from the XWiki- Users mailing list archive at
Nabble.com.