org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel threw exception java.lang.StackOverflowError at template/includes/macros.vm[line 1615, column 20]

Atlassian JIRA | Agnes Ro | 5 years ago
  1. 0

    Gliffy has managed to bring down Confluence when errors occur rendering web panels. We should be more robust about how we handle web panel rendering. Here is one example of an exception: {noformat} org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel threw exception java.lang.StackOverflowError at template/includes/macros.vm[line 1615, column 20] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.Foreach.performIteration(Foreach.java:393) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316) 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.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.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:263) 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.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.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.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328) at org.apache.velocity.Template.merge(Template.java:235) at com.atlassian.confluence.util.velocity.VelocityUtils.renderTemplateWithoutSwallowingErrors(VelocityUtils.java:62) at com.atlassian.confluence.util.velocity.VelocityUtils.renderTemplateWithoutSwallowingErrors(VelocityUtils.java:68) at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$StreamingResponseWritingStrategy.renderToResponse(ConfluenceSitemeshDecorator.java:191) at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.applyDecoratorUsingVelocity(ConfluenceSitemeshDecorator.java:149) at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.applyDecorator(ConfluenceSitemeshDecorator.java:89) at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.render(ConfluenceSitemeshDecorator.java:71) at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:33) {noformat} Also see stack trace on CONFDEV-5861

    Atlassian JIRA | 5 years ago | Agnes Ro
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel threw exception java.lang.StackOverflowError at template/includes/macros.vm[line 1615, column 20]
  2. 0

    Velocity Tempalte debugging and Catch exceptions

    Stack Overflow | 3 years ago | sunleo
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class java.util.ArrayList threw exception class java.lang.IndexOutOfBoundsException : Index: 1, Size: 1
  3. 0

    [testng-users] how to use testng and reportng with ant

    Google Groups | 6 years ago | ubuntuuser
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class org.uncommons.reportng.ReportMetadata threw exception class java.net.UnknownHostException : mobiusQA: mobiusQA at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 121#139469434

    GitHub | 1 year ago | idoiamurua
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'combine' in class eu.aliada.rdfizer.pipeline.format.xml.OXPath threw exception java.lang.Error: Unresolved compilation problems: subfield cannot be resolved to a variable Syntax error on tokens, ( expected instead i cannot be resolved to a variable The type of the expression must be an array type but it resolved to int Syntax error on token ";", [ expected i cannot be resolved to a variable Syntax error, insert "]" to complete ArrayAccess Syntax error, insert ")" to complete Expression Syntax error, insert ")" to complete VariableInitializer i cannot be resolved to a variable Syntax error on token ")", ; expected i cannot be resolved to a variable i cannot be resolved to a variable subfield cannot be resolved Syntax error on tokens, Expression expected instead Syntax error on token ",", . expected Syntax error on token "-", -- expected at marcxml.frbr.n3.vm[line 86, column 18]
  6. 0

    testng-users - how to use testng and reportng with ant

    nabble.com | 1 year ago
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in  class org.uncommons.reportng.ReportMetadata threw exception class java.net.UnknownHostException : mobiusQA: mobiusQA at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'getHtml' in class com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel threw exception java.lang.StackOverflowError at template/includes/macros.vm[line 1615, column 20]

      at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException()
    2. Apache Velocity
      Template.merge
      1. org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      4. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
      5. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      6. org.apache.velocity.runtime.directive.Foreach.performIteration(Foreach.java:393)
      7. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
      8. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
      9. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      10. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
      11. org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
      12. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
      13. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
      14. org.apache.velocity.runtime.directive.Parse.render(Parse.java:263)
      15. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
      16. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      17. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
      18. org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
      19. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
      20. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      21. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
      22. org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
      23. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
      24. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
      25. org.apache.velocity.Template.merge(Template.java:328)
      26. org.apache.velocity.Template.merge(Template.java:235)
      26 frames
    3. com.atlassian.confluence
      ConfluenceSitemeshDecorator.render
      1. com.atlassian.confluence.util.velocity.VelocityUtils.renderTemplateWithoutSwallowingErrors(VelocityUtils.java:62)
      2. com.atlassian.confluence.util.velocity.VelocityUtils.renderTemplateWithoutSwallowingErrors(VelocityUtils.java:68)
      3. com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$StreamingResponseWritingStrategy.renderToResponse(ConfluenceSitemeshDecorator.java:191)
      4. com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.applyDecoratorUsingVelocity(ConfluenceSitemeshDecorator.java:149)
      5. com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.applyDecorator(ConfluenceSitemeshDecorator.java:89)
      6. com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.render(ConfluenceSitemeshDecorator.java:71)
      6 frames
    4. Sitemesh
      BaseWebAppDecorator.render
      1. com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:33)
      1 frame