Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18268

Error saving Jenkins config after updated to latest version of Jira Plugin

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: jira-plugin
    • Labels:
      None
    • Environment:
      Jenkins v.1.480.3
      JIRA Plugin v.1.36
    • Similar Issues:

      Description

      Hi.

      After I updated to the latest version of JIRA Plugin (1.36), I was unable to save Jenkins global configurations. This stack trace appears on the screen after I click on "Save":

      GRAVE: Error while serving http://build:8080/jenkins/configSubmit
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	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:574)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
      	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179)
      	at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
      	at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      	at com.marvelution.hudson.plugins.apiv2.servlet.filter.HudsonAPIV2ServletFilter.doFilter(HudsonAPIV2ServletFilter.java:115)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      	at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.commons.beanutils.ConversionException: no protocol: 
      	at org.kohsuke.stapler.Stapler$2.convert(Stapler.java:899)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:639)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373)
      	at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:407)
      	at hudson.plugins.jira.JiraProjectProperty$DescriptorImpl.configure(JiraProjectProperty.java:105)
      	at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2715)
      	at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2678)
      	... 71 more
      Caused by: java.net.MalformedURLException: no protocol: 
      	at java.net.URL.<init>(URL.java:567)
      	at java.net.URL.<init>(URL.java:464)
      	at java.net.URL.<init>(URL.java:413)
      	at org.kohsuke.stapler.Stapler$2.convert(Stapler.java:897)
      	... 80 more
      

      I know it's caused by Jira Plugin because when I downgraded to the previous version (1.35), the error did not occurred anymore.

      It appears to be something wrong at JiraProjectProperty.java:105.

        Attachments

          Issue Links

            Activity

            Hide
            zhh Hua Zhang added a comment -

            I also had a very similar problem with 1.36, the topmost exception is something else, but the root exception is the same "no protocol:" (can provide stacktrace if required).
            Downgrade to 1.35 also fixed the problem. I have Jenkins 1.517.

            Show
            zhh Hua Zhang added a comment - I also had a very similar problem with 1.36, the topmost exception is something else, but the root exception is the same "no protocol:" (can provide stacktrace if required). Downgrade to 1.35 also fixed the problem. I have Jenkins 1.517.
            Hide
            tyrius Jonathan Zimmerman added a comment -

            I've identified (and resolved) the problem and have submitted a pull request:
            https://github.com/jenkinsci/jira-plugin/pull/25

            Show
            tyrius Jonathan Zimmerman added a comment - I've identified (and resolved) the problem and have submitted a pull request: https://github.com/jenkinsci/jira-plugin/pull/25
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: jzimmerman
            Path:
            src/main/resources/hudson/plugins/jira/JiraSite/config.jelly
            src/main/resources/hudson/plugins/jira/JiraSite/help-alternateUrl.html
            src/main/resources/hudson/plugins/jira/JiraSite/help-alternativeUrl.html
            http://jenkins-ci.org/commit/jira-plugin/41758938c8dd52d38c8e689c76f20fff6c20e131
            Log:
            [FIXED JENKINS-18268] Pass alternativeUrl during validation and renamed alternativeUrl help file.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: jzimmerman Path: src/main/resources/hudson/plugins/jira/JiraSite/config.jelly src/main/resources/hudson/plugins/jira/JiraSite/help-alternateUrl.html src/main/resources/hudson/plugins/jira/JiraSite/help-alternativeUrl.html http://jenkins-ci.org/commit/jira-plugin/41758938c8dd52d38c8e689c76f20fff6c20e131 Log: [FIXED JENKINS-18268] Pass alternativeUrl during validation and renamed alternativeUrl help file.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            src/main/resources/hudson/plugins/jira/JiraSite/config.jelly
            src/main/resources/hudson/plugins/jira/JiraSite/help-alternateUrl.html
            src/main/resources/hudson/plugins/jira/JiraSite/help-alternativeUrl.html
            http://jenkins-ci.org/commit/jira-plugin/deb1d4578acc47ac5929ac1244d9ec195ae75140
            Log:
            Merge pull request #25 from tyrius02/master

            [FIXED JENKINS-18268] Pass alternativeUrl during validation and renamed the alternativeUrl help file.

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

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/resources/hudson/plugins/jira/JiraSite/config.jelly src/main/resources/hudson/plugins/jira/JiraSite/help-alternateUrl.html src/main/resources/hudson/plugins/jira/JiraSite/help-alternativeUrl.html http://jenkins-ci.org/commit/jira-plugin/deb1d4578acc47ac5929ac1244d9ec195ae75140 Log: Merge pull request #25 from tyrius02/master [FIXED JENKINS-18268] Pass alternativeUrl during validation and renamed the alternativeUrl help file. Compare: https://github.com/jenkinsci/jira-plugin/compare/ac7af7029837...deb1d4578acc

              People

              • Assignee:
                Unassigned
                Reporter:
                thiagoc ThiagoC
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: