Repro:

      • Create anew Confluence Template and give it some title
      • add a variable in it ($myvar)
      • save the template

      It causes the printError The response from one or more JIRA instances cannot be parsed."

      It fails, the template is not saved and the browser returns ERR_EMPTY_RESPONSE.
      Looking in the log give several messages. See the following Atlassian Answers thread, it seems many experienced the problem
      ==> https://answers.atlassian.com/questions/29623410

      Repro the same steps without the variable, and it works.

            [CONFSERVER-39822] Cannot save a Template containing a variable

            Stefan Hett added a comment - - edited

            Sounds like the same issue I just got after upgrading Confluence from 5.4.4 to 5.5.7 and upgrading the JIRA macro plugin from the bundled version to 5.6.17.
            However, not sure whether this is related to editing templates and adding/using variables in my case.

            Hence:
            5.5.7

            One of the errors:

            2016-03-26 10:33:53,723 ERROR [JIRAMetadataPlugin_aggregate:thread-3] [metadata.jira.helper.JiraMetadataErrorHelper] printError The response from one or more JIRA instances cannot be parsed.
            – url: /confluence/pages/viewpage.action | userName: anonymous | action: viewpage | page: 40436660
            com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray
            at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.parse(JiraAggregateProvider.java:248)
            at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.getDataForSingleApplink(JiraAggregateProvider.java:108)
            at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.access$100(JiraAggregateProvider.java:41)
            at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider$1.call(JiraAggregateProvider.java:92)
            at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider$1.call(JiraAggregateProvider.java:77)
            at java.util.concurrent.FutureTask.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray
            at com.google.gson.JsonObject.getAsJsonArray(JsonObject.java:178)
            at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.parse(JiraAggregateProvider.java:223)
            ... 8 more

            Stefan Hett added a comment - - edited Sounds like the same issue I just got after upgrading Confluence from 5.4.4 to 5.5.7 and upgrading the JIRA macro plugin from the bundled version to 5.6.17. However, not sure whether this is related to editing templates and adding/using variables in my case. Hence: 5.5.7 One of the errors: 2016-03-26 10:33:53,723 ERROR [JIRAMetadataPlugin_aggregate:thread-3] [metadata.jira.helper.JiraMetadataErrorHelper] printError The response from one or more JIRA instances cannot be parsed. – url: /confluence/pages/viewpage.action | userName: anonymous | action: viewpage | page: 40436660 com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.parse(JiraAggregateProvider.java:248) at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.getDataForSingleApplink(JiraAggregateProvider.java:108) at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.access$100(JiraAggregateProvider.java:41) at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider$1.call(JiraAggregateProvider.java:92) at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider$1.call(JiraAggregateProvider.java:77) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray at com.google.gson.JsonObject.getAsJsonArray(JsonObject.java:178) at com.atlassian.confluence.plugins.metadata.jira.aggregate.JiraAggregateProvider.parse(JiraAggregateProvider.java:223) ... 8 more

              Unassigned Unassigned
              atlassian430 Luc Filion
              Affected customers:
              3 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated: