Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-40148

LinkageError using velocity in plugin

    XMLWordPrintable

Details

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: