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

InvalidPathException + others

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • git-client-plugin
    • None
    • Jenkins 2.356
      Git client plugin Version 3.11.1
      Windows Server 2019 Version 1809 (OS Build 17763.3165)

      After some recent plugin updates, I can no longer run any of my pipelines - it seems that the git module is having some issues for me:

      Failed to scout org.jenkinsci.plugins.gitclient.verifier.NoHostKeyVerificationStrategy
      java.nio.file.InvalidPathException: Illegal char <:> at index 2: 'C:/ProgramData/Jenkins/JenkinsHome'\.ssh\known_hosts
      	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
      	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
      	at java.base/java.nio.file.Path.of(Path.java:147)
      	at java.base/java.nio.file.Paths.get(Paths.java:69)
      	at org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy.<clinit>(SshHostKeyVerificationStrategy.java:14)
      Caused: java.lang.ExceptionInInitializerError
      	at java.base/java.lang.Class.forName0(Native Method)
      	at java.base/java.lang.Class.forName(Class.java:398)
      	at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:730)
      	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:352)
      	at hudson.ExtensionList.load(ExtensionList.java:384)
      	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:320)
      	at hudson.ExtensionList.getComponents(ExtensionList.java:184)
      	at jenkins.model.Jenkins$6.onInitMilestoneAttained(Jenkins.java:1191)
      	at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:88)
      	at org.jvnet.hudson.reactor.ReactorListener$Aggregator.lambda$onAttained$3(ReactorListener.java:108)
      	at org.jvnet.hudson.reactor.ReactorListener$Aggregator.run(ReactorListener.java:115)
      	at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:108)
      	at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:183)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829) 

      and later in the logs:

      Failed GrapeHack.hack
      java.lang.IllegalArgumentException: ivy pattern must be absolute: 'C:/ProgramData/Jenkins/JenkinsHome'/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml
      	at org.apache.ivy.util.Checks.checkAbsolute(Checks.java:57)
      	at org.apache.ivy.plugins.resolver.FileSystemResolver.addConfiguredIvy(FileSystemResolver.java:309)
      Caused: java.lang.reflect.InvocationTargetException
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.apache.ivy.util.Configurator.endCreateChild(Configurator.java:685)
      Caused: java.lang.IllegalArgumentException: impossible to add configured child for ivy on class org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be absolute: 'C:/ProgramData/Jenkins/JenkinsHome'/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml
      	at org.apache.ivy.util.Configurator.endCreateChild(Configurator.java:692)
      	at org.apache.ivy.core.settings.XmlSettingsParser.endElement(XmlSettingsParser.java:606)
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:184)
      	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1377)
      	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2710)
      	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
      	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
      	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
      	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)
      	at java.xml/javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
      	at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:157)
      Caused: java.text.ParseException: failed to load settings from jar:file:/C:/ProgramData/jenkins/jenkinshome/war/WEB-INF/lib/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml: impossible to add configured child for ivy on class org.apache.ivy.plugins.resolver.FileSystemResolver: ivy pattern must be absolute: 'C:/ProgramData/Jenkins/JenkinsHome'/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml
      	at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:163)
      	at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:148)
      	at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:415)
      	at org.apache.ivy.core.settings.IvySettings$load.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
      	at groovy.grape.GrapeIvy.<init>(GrapeIvy.groovy:100)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at java.base/java.lang.Class.newInstance(Class.java:584)
      	at org.jenkinsci.plugins.workflow.cps.global.GrapeHack.hack(GrapeHack.java:60)
      Caused: java.lang.reflect.InvocationTargetException
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
      Caused: java.lang.Error
      	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
      	at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
      	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1159)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829) 

      and one more after trying to scan a multibranch pipeline:

      Executor threw an exception
      java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy
      	at org.jenkinsci.plugins.gitclient.GitHostKeyVerificationConfiguration.getSshHostKeyVerificationStrategy(GitHostKeyVerificationConfiguration.java:24)
      	at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:137)
      	at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:371)
      	at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:350)
      	at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:588)
      	at com.atlassian.bitbucket.jenkins.internal.scm.CustomGitSCMSource.accessibleRetrieve(CustomGitSCMSource.java:33)
      	at com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:285)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
      	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:641)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1032)
      	at hudson.model.ResourceController.execute(ResourceController.java:107)
      	at hudson.model.Executor.run(Executor.java:449) 

        1. image-2022-08-03-09-25-22-965.png
          37 kB
          Jonny van Beek
        2. image-2022-08-04-08-57-15-727.png
          11 kB
          Jonny van Beek
        3. image-2022-08-04-09-19-59-382.png
          33 kB
          Jonny van Beek

            Unassigned Unassigned
            jonnyvb Jonny van Beek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: