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

Subversion commit notifications should not be performed on disabled jobs

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Jenkins v1.484
      Subversion plugin v1.43
    • Similar Issues:

      Description

      In our Jenkins server we have some disabled jobs as templates with generic names like "

      {stream}

      _

      {branch}

      _

      {module}

      _

      {purpose}

      " which also have in its content the subversion url as template format "https://

      {svn_url}"

      We noticed a lot of warnings in our logs (2000 per hour) regarding subversion commit notifications involving these disabled jobs because it cant recognize the url.

      Nov 9, 2012 6:27:59 PM hudson.scm.SubversionRepositoryStatus doNotifyCommit
      WARNING: Failed to handle Subversion commit notification
      org.tmatesoft.svn.core.SVNException: svn: OPTIONS failed
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271)
      at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533)
      at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
      at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1011)
      at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:99)
      at hudson.scm.SubversionSCM$ModuleLocation.getUUID(SubversionSCM.java:2379)
      at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:111)
      at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      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.MetaClass$12.dispatch(MetaClass.java:384)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
      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: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 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      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:47)
      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.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:135)
      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:63)
      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 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:215)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
      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:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS failed
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:146)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:89)
      ... 83 more
      Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS request failed on '/'
      svn: unknown host
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:662)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:292)
      ... 82 more
      Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS request failed on '/'
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:660)
      ... 83 more
      Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: unknown host
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:415)
      ... 83 more
      Caused by: java.net.UnknownHostException: {svn_url}

      at java.net.InetAddress.getAllByName0(InetAddress.java:1201)
      at java.net.InetAddress.getAllByName(InetAddress.java:1128)
      at java.net.InetAddress.getAllByName(InetAddress.java:1064)
      at java.net.InetAddress.getByName(InetAddress.java:1014)
      at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createAddres(SVNSocketFactory.java:141)
      at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:72)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:189)
      at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:354)
      ... 83 more

      This kind of operations running "hudson.scm.SubversionRepositoryStatus doNotifyCommit" should not be involving disabled jobs in the first place.

      This makes it hard to analyse real problems when the log file is cluttered with this kind of warning.

        Attachments

          Activity

          josesa Jose Sa created issue -
          josesa Jose Sa made changes -
          Field Original Value New Value
          Description In our Jenkins server we have some disabled jobs as templates with generic names like {stream}_{branch}_{module}_{purpose} which also have in its content the subversion url as template format "https://{svn_url}"

          We noticed a lot of warnings in our logs (2000 per hour) regarding subversion commit notifications involving these disabled jobs because it cant recognize the url.

          {code}
          Nov 9, 2012 6:27:59 PM hudson.scm.SubversionRepositoryStatus doNotifyCommit
          WARNING: Failed to handle Subversion commit notification
          org.tmatesoft.svn.core.SVNException: svn: OPTIONS failed
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1011)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:99)
                  at hudson.scm.SubversionSCM$ModuleLocation.getUUID(SubversionSCM.java:2379)
                  at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:111)
                  at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  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.MetaClass$12.dispatch(MetaClass.java:384)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
                  at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
                  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: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 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
                  at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
                  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:47)
                  at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
                  at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
                  at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          {code}

          This kind of operations running "hudson.scm.SubversionRepositoryStatus doNotifyCommit" should not be involving disabled jobs in the first place.
          In our Jenkins server we have some disabled jobs as templates with generic names like "{stream}\_{branch}\_{module}\_{purpose}" which also have in its content the subversion url as template format "https://{svn_url}"

          We noticed a lot of warnings in our logs (2000 per hour) regarding subversion commit notifications involving these disabled jobs because it cant recognize the url.

          {code}
          Nov 9, 2012 6:27:59 PM hudson.scm.SubversionRepositoryStatus doNotifyCommit
          WARNING: Failed to handle Subversion commit notification
          org.tmatesoft.svn.core.SVNException: svn: OPTIONS failed
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1011)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:99)
                  at hudson.scm.SubversionSCM$ModuleLocation.getUUID(SubversionSCM.java:2379)
                  at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:111)
                  at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  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.MetaClass$12.dispatch(MetaClass.java:384)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
                  at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
                  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: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 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
                  at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
                  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:47)
                  at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
                  at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
                  at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          {code}

          This kind of operations running "hudson.scm.SubversionRepositoryStatus doNotifyCommit" should not be involving disabled jobs in the first place.
          josesa Jose Sa made changes -
          Description In our Jenkins server we have some disabled jobs as templates with generic names like "{stream}\_{branch}\_{module}\_{purpose}" which also have in its content the subversion url as template format "https://{svn_url}"

          We noticed a lot of warnings in our logs (2000 per hour) regarding subversion commit notifications involving these disabled jobs because it cant recognize the url.

          {code}
          Nov 9, 2012 6:27:59 PM hudson.scm.SubversionRepositoryStatus doNotifyCommit
          WARNING: Failed to handle Subversion commit notification
          org.tmatesoft.svn.core.SVNException: svn: OPTIONS failed
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1011)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:99)
                  at hudson.scm.SubversionSCM$ModuleLocation.getUUID(SubversionSCM.java:2379)
                  at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:111)
                  at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  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.MetaClass$12.dispatch(MetaClass.java:384)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
                  at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
                  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: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 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
                  at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
                  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:47)
                  at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
                  at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
                  at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          {code}

          This kind of operations running "hudson.scm.SubversionRepositoryStatus doNotifyCommit" should not be involving disabled jobs in the first place.
          In our Jenkins server we have some disabled jobs as templates with generic names like "{stream}\_{branch}\_{module}\_{purpose}" which also have in its content the subversion url as template format "https://{svn_url}"

          We noticed a lot of warnings in our logs (2000 per hour) regarding subversion commit notifications involving these disabled jobs because it cant recognize the url.

          Nov 9, 2012 6:27:59 PM hudson.scm.SubversionRepositoryStatus doNotifyCommit
          WARNING: Failed to handle Subversion commit notification
          org.tmatesoft.svn.core.SVNException: svn: OPTIONS failed
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:533)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1011)
                  at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:99)
                  at hudson.scm.SubversionSCM$ModuleLocation.getUUID(SubversionSCM.java:2379)
                  at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:111)
                  at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:616)
                  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.MetaClass$12.dispatch(MetaClass.java:384)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
                  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
                  at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
                  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: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 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 hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
                  at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
                  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:47)
                  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.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:135)
                  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:63)
                  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 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:215)
                  at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
                  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:1110)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                  at java.lang.Thread.run(Thread.java:679)
                  Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS failed
                  at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
                  at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:146)
                  at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:89)
                  ... 83 more
          Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS request failed on '/'
          svn: unknown host
                  at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
                  at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:662)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:292)
                  ... 82 more
          Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS request failed on '/'
                  at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:660)
                  ... 83 more
          Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: unknown host
                  at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:200)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:415)
                  ... 83 more
                  Caused by: java.net.UnknownHostException: {svn_url}
                  at java.net.InetAddress.getAllByName0(InetAddress.java:1201)
                  at java.net.InetAddress.getAllByName(InetAddress.java:1128)
                  at java.net.InetAddress.getAllByName(InetAddress.java:1064)
                  at java.net.InetAddress.getByName(InetAddress.java:1014)
                  at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createAddres(SVNSocketFactory.java:141)
                  at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:72)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:189)
                  at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:354)
                  ... 83 more


          This kind of operations running "hudson.scm.SubversionRepositoryStatus doNotifyCommit" should not be involving disabled jobs in the first place.

          This makes it hard to analyse real problems when the log file is cluttered with this kind of warning.
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          kutzi kutzi made changes -
          Assignee kutzi [ kutzi ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 146595 ] JNJira + In-Review [ 191992 ]

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              josesa Jose Sa
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: