Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-14308

Unable to link selected repository - NullPointerException linking GitHub repositories

      NOTE: This bug report is for JIRA Software Server. Using JIRA Software Cloud? See the corresponding bug report.

      On the DVCS Accounts page, linking a unlinked repo results in the following error:

      The corresponding GitHub repo is public.

      There is an NPE in the server log:

      2014-04-10 19:31:58.294877500 2014-04-10 19:31:58,291 TP-Processor6 ERROR sysadmin 1171x14227x1 1n1lb8u 59.167.133.100,131.103.26.179 /rest/bitbucket/1.0/repo/210/autolink [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null
      2014-04-10 19:31:58.294880500 java.lang.NullPointerException
      2014-04-10 19:31:58.294880500 	at com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator.ensureHookPresent(GithubCommunicator.java:355)
      2014-04-10 19:31:58.294882500 	at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator.ensureHookPresent(CachingCommunicator.java:226)
      2014-04-10 19:31:58.294904500 	at com.atlassian.jira.plugins.dvcs.service.RepositoryServiceImpl.addOrRemovePostcommitHook(RepositoryServiceImpl.java:530)
      2014-04-10 19:31:58.294905500 	at com.atlassian.jira.plugins.dvcs.service.RepositoryServiceImpl.enableRepository(RepositoryServiceImpl.java:480)
      2014-04-10 19:31:58.294907500 	at com.atlassian.jira.plugins.dvcs.rest.RootResource.enableRepositoryAutolink(RootResource.java:393)
      

        1. dvcs-link-error.png
          dvcs-link-error.png
          26 kB
        2. github-webhook-error.png
          github-webhook-error.png
          11 kB

            [JSWSERVER-14308] Unable to link selected repository - NullPointerException linking GitHub repositories

            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2852742 ] New: JAC Bug Workflow v3 [ 2937208 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2541058 ] New: JAC Bug Workflow v2 [ 2852742 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1553710 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2541058 ]
            jonah (Inactive) made changes -
            Description Original: On the DVCS Accounts page, linking a unlinked repo results in the following error:
            !dvcs-link-error.png!

            The corresponding GitHub repo is public.

            There is an NPE in the server log:
            {noformat}
            2014-04-10 19:31:58.294877500 2014-04-10 19:31:58,291 TP-Processor6 ERROR sysadmin 1171x14227x1 1n1lb8u 59.167.133.100,131.103.26.179 /rest/bitbucket/1.0/repo/210/autolink [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null
            2014-04-10 19:31:58.294880500 java.lang.NullPointerException
            2014-04-10 19:31:58.294880500 at com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator.ensureHookPresent(GithubCommunicator.java:355)
            2014-04-10 19:31:58.294882500 at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator.ensureHookPresent(CachingCommunicator.java:226)
            2014-04-10 19:31:58.294904500 at com.atlassian.jira.plugins.dvcs.service.RepositoryServiceImpl.addOrRemovePostcommitHook(RepositoryServiceImpl.java:530)
            2014-04-10 19:31:58.294905500 at com.atlassian.jira.plugins.dvcs.service.RepositoryServiceImpl.enableRepository(RepositoryServiceImpl.java:480)
            2014-04-10 19:31:58.294907500 at com.atlassian.jira.plugins.dvcs.rest.RootResource.enableRepositoryAutolink(RootResource.java:393)
            {noformat}
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *JIRA Software Server*. Using *JIRA Software Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/JSWCLOUD-14308].
              {panel}

            On the DVCS Accounts page, linking a unlinked repo results in the following error:
            !dvcs-link-error.png!

            The corresponding GitHub repo is public.

            There is an NPE in the server log:
            {noformat}
            2014-04-10 19:31:58.294877500 2014-04-10 19:31:58,291 TP-Processor6 ERROR sysadmin 1171x14227x1 1n1lb8u 59.167.133.100,131.103.26.179 /rest/bitbucket/1.0/repo/210/autolink [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null
            2014-04-10 19:31:58.294880500 java.lang.NullPointerException
            2014-04-10 19:31:58.294880500 at com.atlassian.jira.plugins.dvcs.spi.github.GithubCommunicator.ensureHookPresent(GithubCommunicator.java:355)
            2014-04-10 19:31:58.294882500 at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator.ensureHookPresent(CachingCommunicator.java:226)
            2014-04-10 19:31:58.294904500 at com.atlassian.jira.plugins.dvcs.service.RepositoryServiceImpl.addOrRemovePostcommitHook(RepositoryServiceImpl.java:530)
            2014-04-10 19:31:58.294905500 at com.atlassian.jira.plugins.dvcs.service.RepositoryServiceImpl.enableRepository(RepositoryServiceImpl.java:480)
            2014-04-10 19:31:58.294907500 at com.atlassian.jira.plugins.dvcs.rest.RootResource.enableRepositoryAutolink(RootResource.java:393)
            {noformat}
            jonah (Inactive) made changes -
            Link New: This issue relates to JSWCLOUD-14308 [ JSWCLOUD-14308 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels Original: affects-cloud migrated_from_dcon ondemand-no-workaround New: affects-cloud affects-server migrated_from_dcon ondemand-no-workaround
            Confluence Escalation Bot (Inactive) made changes -
            Labels Original: migrated_from_dcon ondemand-no-workaround New: affects-cloud migrated_from_dcon ondemand-no-workaround
            Benjamin Morgan (Inactive) made changes -
            Component/s New: DVCS Accounts [ 43316 ]
            Labels Original: ondemand-no-workaround New: migrated_from_dcon ondemand-no-workaround
            Owen made changes -
            Key Original: DCON-395 New: JSW-14308
            Affects Version/s New: DCON - old releases [ 62520 ]
            Affects Version/s New: DCON - old releases [ 62520 ]
            Affects Version/s Original: 2.1.2 [ 40293 ]
            Affects Version/s Original: 2.1.4 [ 40393 ]
            Workflow Original: classic workflow for JIRA DVCS Connector [ 689192 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1553710 ]
            Project Original: DCON - deprecated use JSW [ 14710 ] New: JIRA Software (including JIRA Agile) [ 12200 ]
            ZehuaA made changes -
            Workflow Original: classic default workflow [ 680212 ] New: classic workflow for JIRA DVCS Connector [ 689192 ]

              zliu ZehuaA
              zliu ZehuaA
              Affected customers:
              7 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: