Details

    • Similar Issues:

      Description

      Hi,

      When I try to configure the Jira plugin I get the an error.
      The stack trace is:

      Exception: ?
      Stacktrace:
      java.net.MalformedURLException
      at java.net.URL.<init>(URL.java:619)
      at java.net.URL.<init>(URL.java:482)
      at java.net.URL.<init>(URL.java:431)
      at hudson.plugins.jira.JiraSite$DescriptorImpl.doValidate(JiraSite.java:652)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:214)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.NullPointerException
      at java.net.URL.<init>(URL.java:524)
      ... 52 more

      Searching for the problem yielded nothing.
      Connecting with a debugger helped me conclude that:
      Handling POST /descriptorByName/hudson.plugins.jira.JiraSite/validate : RequestH
      andlerThread2[1] print alternativeUrl
      alternativeUrl = null

        Attachments

          Issue Links

            Activity

            Hide
            dregin Bernard McKeever added a comment -

            Seeing this in Jenkins 1.517 with JIRA Plugin 1.36.

            Show
            dregin Bernard McKeever added a comment - Seeing this in Jenkins 1.517 with JIRA Plugin 1.36.
            Show
            kutzi kutzi added a comment - Probably caused by https://github.com/jenkinsci/jira-plugin/commit/64c517e4022496c443ca3a0826f1f57cd1feda5a
            Hide
            tyrius Jonathan Zimmerman added a comment -

            This is a duplicate of JENKINS-18268. The root cause is that the alternativeUrl was not being passed during validation of the JiraSite.

            Show
            tyrius Jonathan Zimmerman added a comment - This is a duplicate of JENKINS-18268 . The root cause is that the alternativeUrl was not being passed during validation of the JiraSite.
            Hide
            tyrius Jonathan Zimmerman added a comment -

            Though the validation logic needs to be tweaked. The Link URL is a required field but the validation method won't return a validation error if the alternativeUrl is empty or null.

            Show
            tyrius Jonathan Zimmerman added a comment - Though the validation logic needs to be tweaked. The Link URL is a required field but the validation method won't return a validation error if the alternativeUrl is empty or null.
            Hide
            tyrius Jonathan Zimmerman added a comment -

            I've opened a new issue specifically for the validation logic: JENKINS-18316.

            Show
            tyrius Jonathan Zimmerman added a comment - I've opened a new issue specifically for the validation logic: JENKINS-18316 .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Michael Wikberg
            Path:
            src/main/java/hudson/plugins/jira/JiraProjectProperty.java
            http://jenkins-ci.org/commit/jira-plugin/f92de0cae0a3555ba94daa967a609c8bfea63b0e
            Log:
            Add hack to get around the "" -> java.net.URL exception (JENKINS-18229)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Wikberg Path: src/main/java/hudson/plugins/jira/JiraProjectProperty.java http://jenkins-ci.org/commit/jira-plugin/f92de0cae0a3555ba94daa967a609c8bfea63b0e Log: Add hack to get around the "" -> java.net.URL exception ( JENKINS-18229 )
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            src/main/java/hudson/plugins/jira/JiraProjectProperty.java
            http://jenkins-ci.org/commit/jira-plugin/ffd843ecc3f935ccf22ca1e354bd78d19af69327
            Log:
            Merge pull request #26 from milkboy/JENKINS-18229

            JENKINS-18229 Add hack to get around the "" -> java.net.URL exception
            Yup hack but no other way to fix that

            Compare: https://github.com/jenkinsci/jira-plugin/compare/deb1d4578acc...ffd843ecc3f9

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/java/hudson/plugins/jira/JiraProjectProperty.java http://jenkins-ci.org/commit/jira-plugin/ffd843ecc3f935ccf22ca1e354bd78d19af69327 Log: Merge pull request #26 from milkboy/ JENKINS-18229 JENKINS-18229 Add hack to get around the "" -> java.net.URL exception Yup hack but no other way to fix that Compare: https://github.com/jenkinsci/jira-plugin/compare/deb1d4578acc...ffd843ecc3f9

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                robert_memjet Robert Lev
              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: