java.io.IOException: Unable to parse ivy descriptors

Jenkins JIRA | Henrik Andersen | 3 months ago
  1. 0

    I use some ssh resolvers in my environment, and after upgrading ivy-plugin from version 1.24 to 1.26 I am consistently experiencing the _'java.lang.NoClassDefFoundError: com/jcraft/jsch/IdentityRepository'_ as shown in the stacktrace included further below. Reporters observations: - ivy-plugin has upgraded from Ivy 2.3.0 to 2.4.0 between version 1.24 and 1.26 - Ivy 2.3.0 is based on (according to its ivy-xml and its '-with-dependencies' distribution bundle) jsch-0.1.31 - Ivy 2.4.0 is based on (according to its ivy-xml and its '-with-dependencies' distribution bundle) jsch-0.1.50 - The SSH repository implementation in Ivy 2.4.0 appears to depend on features (IdentityRepository and possible others) that only came into the jsch library after jsch-0.1.31.jar Reporters suggestion: - Update the ivy-plugin to bundle the jsch-0.1.50.jar library to reflect the upgraded dependency of Ivy 2.4.0 Reporters workaround: - I manually repackaged the ivy.hpi file for ivy-plugin version 1.26 to include the jsch-0.1.50.jar library, and that appears to fully resolve the issue. However, this means running with a non-standard repository plugin. Alternatively, use ivy-plugin 1.24 (based on Ivy 2.3.0) if possible/applicable. Stacktrace from job console: Parsing Ivy Descriptor Files ERROR: Failed to parse ivy.xml files java.io.IOException: Unable to parse ivy descriptors at hudson.ivy.IvyModuleSetBuild$RunnerImpl.parseIvyDescriptorFiles(IvyModuleSetBuild.java:545) at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:380) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.Run.run(Run.java:1676) at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:281) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/IdentityRepository at org.apache.ivy.plugins.repository.ssh.AbstractSshBasedRepository.getSession(AbstractSshBasedRepository.java:108) at org.apache.ivy.plugins.repository.ssh.SshRepository.resolveResource(SshRepository.java:82) at org.apache.ivy.plugins.repository.ssh.SshResource.resolve(SshResource.java:101) at org.apache.ivy.plugins.repository.ssh.SshResource.exists(SshResource.java:70) at org.apache.ivy.plugins.resolver.RepositoryResolver.findResourceUsingPattern(RepositoryResolver.java:97) at org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findResourceUsingPatterns(AbstractPatternsBasedResolver.java:97) at org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findIvyFileRef(AbstractPatternsBasedResolver.java:66) at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:230) at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parseOtherIvyFile(XmlModuleDescriptorParser.java:725) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.extendsStarted(XmlModuleDescriptorParser.java:461) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.startElement(XmlModuleDescriptorParser.java:320) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:780) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:356) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333) at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:162) at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:139) at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:122) at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:113) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:268) at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:119) at org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistry.parseDescriptor(ModuleDescriptorParserRegistry.java:87) at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48) at hudson.ivy.IvyModuleSetBuild$IvyXmlParser$1.doInIvyContext(IvyModuleSetBuild.java:805) at org.apache.ivy.Ivy.execute(Ivy.java:366) at hudson.ivy.IvyModuleSetBuild$IvyXmlParser.call(IvyModuleSetBuild.java:802) at hudson.ivy.IvyModuleSetBuild$IvyXmlParser.call(IvyModuleSetBuild.java:759) at hudson.FilePath.act(FilePath.java:1077) at hudson.ivy.IvyModuleSetBuild$RunnerImpl.parseIvyDescriptorFiles(IvyModuleSetBuild.java:539) ... 7 more Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.IdentityRepository at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 47 more

    Jenkins JIRA | 3 months ago | Henrik Andersen
    java.io.IOException: Unable to parse ivy descriptors
  2. 0

    How to deploy war file to jboss eap 6.4 (local installed on my machine) using jenkins

    Stack Overflow | 1 year ago | Aliasger Motiwala
    org.codehaus.cargo.container.ContainerException: Failed to create deployer with implementation class org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer for the parameters (container [id = [jboss7x]], deployer type [remote]).
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 290#187362842

    GitHub | 9 months ago | gbrun
    java.lang.NoClassDefFoundError: hudson/tasks/test/TestObject
  5. 0

    [JIRA] [tfs-plugin] (JENKINS-32395) Exception thrown when TFS plugin does SCM polling to TFS (on Jenkins version 1.643)

    Google Groups | 11 months ago | patrice.huot@schneider-electric.com (JIRA)
    java.lang.NoClassDefFoundError: hudson/tasks/Mailer$UserProperty

  1. davidvanlaatum 22 times, last 6 months ago
  2. poroszd 1 times, last 1 month ago
22 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.jcraft.jsch.IdentityRepository

    at jenkins.util.AntClassLoader.findClassInComponents()
  2. jenkins.util
    AntClassLoader.loadClass
    1. jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
    2. jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    3. jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    3 frames
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    1 frame
  4. Apache Ivy
    XmlModuleDescriptorParser$Parser.startElement
    1. org.apache.ivy.plugins.repository.ssh.AbstractSshBasedRepository.getSession(AbstractSshBasedRepository.java:108)
    2. org.apache.ivy.plugins.repository.ssh.SshRepository.resolveResource(SshRepository.java:82)
    3. org.apache.ivy.plugins.repository.ssh.SshResource.resolve(SshResource.java:101)
    4. org.apache.ivy.plugins.repository.ssh.SshResource.exists(SshResource.java:70)
    5. org.apache.ivy.plugins.resolver.RepositoryResolver.findResourceUsingPattern(RepositoryResolver.java:97)
    6. org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findResourceUsingPatterns(AbstractPatternsBasedResolver.java:97)
    7. org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findIvyFileRef(AbstractPatternsBasedResolver.java:66)
    8. org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:230)
    9. org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
    10. org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parseOtherIvyFile(XmlModuleDescriptorParser.java:725)
    11. org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.extendsStarted(XmlModuleDescriptorParser.java:461)
    12. org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.startElement(XmlModuleDescriptorParser.java:320)
    12 frames
  5. Java RT
    SAXParserImpl.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
    2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
    3. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:780)
    4. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:356)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
    6. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    7. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
    8. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
    10. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
    11. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    12. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
    13. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
    14. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
    14 frames
  6. Apache Ivy
    AbstractModuleDescriptorParser.parseDescriptor
    1. org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:162)
    2. org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:139)
    3. org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:122)
    4. org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:113)
    5. org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:268)
    6. org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:119)
    7. org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistry.parseDescriptor(ModuleDescriptorParserRegistry.java:87)
    8. org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
    8 frames
  7. hudson.ivy
    IvyModuleSetBuild$IvyXmlParser$1.doInIvyContext
    1. hudson.ivy.IvyModuleSetBuild$IvyXmlParser$1.doInIvyContext(IvyModuleSetBuild.java:805)
    1 frame
  8. Apache Ivy
    Ivy.execute
    1. org.apache.ivy.Ivy.execute(Ivy.java:366)
    1 frame
  9. hudson.ivy
    IvyModuleSetBuild$IvyXmlParser.call
    1. hudson.ivy.IvyModuleSetBuild$IvyXmlParser.call(IvyModuleSetBuild.java:802)
    2. hudson.ivy.IvyModuleSetBuild$IvyXmlParser.call(IvyModuleSetBuild.java:759)
    2 frames
  10. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:1077)
    1 frame
  11. hudson.ivy
    IvyModuleSetBuild$RunnerImpl.doRun
    1. hudson.ivy.IvyModuleSetBuild$RunnerImpl.parseIvyDescriptorFiles(IvyModuleSetBuild.java:539)
    2. hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(IvyModuleSetBuild.java:380)
    2 frames
  12. Hudson
    Run.run
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    2. hudson.model.Run.execute(Run.java:1738)
    3. hudson.model.Run.run(Run.java:1676)
    3 frames
  13. hudson.ivy
    IvyModuleSetBuild.run
    1. hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:281)
    1 frame
  14. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:98)
    2. hudson.model.Executor.run(Executor.java:410)
    2 frames