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

    XMLWordPrintable

Details

    Description

      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)
      

      Attachments

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

        Issue Links

          Activity

            People

              zliu ZehuaA
              zliu ZehuaA
              Votes:
              7 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: