javax.servlet.ServletException: hudson.plugins.git.GitException: Error creating repositories

Jenkins JIRA | jeremyhuiskamp | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Steps to reproduce: 1. Install git plugin 2. Create new job, choose any name, type free-style 3. Choose a git source code repository, enter an invalid url, click add 4. Click save at the bottom, an unhandled exception occurs and a 500 is returned with the stacktrace I've noticed that other fields nicely detect errors as soon as they lose focus and show a handy message. Would it be possible to do that here? Here are the log messages that get printed to the hudson log. The stack trace is the same as the one that is shown to the user: [webapp 2010/03/09 18:36:30] - Error while serving http://localhost:8080/job/argablarg/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:169) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 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:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:637) Caused by: hudson.plugins.git.GitException: Error creating repositories at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:800) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:730) at hudson.model.Descriptor.newInstance(Descriptor.java:396) at hudson.scm.SCMS.parseSCM(SCMS.java:66) at hudson.model.AbstractProject.submit(AbstractProject.java:1489) at hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:702) at hudson.model.Job.doConfigSubmit(Job.java:1005) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:547) ... 35 more Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: invalid at org.spearce.jgit.transport.URIish.initializeFromString(URIish.java:115) at org.spearce.jgit.transport.URIish.<init>(URIish.java:82) at org.spearce.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:149) at org.spearce.jgit.transport.RemoteConfig.getAllRemoteConfigs(RemoteConfig.java:106) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:796) ... 42 more [Winstone 2010/03/09 18:36:30] - Untrapped Error in Servlet javax.servlet.ServletException: hudson.plugins.git.GitException: Error creating repositories at org.kohsuke.stapler.Stapler.invoke(Stapler.java:554) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 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:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:637) Caused by: hudson.plugins.git.GitException: Error creating repositories at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:800) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:730) at hudson.model.Descriptor.newInstance(Descriptor.java:396) at hudson.scm.SCMS.parseSCM(SCMS.java:66) at hudson.model.AbstractProject.submit(AbstractProject.java:1489) at hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:702) at hudson.model.Job.doConfigSubmit(Job.java:1005) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:547) 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:169) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) ... 25 more Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: invalid at org.spearce.jgit.transport.URIish.initializeFromString(URIish.java:115) at org.spearce.jgit.transport.URIish.<init>(URIish.java:82) at org.spearce.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:149) at org.spearce.jgit.transport.RemoteConfig.getAllRemoteConfigs(RemoteConfig.java:106) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:796) ... 42 more

    Jenkins JIRA | 7 years ago | jeremyhuiskamp
    javax.servlet.ServletException: hudson.plugins.git.GitException: Error creating repositories
  2. 0

    Steps to reproduce: 1. Install git plugin 2. Create new job, choose any name, type free-style 3. Choose a git source code repository, enter an invalid url, click add 4. Click save at the bottom, an unhandled exception occurs and a 500 is returned with the stacktrace I've noticed that other fields nicely detect errors as soon as they lose focus and show a handy message. Would it be possible to do that here? Here are the log messages that get printed to the hudson log. The stack trace is the same as the one that is shown to the user: [webapp 2010/03/09 18:36:30] - Error while serving http://localhost:8080/job/argablarg/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:169) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 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:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:637) Caused by: hudson.plugins.git.GitException: Error creating repositories at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:800) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:730) at hudson.model.Descriptor.newInstance(Descriptor.java:396) at hudson.scm.SCMS.parseSCM(SCMS.java:66) at hudson.model.AbstractProject.submit(AbstractProject.java:1489) at hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:702) at hudson.model.Job.doConfigSubmit(Job.java:1005) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:547) ... 35 more Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: invalid at org.spearce.jgit.transport.URIish.initializeFromString(URIish.java:115) at org.spearce.jgit.transport.URIish.<init>(URIish.java:82) at org.spearce.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:149) at org.spearce.jgit.transport.RemoteConfig.getAllRemoteConfigs(RemoteConfig.java:106) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:796) ... 42 more [Winstone 2010/03/09 18:36:30] - Untrapped Error in Servlet javax.servlet.ServletException: hudson.plugins.git.GitException: Error creating repositories at org.kohsuke.stapler.Stapler.invoke(Stapler.java:554) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 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:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:637) Caused by: hudson.plugins.git.GitException: Error creating repositories at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:800) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:730) at hudson.model.Descriptor.newInstance(Descriptor.java:396) at hudson.scm.SCMS.parseSCM(SCMS.java:66) at hudson.model.AbstractProject.submit(AbstractProject.java:1489) at hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:702) at hudson.model.Job.doConfigSubmit(Job.java:1005) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:547) 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:169) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:519) ... 25 more Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: invalid at org.spearce.jgit.transport.URIish.initializeFromString(URIish.java:115) at org.spearce.jgit.transport.URIish.<init>(URIish.java:82) at org.spearce.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:149) at org.spearce.jgit.transport.RemoteConfig.getAllRemoteConfigs(RemoteConfig.java:106) at hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:796) ... 42 more

    Jenkins JIRA | 7 years ago | jeremyhuiskamp
    javax.servlet.ServletException: hudson.plugins.git.GitException: Error creating repositories

    Root Cause Analysis

    1. java.net.URISyntaxException

      Cannot parse Git URI-ish: invalid

      at org.spearce.jgit.transport.URIish.initializeFromString()
    2. Hudson GIT plugin
      GitSCM$DescriptorImpl.newInstance
      1. org.spearce.jgit.transport.URIish.initializeFromString(URIish.java:115)
      2. org.spearce.jgit.transport.URIish.<init>(URIish.java:82)
      3. org.spearce.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:149)
      4. org.spearce.jgit.transport.RemoteConfig.getAllRemoteConfigs(RemoteConfig.java:106)
      5. hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:796)
      6. hudson.plugins.git.GitSCM$DescriptorImpl.newInstance(GitSCM.java:730)
      6 frames
    3. Hudson
      AbstractProject.submit
      1. hudson.model.Descriptor.newInstance(Descriptor.java:396)
      2. hudson.scm.SCMS.parseSCM(SCMS.java:66)
      3. hudson.model.AbstractProject.submit(AbstractProject.java:1489)
      3 frames
    4. Hudson Maven Embedder
      MavenModuleSet.submit
      1. hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:702)
      1 frame
    5. Hudson
      AbstractProject.doConfigSubmit
      1. hudson.model.Job.doConfigSubmit(Job.java:1005)
      2. hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:547)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:169)
      2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
      3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
      4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
      5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      6. org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      7. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
      8. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      9. org.kohsuke.stapler.Stapler.invoke(Stapler.java:519)
      10. org.kohsuke.stapler.Stapler.invoke(Stapler.java:435)
      11. org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      11 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    9. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      3 frames
    10. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      2 frames
    11. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    12. Hudson
      CrumbFilter.doFilter
      1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      1 frame
    13. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    14. Hudson
      HudsonFilter.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      3 frames
    15. winstone
      RequestHandlerThread.run
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      3. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      5 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:637)
      1 frame