Uploaded image for project: 'Atlassian Cloud'
  1. Atlassian Cloud
  2. CLOUD-5628

JSONException when selecting the GitHub tab, inside the issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Medium
    • None

    Description

      Unlike GHC-28, this exception occurs on the following way:

      • The user have a Git Repo configured, and associated to a Jira Project;
      • When accessing a Jira Issue, and selecting the GitHub tab, the following message is shown: "Information can't be retrieved from GitHub. Please contact your administrator".
        • New commits are just synchronized when clicking of "Force Sync", on the GitHub admin page.
        • And, taking a look at the Jira logs you get the following StackTraces right after Acessing the GitHub tab(not after Syncing):
      @400000004ea0643e10278d2c java.io.FileNotFoundException: https://github.com/api/v2/json/commits/show/sjwoodr/KeyInfo/eb17f8e0ddbe812e51037cd39569a09e2d5edb44?branch=master
      @400000004ea0643e102794fc       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
      @400000004ea0643e102798e4       at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      @400000004ea0643e10279ccc       at com.atlassian.jira.plugins.github.webwork.GitHubCommits.getCommitDetails(GitHubCommits.java:135)
      @400000004ea0643e1027c7c4       at com.atlassian.jira.plugins.github.issuetabpanels.GitHubCommitsTabPanel.getActions(GitHubCommitsTabPanel.java:106)
      @400000004ea0643e1027cbac       at com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelModuleDescriptor.getActions(IssueTabPanelModuleDescriptor.java:94)
      @400000004ea0643e1027cf94       at sun.reflect.GeneratedMethodAccessor990.invoke(Unknown Source)
      @400000004ea0643e1027e31c       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      @400000004ea0643e1027e704       at java.lang.reflect.Method.invoke(Method.java:597)
      
      @400000004ea0643e11632a0c 2011-10-20 14:10:59,574 ajp-j2ee.instance.jirastudio.com-jira%2F127.0.0.104-8009-22 ERROR sysadmin 850x35738x3 1v7hx6z 201.22.212.136 /browse/KEYINFO-1 [plugins.github.issuetabpanels.GitHubCommitsTabPanel] A JSONObject text must begin with '{' at character 0 of 
      @400000004ea0643e1163417c com.atlassian.jira.util.json.JSONException: A JSONObject text must begin with '{' at character 0 of 
      @400000004ea0643e11634564       at com.atlassian.jira.util.json.JSONTokener.syntaxError(JSONTokener.java:518)
      @400000004ea0643e1163688c       at com.atlassian.jira.util.json.JSONObject.<init>(JSONObject.java:194)
      @400000004ea0643e1163688c       at com.atlassian.jira.util.json.JSONObject.<init>(JSONObject.java:365)
      @400000004ea0643e11636c74       at com.atlassian.jira.plugins.github.issuetabpanels.GitHubCommitsTabPanel.formatCommitDetails(GitHubCommitsTabPanel.java:228)
      @400000004ea0643e1163705c       at com.atlassian.jira.plugins.github.issuetabpanels.GitHubCommitsTabPanel.getActions(GitHubCommitsTabPanel.java:108)
      @400000004ea0643e11639f3c       at com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelModuleDescriptor.getActions(IssueTabPanelModuleDescriptor.java:94)
      @400000004ea0643e1163a324       at sun.reflect.GeneratedMethodAccessor990.invoke(Unknown Source)
      
      • After clicking the "Force Sync", the GitHub Plugins syncs successfully, but the message Remains the same on the GitHub issue tab. No error is displayed on logs after the Force Sync operation.

      All the Best,
      Nícolas

      Attachments

        Activity

          People

            Unassigned Unassigned
            nwildner Nicolas Wildner [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: