org.apache.velocity.exception.MethodInvocationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Clicking on the 'Full size' link for a Gliffy diagram results in a stacktrace: Cause org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getActionName' in class com.gliffy.confluencePlugin.action.ViewLargeDiagramAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at /templates/gliffy/LargeDiagram.vm\[line 3, column 20] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351) caused by: java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at com.gliffy.confluencePlugin.action.ViewLargeDiagramAction.getText(ViewLargeDiagramAction.java:75) Stack Trace: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getActionName' in class com.gliffy.confluencePlugin.action.ViewLargeDiagramAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at /templates/gliffy/LargeDiagram.vm\[line 3, 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:252) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328)
    via by Jeff Turner,
  • Clicking on the 'Full size' link for a Gliffy diagram results in a stacktrace: Cause org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getActionName' in class com.gliffy.confluencePlugin.action.ViewLargeDiagramAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at /templates/gliffy/LargeDiagram.vm\[line 3, column 20] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351) caused by: java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at com.gliffy.confluencePlugin.action.ViewLargeDiagramAction.getText(ViewLargeDiagramAction.java:75) Stack Trace: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getActionName' in class com.gliffy.confluencePlugin.action.ViewLargeDiagramAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at /templates/gliffy/LargeDiagram.vm\[line 3, 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:252) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328)
    via by Jeff Turner (Unused account),
  • Steps to reproduce: # Install the Atlassian Support Tools via _Confluence Admin > Plugins > Install tab_ (the 2.6.1 version will be the one installed since it's the latest). # In the left corner side of the screen, click in the _Atlassian Support Tools_ link. # You will get the following error in the screen: {code}com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'loadProperties' in class com.atlassian.support.tools.salext.ConfluenceApplicationInfo threw exception java.lang.NoClassDefFoundError: com/cenqua/fisheye/util/StringUtil at /templates/system-info.vm[line 5, column 7] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:99) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'loadProperties' in class com.atlassian.support.tools.salext.ConfluenceApplicationInfo threw exception java.lang.NoClassDefFoundError: com/cenqua/fisheye/util/StringUtil at /templates/system-info.vm[line 5, column 7] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351) caused by: java.lang.NoClassDefFoundError: com/cenqua/fisheye/util/StringUtil at com.atlassian.support.tools.salext.AbstractSupportApplicationInfo.getJVMInputArguments(AbstractSupportApplicationInfo.java:173) caused by: java.lang.ClassNotFoundException: com.cenqua.fisheye.util.StringUtil at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772){code} *Workaround*: # Download the 2.3.4 version directly from https://plugins.atlassian.com. # Upload the jar file manually via _Confluence Admin > Plugins > Install tab > Upload Plugin link_. # Access the _Atlassian Support Tools_ link in the left corner side of the screen and see that it works.
    via by Alyson Reis [Atlassian],
  • GitHub comment 126#73943113
    via GitHub by skwlilac
    ,
  • * Add a Confluence activity streams gadget to a page * Click on "Login and Approve" A system error is returned by the gadget service provider: {noformat} com.atlassian.oauth.serviceprovider.ConsumerInformationRenderException: Could not render consumer information at com.atlassian.oauth.serviceprovider.internal.servlet.authorize.AuthorizationRendererImpl.render(AuthorizationRendererImpl.java:63) caused by: com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'render' in class com.atlassian.oauth.serviceprovider.internal.servlet.authorize.AuthorizationRendererImpl$AuthorizationConsumerRenderer threw exception java.lang.IllegalArgumentException at authorize.vm[line 16, column 35] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:97) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'render' in class com.atlassian.oauth.serviceprovider.internal.servlet.authorize.AuthorizationRendererImpl$AuthorizationConsumerRenderer threw exception java.lang.IllegalArgumentException at authorize.vm[line 16, column 35] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) caused by: java.lang.IllegalArgumentException at java.net.URI.create(URI.java:842) caused by: java.net.URISyntaxException: Illegal character in path at index 144: http://confluence.atlassian.com/rest/gadgets/1.0/g/com.atlassian.streams.confluence:activitystream-gadget/gadgets/conf-activitystream-gadget.xml at java.net.URI$Parser.fail(URI.java:2809) {noformat}
    via by Marlena Compton [Atlassian],
  • This page returns an error when visiting it on CAC after the 4.0 upgrade: [Using the Documentation Theme|http://confluence.atlassian.com/display/DOC/Using+the+Documentation+Theme]. {noformat} java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:203) caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:203) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDisplayableLabel' in class com.atlassian.confluence.plugin.descriptor.web.model.ConfluenceWebLabel threw exception com.atlassian.core.exception.InfrastructureException: Error occurred rendering template content at template/includes/menu-macros.vm[line 137, column 36] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) caused by: com.atlassian.core.exception.InfrastructureException: Error occurred rendering template content at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedContent(VelocityUtils.java:123) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLatestVersionsOfAttachments' in class com.atlassian.confluence.pages.Page threw exception net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at getRenderedContent[line 1, column 15] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) caused by: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201) caused by: net.sf.hibernate.HibernateException: collection was evicted at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3303) {noformat}
    via by Matt Ryall,
  • When i want to view the older-pages on a current page i get the error: Attributes -------------------------- javax.servlet.forward.request_uri: /pages/viewpage.action javax.servlet.forward.context_path: javax.servlet.forward.servlet_path: /pages/viewpage.action javax.servlet.forward.path_info: /500page.jsp javax.servlet.forward.query_string: pageId=34277023 os_securityfilter_already_filtered: true javax.servlet.jsp.jspException: java.lang.RuntimeException: Error rendering template for decorator root com.atlassian.seraph.auth.LoginReason: OK com.atlassian.confluence.security.websudo.MessagesDecoratorFilter__already_filtered__: true atlassian.core.seraph.original.url: /500page.jsp?pageId=34277023 confluence.themecontext: com.atlassian.confluence.themes.ThemeContext@7524d016 javax.servlet.error.status_code: 500 javax.servlet.error.servlet_name: action com.opensymphony.sitemesh.USINGSTREAM: false com.atlassian.labs.botkiller.BotKillerFilter: true com.atlassian.gzipfilter.GzipFilter_already_filtered: true loginfilter.already.filtered: true theme.resource.path: /download/resources/com.refinedwiki.confluence.plugins.theme.original%3Apage41/ com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true Confluence-Request-Time: 1393319267155 javax.servlet.error.message: com.opensymphony.sitemesh.APPLIED_ONCE: true com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true __cleanup_recursion_counter: 0 webwork.valueStack: com.opensymphony.xwork.util.OgnlValueStack@43d9906f com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true javax.servlet.error.exception: java.lang.RuntimeException: Error rendering template for decorator root javax.servlet.error.request_uri: /pages/viewpage.action -------------------------- Parameters -------------------------- pageId : 34277023 caused by: java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186) caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUserFullName' in class com.atlassian.confluence.pages.actions.ViewPageAction threw exception org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.confluence.links.OutgoingLink.destinationSpaceKey; nested exception is net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.links.OutgoingLink.destinationSpaceKey at template/includes/macros-deprecated.vm[line 143, column 22] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) caused by: org.springframework.orm.hibernate.HibernateSystemException: not-null property references a null or transient value: com.atlassian.confluence.links.OutgoingLink.destinationSpaceKey; nested exception is net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.links.OutgoingLink.destinationSpaceKey at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) caused by: net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.links.OutgoingLink.destinationSpaceKey at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1302) The whole log i can't upload. I hope this is enough and hope to hear soon from you. Thanks
    via by Danny van den Berg,
    • org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getActionName' in class com.gliffy.confluencePlugin.action.ViewLargeDiagramAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at /templates/gliffy/LargeDiagram.vm\[line 3, column 20] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351)
    No Bugmate found.