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

Velocity error on "Step 4 - Report" of the DW after migrating to 5.4.3

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.4.3
    • Fix Version/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I got an error on Step 4 of the Distribution Wizard after migrating from 4.5.3 to 5.4.3. Marius Dumitru Florea said this happens because the tree that should be loaded on this step was very large. This is the full stacktrace:

      Failed to execute the [velocity] macro
      
      java.lang.OutOfMemoryError: Java heap space
      	at java.util.Arrays.copyOf(Unknown Source)
      	at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
      	at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
      	at java.lang.AbstractStringBuilder.append(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at org.xwiki.rendering.wikimodel.xwiki.xwiki21.javacc.XWikiScanner.macro(XWikiScanner.java:377)
      	at org.xwiki.rendering.wikimodel.xwiki.xwiki21.javacc.XWikiScanner.docElements(XWikiScanner.java:284)
      	at org.xwiki.rendering.wikimodel.xwiki.xwiki21.javacc.XWikiScanner.doParse(XWikiScanner.java:216)
      	at org.xwiki.rendering.wikimodel.xwiki.xwiki21.javacc.XWikiScanner.parse(XWikiScanner.java:51)
      	at org.xwiki.rendering.wikimodel.xwiki.xwiki21.XWikiParser.parse(XWikiParser.java:44)
      	at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:130)
      	at org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:95)
      	at org.xwiki.rendering.internal.macro.DefaultMacroContentParser.parse(DefaultMacroContentParser.java:87)
      	at org.xwiki.rendering.macro.script.AbstractScriptMacro.parseSourceSyntax(AbstractScriptMacro.java:324)
      	at org.xwiki.rendering.macro.script.AbstractScriptMacro.parseScriptResult(AbstractScriptMacro.java:228)
      	at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:307)
      	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:198)
      	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:59)
      	at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:191)
      	at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132)
      	at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87)
      	at org.xwiki.extension.distribution.internal.DistributionScriptService.transform(DistributionScriptService.java:276)
      	at org.xwiki.extension.distribution.internal.DistributionScriptService.renderCurrentStepToXHTML(DistributionScriptService.java:253)
      	at org.xwiki.extension.distribution.internal.DistributionScriptService.renderCurrentStepToXHTML(DistributionScriptService.java:237)
      	at sun.reflect.GeneratedMethodAccessor660.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	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.value(ASTReference.java:567)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                msmeria Manuel Smeria
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: