LinkageError using velocity in plugin

XMLWordPrintable

    • Severity 1 - Critical
    • 1

      If a macro uses velocity to render a template (see: https://developer.atlassian.com/confdev/development-resources/confluence-architecture/confluence-internals/velocity-template-overview/rendering-velocity-templates-in-a-macro) a 'loader constraint' error is returned.

      java.lang.LinkageError: loader constraint violation: when resolving method "com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplate(Ljava/lang/String;Lorg/apache/velocity/context/Context;)Ljava/lang/String;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, com/atlassian/confluence/plugins/wowplugin/ItemMacro, and the class loader (instance of org/apache/catalina/loader/WebappClassLoader) for the method's defining class, com/atlassian/confluence/util/velocity/VelocityUtils, have different Class objects for the type org/apache/velocity/context/Context used in the signature
      

            Assignee:
            Unassigned
            Reporter:
            m@ (Inactive)
            Votes:
            11 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: