Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19781

Syntax and rendering errors when opening the macros picker in CKEditor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Blocker
    • None
    • 13.10.6
    • None
    • Windows 11 Pro 64 bit, Edge 101, using a local instance of XWiki 13.10.6 on Jetty/HQLDB
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Edit a page with CKEditor
      2. On toolbar, click on Insert > Other Macros

      EXPECTED RESULTS

      No warnings/errors are displayed.

      ACTUAL RESULTS

      There are some errors displayed related to SyntaxError and rendering:

      2022-05-30 14:32:28,818 [qtp250370634-105 - http://localhost:1316/xwiki/bin/get/CKEditor/MacroService?outputSyntax=plain&language=en&data=list&syntaxId=xwiki%2F2.1] ERROR o.a.s.h.RequestHandlerBase     - org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'components__org.xwiki.rendering.macro.Macro:': Encountered "<EOF>" at line 1, column 44.
      Was expecting one of:
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
      
              at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:220)
              at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:332)
              at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
              at org.apache.solr.core.SolrCore.execute(SolrCore.java:2646)
              at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:229)
              at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
              at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
              at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
              at org.xwiki.extension.index.internal.ExtensionIndexStore.search(ExtensionIndexStore.java:771)
              at org.xwiki.extension.index.internal.ExtensionIndexStore.search(ExtensionIndexStore.java:684)
              at org.xwiki.extension.index.internal.DefaultExtensionIndex.search(DefaultExtensionIndex.java:99)
              at org.xwiki.extension.script.internal.safe.SafeAdvancedSearchableExtensionRepository.search(SafeAdvancedSearchableExtensionRepository.java:73)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
              at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
              at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
              at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:108)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
              at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
              at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)
              at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
              at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
              at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
              at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
              at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
              at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)
              at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:391)
              at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:264)
              at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)
              at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
              at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)
              at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)
              at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)
              at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
              at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
              at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)
              at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
              at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
              at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
              at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1228)
              at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1365)
              at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1314)
              at com.xpn.xwiki.api.Document.displayDocument(Document.java:775)
              at jdk.internal.reflect.GeneratedMethodAccessor282.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
              at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
              at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
              at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:774)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:747)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:727)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:713)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2522)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2500)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
              at jdk.internal.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:774)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:747)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:727)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:713)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2522)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2500)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
              at jdk.internal.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:774)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:747)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:727)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:713)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2522)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2500)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
              at jdk.internal.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:774)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:747)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:727)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:713)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2522)
              at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:608)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:292)
              at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:115)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
              at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1411)
              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631)
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
              at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
              at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.Server.handle(Server.java:501)
              at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
              at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
              at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
              at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
              at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: org.apache.solr.search.SyntaxError: Cannot parse 'components__org.xwiki.rendering.macro.Macro:': Encountered "<EOF>" at line 1, column 44.
      Was expecting one of:
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
      
              at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:274)
              at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:49)
              at org.apache.solr.search.QParser.getQuery(QParser.java:174)
              at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:209)
              ... 267 more
      Caused by: org.apache.solr.parser.ParseException: Encountered "<EOF>" at line 1, column 44.
      Was expecting one of:
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
      
              at org.apache.solr.parser.QueryParser.generateParseException(QueryParser.java:885)
              at org.apache.solr.parser.QueryParser.jj_consume_token(QueryParser.java:767)
              at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:325)
              at org.apache.solr.parser.QueryParser.Query(QueryParser.java:162)
              at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:131)
              at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:270)
              ... 270 more
      
      2022-05-30 14:32:28,849 [qtp250370634-105 - http://localhost:1316/xwiki/bin/get/CKEditor/MacroService?outputSyntax=plain&language=en&data=list&syntaxId=xwiki%2F2.1] ERROR o.a.v.rendering                - Left side ($extensions.size) of comparison operation has null value at xwiki:CKEditor.MacroService[line 80, column 24]

      The issue could not be reproduced on XWiki 13.10.5 or 14.4.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: