java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

Jenkins JIRA | Andrew Kujtan | 2 years ago
  1. 0

    When creating the projects, I am getting sporadic failures in the jenkins error log as seen below. Jobs then fail to be updated. {code} INFO: createOrUpdateConfig for WebContent Mar 23, 2015 10:29:12 AM javaposse.jobdsl.plugin.JenkinsJobManagement updateExistingItem WARNING: Error writing updated item to file. java.io.IOException: Failed to persist config.xml at hudson.model.AbstractItem.updateByXml(AbstractItem.java:646) at javaposse.jobdsl.plugin.JenkinsJobManagement.updateExistingItem(JenkinsJobManagement.java:378) at javaposse.jobdsl.plugin.JenkinsJobManagement.createOrUpdateConfig(JenkinsJobManagement.java:123) at javaposse.jobdsl.dsl.DslScriptLoader.extractGeneratedJobs(DslScriptLoader.java:120) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:97) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:203) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.Build$BuildExecution.build(Build.java:203) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1751) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191) at jenkins.util.xml.XMLUtils.safeTransform(XMLUtils.java:48) at hudson.model.AbstractItem.updateByXml(AbstractItem.java:641) ... 14 more Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser 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:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383) at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82) at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228) ... 17 more {code}

    Jenkins JIRA | 2 years ago | Andrew Kujtan
    java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
  2. 0

    When creating the projects, I am getting sporadic failures in the jenkins error log as seen below. Jobs then fail to be updated. {code} INFO: createOrUpdateConfig for WebContent Mar 23, 2015 10:29:12 AM javaposse.jobdsl.plugin.JenkinsJobManagement updateExistingItem WARNING: Error writing updated item to file. java.io.IOException: Failed to persist config.xml at hudson.model.AbstractItem.updateByXml(AbstractItem.java:646) at javaposse.jobdsl.plugin.JenkinsJobManagement.updateExistingItem(JenkinsJobManagement.java:378) at javaposse.jobdsl.plugin.JenkinsJobManagement.createOrUpdateConfig(JenkinsJobManagement.java:123) at javaposse.jobdsl.dsl.DslScriptLoader.extractGeneratedJobs(DslScriptLoader.java:120) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:97) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:203) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.Build$BuildExecution.build(Build.java:203) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1751) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191) at jenkins.util.xml.XMLUtils.safeTransform(XMLUtils.java:48) at hudson.model.AbstractItem.updateByXml(AbstractItem.java:641) ... 14 more Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser 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:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383) at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82) at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228) ... 17 more {code}

    Jenkins JIRA | 2 years ago | Andrew Kujtan
    java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
  3. 0

    Jenkins users - REST API update job boken?

    nabble.com | 1 year ago
    java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins [Jenkins]

    theforeman.org | 1 year ago
    java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
  6. 0

    GitHub comment 130#164213360

    GitHub | 12 months ago | stephenh
    java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

  1. kid 2 times, last 8 months ago
  2. archenroot 1 times, last 1 week ago
  3. tyson925 5 times, last 2 weeks ago
  4. tzrlk 1 times, last 2 weeks ago
  5. musketyr 1 times, last 2 weeks ago
63 more registered users
31 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

    org.apache.xerces.parsers.SAXParser

    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:425)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    6 frames
  3. Jetty
    WebAppClassLoader.loadClass
    1. org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:430)
    2. org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
    2 frames
  4. Java RT
    XMLReaderFactory.createXMLReader
    1. org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82)
    2. org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228)
    3. org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230)
    4. org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
    4 frames
  5. jenkins.util.xml
    XMLUtils.safeTransform
    1. jenkins.util.xml.XMLUtils.safeTransform(XMLUtils.java:48)
    1 frame
  6. Hudson
    AbstractItem.updateByXml
    1. hudson.model.AbstractItem.updateByXml(AbstractItem.java:641)
    1 frame