hudson.util.IOException2: Failed to initialize

Jenkins JIRA | Markus Schulte | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Hi, I cannot install "Checkstyle-plugin"¹ for time being. I select the plugin at /pluginManager/available to be installed. After Donwload+Restarting the plugin is still not installed. The Jenkins.log give me: Feb 27, 2013 5:40:15 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin checkstyle hudson.util.IOException2: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:371) at hudson.PluginManager$2$1$1.run(PluginManager.java:333) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat at hudson.plugins.checkstyle.rules.TopicRule.extractNoteContent(TopicRule.java:63) at hudson.plugins.checkstyle.rules.TopicRule.end(TopicRule.java:40) at org.apache.commons.digester.Rule.end(Rule.java:257) at org.apache.commons.digester.Digester.endElement(Digester.java:1345) at org.apache.commons.digester.NodeCreateRule$NodeBuilder.endElement(NodeCreateRule.java:236) at org.apache.commons.digester.Digester.endElement(Digester.java:1279) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at org.apache.commons.digester.Digester.parse(Digester.java:1916) at hudson.plugins.checkstyle.rules.CheckStyleRules.initialize(CheckStyleRules.java:60) at hudson.plugins.checkstyle.CheckStylePlugin.start(CheckStylePlugin.java:14) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368) ... 9 more Caused by: java.lang.ClassNotFoundException: org.apache.xml.serialize.OutputFormat at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 30 more ¹ https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin

    Jenkins JIRA | 4 years ago | Markus Schulte
    hudson.util.IOException2: Failed to initialize
  2. 0

    Hi, I cannot install "Checkstyle-plugin"¹ for time being. I select the plugin at /pluginManager/available to be installed. After Donwload+Restarting the plugin is still not installed. The Jenkins.log give me: Feb 27, 2013 5:40:15 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin checkstyle hudson.util.IOException2: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:371) at hudson.PluginManager$2$1$1.run(PluginManager.java:333) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat at hudson.plugins.checkstyle.rules.TopicRule.extractNoteContent(TopicRule.java:63) at hudson.plugins.checkstyle.rules.TopicRule.end(TopicRule.java:40) at org.apache.commons.digester.Rule.end(Rule.java:257) at org.apache.commons.digester.Digester.endElement(Digester.java:1345) at org.apache.commons.digester.NodeCreateRule$NodeBuilder.endElement(NodeCreateRule.java:236) at org.apache.commons.digester.Digester.endElement(Digester.java:1279) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at org.apache.commons.digester.Digester.parse(Digester.java:1916) at hudson.plugins.checkstyle.rules.CheckStyleRules.initialize(CheckStyleRules.java:60) at hudson.plugins.checkstyle.CheckStylePlugin.start(CheckStylePlugin.java:14) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368) ... 9 more Caused by: java.lang.ClassNotFoundException: org.apache.xml.serialize.OutputFormat at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 30 more ¹ https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin

    Jenkins JIRA | 4 years ago | Markus Schulte
    hudson.util.IOException2: Failed to initialize
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
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

    org.apache.xml.serialize.OutputFormat

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    6 frames
  3. Checkstyle Plug-in
    TopicRule.end
    1. hudson.plugins.checkstyle.rules.TopicRule.extractNoteContent(TopicRule.java:63)
    2. hudson.plugins.checkstyle.rules.TopicRule.end(TopicRule.java:40)
    2 frames
  4. Commons Digester
    Digester.endElement
    1. org.apache.commons.digester.Rule.end(Rule.java:257)
    2. org.apache.commons.digester.Digester.endElement(Digester.java:1345)
    3. org.apache.commons.digester.NodeCreateRule$NodeBuilder.endElement(NodeCreateRule.java:236)
    4. org.apache.commons.digester.Digester.endElement(Digester.java:1279)
    4 frames
  5. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
    2. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742)
    3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
    6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
    7. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    8. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
    9. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
    10. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
    10 frames
  6. Commons Digester
    Digester.parse
    1. org.apache.commons.digester.Digester.parse(Digester.java:1916)
    1 frame
  7. Checkstyle Plug-in
    CheckStylePlugin.start
    1. hudson.plugins.checkstyle.rules.CheckStyleRules.initialize(CheckStyleRules.java:60)
    2. hudson.plugins.checkstyle.CheckStylePlugin.start(CheckStylePlugin.java:14)
    2 frames
  8. Hudson
    PluginManager$2$1$1.run
    1. hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379)
    2. hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368)
    3. hudson.PluginManager$2$1$1.run(PluginManager.java:333)
    3 frames
  9. init
    Reactor.runTask
    1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
    2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
    2 frames
  10. jenkins.model
    Jenkins$7.runTask
    1. jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
    1 frame
  11. init
    Reactor$Node.run
    1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
    2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
    2 frames
  12. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    3. java.lang.Thread.run(Thread.java:722)
    3 frames