com.atlassian.gadgets.GadgetParsingException: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 504

Atlassian JIRA | Väinö Ala-Härkönen | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    After a fresh 4.1.2 install with no projects added, going to the user profile summary tab for a normal user (in jira-users) causes an exception that is shown on the web UI. An example from the logs: 2010-08-13 10:59:17,668 http-8080-2 ERROR testuser 659x276x1 1u9a8pf 128.214.71.243 /secure/ViewProfile.jspa [velocity] Method getFragmentHtml threw exception for reference $activityStreamFrag in template templates/plugins/userprofile/summary-panel.vm at [43,13] 2010-08-13 10:59:17,669 http-8080-2 ERROR testuser 659x276x1 1u9a8pf 128.214.71.243 /secure/ViewProfile.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: 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:151) at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:68) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) ... and so on. The summary screen renders normally when the user is in group jira-administrators even with no projects in the system. When even a single project is added to the system (seems there is no need even to add the user to the project) the summary tab renders correctly. When the project is removed, the error is back again. This is not a big issue since a real JIRA instance will necessarily have one or more projects in use, but in case this is reproduceable in other systems, it would be wise to have JIRA fail gracefully and show some kind of informative message so it wouldn't be necessary to start troubleshooting in the implementation phase.

    Atlassian JIRA | 7 years ago | Väinö Ala-Härkönen
    com.atlassian.gadgets.GadgetParsingException: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 504
  2. 0

    After a fresh 4.1.2 install with no projects added, going to the user profile summary tab for a normal user (in jira-users) causes an exception that is shown on the web UI. An example from the logs: {noformat} 2010-08-13 10:59:17,668 http-8080-2 ERROR testuser 659x276x1 1u9a8pf 128.214.71.243 /secure/ViewProfile.jspa [velocity] Method getFragmentHtml threw exception for reference $activityStreamFrag in template templates/plugins/userprofile/summary-panel.vm at [43,13] 2010-08-13 10:59:17,669 http-8080-2 ERROR testuser 659x276x1 1u9a8pf 128.214.71.243 /secure/ViewProfile.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: 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:151) at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:68) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} ... and so on. The summary screen renders normally when the user is in group jira-administrators even with no projects in the system. When even a single project is added to the system (seems there is no need even to add the user to the project) the summary tab renders correctly. When the project is removed, the error is back again. This is not a big issue since a real JIRA instance will necessarily have one or more projects in use, but in case this is reproduceable in other systems, it would be wise to have JIRA fail gracefully and show some kind of informative message so it wouldn't be necessary to start troubleshooting in the implementation phase.

    Atlassian JIRA | 7 years ago | Väinö Ala-Härkönen
    com.atlassian.gadgets.GadgetParsingException: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 504

    Root Cause Analysis

    1. 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()
    2. com.atlassian.gadgets
      GadgetSpecFactoryImpl.getGadgetSpec
      1. com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:151)
      2. com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:68)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames