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

User Macro in cluster environment is broken due cache messageBundles

      Steps to reproduce:

      1. Install Confluence 5.4 clustered.
      2. Go to Cog Icon > Confluence Admin > User Macros
      3. After saving a default macro, you get the following stack-trace:
        013-12-19 15:57:23,966 WARN [scheduler_Worker-10] [plugins.macrousage.extractor.MacroExtractor] processXhtml Exception extracting macro usages on 90394406 
        com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (java.lang.IllegalArgumentException: Resource is not serializable: Key=https://CONFLUENCE_WEB/rest/gadgets/1.0/g/com.atlassian.confluence.plugins.gadgets:gadget-search/gadgets/gadget-search.xml.all_ALL, Value=<messagebundle>
        <msg name="gadget.common.invalid.period">Invalid period ''{0}'' specified</msg>
        

      You may also find the error message varies slightly. Other symptoms include the Macro Browser refusing to open after being clicked.

      Workaround:

      To resolve this, you must configure to be a local cache. Edit confluence-home/config/confluence-coherence-cache-config-clustered.xml, and place the following just before the closing </caching-scheme-mapping> tag:

      <cache-mapping>
          <cache-name>com.atlassian.gadgets.renderer.internal.cache.messageBundles</cache-name>
          <scheme-name>local:default</scheme-name>
      </cache-mapping>
      

      Save the file, and restart that node. You will need to make this change to each node's configuration file for the workaround to be 100% effective.

            [CONFSERVER-32059] User Macro in cluster environment is broken due cache messageBundles

            Minh Tran added a comment -
            Atlassian update

            Thank you for taking the time to raise, comment or vote on this Bug. Currently this bug indicates that it only impacts a version of Confluence which is no longer in support, therefore we are closing this issue as Timed Out.
            If this issue is still impacting you on a recent version please feel free to comment with the affected version. Any further details you may be able to provide regarding reproduction or impact of this issue may help us better address this issue.
            Thanks again.
            Regards,
            Confluence Development

            Minh Tran added a comment - Atlassian update Thank you for taking the time to raise, comment or vote on this Bug. Currently this bug indicates that it only impacts a version of Confluence which is no longer in support, therefore we are closing this issue as Timed Out. If this issue is still impacting you on a recent version please feel free to comment with the affected version. Any further details you may be able to provide regarding reproduction or impact of this issue may help us better address this issue. Thanks again. Regards, Confluence Development

              Unassigned Unassigned
              wzanchet William Zanchet (Inactive)
              Affected customers:
              6 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: