If I'm reading the source code correctly, that line in the source code (line 77 in UserRemoteConfig of the git plugin) is trying to find the default Git installation. If that default Git installation finding method returns null, I think a null pointer exception will result since the value of the finding method is immediately used for another call. It might be worth attempting to configure the location of the git program in the Jenkins global configuration screen. That might satisfy the default Git installation finding method and avoid the null pointer exception. Mark Waite
>________________________________ > From: Sami Tikka <sjti...@gmail.com> >To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com> >Sent: Monday, February 25, 2013 11:55 PM >Subject: Re: error Code 500 trying to use git plugin in jenkins > > >Would it be possible to see your job configuration? > >-- Sami > >Kamal Ahmed <kamal2222ah...@yahoo.com> kirjoitti 25.2.2013 kello 20.27: > > >I am using Jenkins 1.500 on ubuntu 12.04 >>and using git plugin version 1.2.0 >>https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin >>The target system is debian >> >> >>I have created a Dummy user on the Target System ( Where the git repo is ) >>user = "jenkins" >> >> >>from my slave i am able to do a git clone : >> >>on command line it works: >> >>git clone n.n.n.n:/../repo.git >>Cloning into 'repo'... >>remote: Counting objects: 1106, done. >>remote: Compressing objects: 100% (844/844), done. >>remote: Total 1106 (delta 401), reused 590 (delta 141) >>Receiving objects: 100% (1106/1106), 46.40 MiB | 19.58 MiB/s, done. >>Resolving deltas: 100% (401/401), done. >> >>i have also used : Global Config user.name Value = jenkins in the Git plugin >>section , and email = my valid email. >> >> >>but when i try to use the same URL, i get: >> >> Code: 500 >>Exception: java.lang.NullPointerException >>Stacktrace: >> >>javax.servlet.ServletException: java.lang.NullPointerException >> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615) >> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) >> 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:573) >> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) >> 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:573) >> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) >> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487) >> at org.kohsuke.stapler.Stapler.service(Stapler.java:164) >> 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.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.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:441) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) >> at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) >> at >>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> at >>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> at java.lang.Thread.run(Thread.java:662) >>Caused by: java.lang.NullPointerException >> at >>hudson.plugins.git.UserRemoteConfig$DescriptorImpl.doCheckUrl(UserRemoteConfig.java:77) >> at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source) >> 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:573) >> ... 48 more -- >>You received this message because you are subscribed to the Google Groups >>"Jenkins Users" group. >>To unsubscribe from this group and stop receiving emails from it, send an >>email to jenkinsci-users+unsubscr...@googlegroups.com. >>For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- >You received this message because you are subscribed to the Google Groups >"Jenkins Users" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to jenkinsci-users+unsubscr...@googlegroups.com. >For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.