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

Get exception Unable to retrieve gadget xml. HTTP error 504 when adding Confluence gadget to JIRA dashboard

    XMLWordPrintable

Details

    Description

      After user add a Confluence: News gadget URL to the gadget directory in JIRA, we get the following stack trace:

      013-10-09 15:48:01,685 http-bio-8080-exec-22 ERROR admin 947x685x1 xa23yq 10.60.2.145 /rest/config/1.0/directory [directory.internal.rest.DirectoryResource] DirectoryResource: POST rejected: could not parse gadget at http://10.60.2.116:8090/conf/rest/gadgets/1.0/g/com.atlassian.confluence.plugins.gadgets:gadget-search/gadgets/gadget-search.xml
      com.atlassian.gadgets.GadgetParsingException: com.atlassian.gadgets.GadgetParsingException: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 504
      	at com.atlassian.gadgets.directory.internal.impl.ConfigurableExternalGadgetSpecDirectoryEntryProvider.validateGadgetSpec(ConfigurableExternalGadgetSpecDirectoryEntryProvider.java:139)
      	at com.atlassian.gadgets.directory.internal.impl.ConfigurableExternalGadgetSpecDirectoryEntryProvider.access$100(ConfigurableExternalGadgetSpecDirectoryEntryProvider.java:31)
      	at com.atlassian.gadgets.directory.internal.impl.ConfigurableExternalGadgetSpecDirectoryEntryProvider$1.doInTransaction(ConfigurableExternalGadgetSpecDirectoryEntryProvider.java:76)
      ...
      Caused by: com.atlassian.gadgets.GadgetParsingException: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 504
      	at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:161)
      	at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:78)
      ...
      Caused by: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 504
      	at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.fetchObjectAndCache(DefaultGadgetSpecFactory.java:127)
      ...
      

      Steps to reproduce the problem

      1. Add an application link between JIRA and Confluence.
      2. Copy over the Confluence: News gadget URL to JIRA gadget directory.
      3. Get the following error message:
      4. When remove the gadget get the following error message:

      Finding:

      Tested in JIRA 6.1 and Confluence 5.3

      Temporary Workaround:

      Please try the following steps and see you able to get any results:

      • Go to Confluence General Configuration > Feature Settings
      • Un-check the Compress HTTP Responses
      • Refresh both instance web browser and add the confluence gadgets to JIRA again.

      Attachments

        1. error.JPG
          error.JPG
          106 kB
        2. remove.JPG
          remove.JPG
          83 kB

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              ckimloong John Chin
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: