Git plugin error for Stash

Hi,

While configureing jenklins job to chekout code from Git repository hosted in stash server over https i get below error in the job,

Git plugin verion - latest

jenkins - version-Jenkins ver. 1.531

sep 30, 2013 1:02:20 PM WARNING hudson.plugins.git.GitTool$DescriptorImpl getInstallation

invalid gitTool selection Default

sep 30, 2013 1:02:20 PM SEVERE winstone.Logger logInternal

Error while serving http://localhost:8080/job/FR3-2013/descriptorByName/hudson.plugins.git.UserRemoteConfig/checkUrl

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)

at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)

at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)

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:685)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)

at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)

at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)

at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)

at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)

at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)

at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:587)

at org.kohsuke.stapler.Stapler.service(Stapler.java:218)

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:96)

at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)

at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)

at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)

at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:91)

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 jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)

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:174)

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:67)

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:46)

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(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/common/StandardCredentials

at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:62)

at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:53)

at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:65)

at hudson.plugins.git.UserRemoteConfig$DescriptorImpl.doCheckUrl(UserRemoteConfig.java:77)

... 70 more

Caused by: java.lang.ClassNotFoundException: com.cloudbees.plugins.credentials.common.StandardCredentials

at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)

at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)

at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 74 more

3 answers

1 accepted

0 votes
Accepted answer

Thanks that was the issue i upgraded the plugin and it worked , i owe you big thanks

No worries. You can mark my answer as correct if you like? ;-)

Hi C

That looks like something is wrong with your Jenkins install.

Caused by: java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/common/StandardCredentials

That class can be found in the Credentials Plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin

Is that installed? What version of Jenkins are you running?

Cheers,

Charles

yes that plugin is already installed with vers 1.4.can view in installed pugins -

This plugin allows you to store credentials in Jenkins.
1.4

jenkisn version installled is Jenkins ver. 1.531

Hi,

That class was only added in 1.6 of the credentials plugin, so you'll need to upgrade...

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

451 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you