hudson.util.IOException2: Unable to read D:\jenkins\home\jobs\jobName\config.xml

Jenkins JIRA | Olivier Jolit | 4 years ago
  1. 0

    After migrating from 1.473 to 1.478 and restarting Jenkins, we get the following exceptions thrown: {code} EVERE: Failed Loading job jobName hudson.util.IOException2: Unable to read D:\jenkins\home\jobs\jobName\config.xml at hudson.XmlFile.read(XmlFile.java:143) at hudson.model.Items.load(Items.java:208) at jenkins.model.Jenkins$17.run(Jenkins.java:2494) 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:879) 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: hudson/maven/local_repo/PerJobLocalRepositoryLocator at sun.reflect.GeneratedSerializationConstructorAccessor47.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76) at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:335) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:93) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:864) at hudson.XmlFile.read(XmlFile.java:137) ... 10 more Caused by: java.lang.ClassNotFoundException: hudson.maven.local_repo.PerJobLocalRepositoryLocator at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 26 more {code} For all our jobs except the ones we use to produce nightly builds. The config.xml used for projects which fail is: {code} <?xml version='1.0' encoding='UTF-8'?> <maven2-moduleset> <actions/> <description></description> <logRotator> <daysToKeep>60</daysToKeep> <numToKeep>-1</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>-1</artifactNumToKeep> </logRotator> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.SubversionSCM"> <locations> <hudson.scm.SubversionSCM_-ModuleLocation> <remote>our svn url</remote> <local>.</local> </hudson.scm.SubversionSCM_-ModuleLocation> </locations> <excludedRegions></excludedRegions> <includedRegions></includedRegions> <excludedUsers></excludedUsers> <excludedRevprop></excludedRevprop> <excludedCommitMessages></excludedCommitMessages> <workspaceUpdater class="hudson.scm.subversion.CheckoutUpdater"/> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>true</blockBuildWhenUpstreamBuilding> <triggers class="vector"> <hudson.triggers.TimerTrigger> <spec>0 */3 * * *</spec> </hudson.triggers.TimerTrigger> <hudson.triggers.SCMTrigger> <spec>5 * * * *</spec> </hudson.triggers.SCMTrigger> </triggers> <concurrentBuild>false</concurrentBuild> <rootModule> <groupId>our.groupId</groupId> <artifactId>artifactId</artifactId> </rootModule> <goals>clean install -e -X</goals> <defaultGoals>install</defaultGoals> <aggregatorStyleBuild>true</aggregatorStyleBuild> <incrementalBuild>false</incrementalBuild> <perModuleEmail>true</perModuleEmail> <ignoreUpstremChanges>true</ignoreUpstremChanges> <archivingDisabled>false</archivingDisabled> <resolveDependencies>false</resolveDependencies> <processPlugins>false</processPlugins> <mavenValidationLevel>-1</mavenValidationLevel> <runHeadless>false</runHeadless> <settingConfigId></settingConfigId> <globalSettingConfigId></globalSettingConfigId> <reporters> <hudson.maven.reporters.MavenMailer> <recipients></recipients> <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> <sendToIndividuals>true</sendToIndividuals> <perModuleEmail>true</perModuleEmail> </hudson.maven.reporters.MavenMailer> </reporters> <publishers> <hudson.tasks.BuildTrigger> <childProjects>child1</childProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> <color>BLUE</color> </threshold> </hudson.tasks.BuildTrigger> <hudson.plugins.performance.PerformancePublisher> <errorFailedThreshold>0</errorFailedThreshold> <errorUnstableThreshold>0</errorUnstableThreshold> <parsers> <hudson.plugins.performance.JUnitParser> <glob>**/TEST-*.xml </glob> </hudson.plugins.performance.JUnitParser> </parsers> </hudson.plugins.performance.PerformancePublisher> <hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> <sendToIndividuals>false</sendToIndividuals> </hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> </publishers> <buildWrappers/> <prebuilders/> <postbuilders/> <runPostStepsIfResult> <name>FAILURE</name> <ordinal>2</ordinal> <color>RED</color> </runPostStepsIfResult> </maven2-moduleset> {code} And the one not failing is (same code base, same SVN url): {code} <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description>This job will deploy the artifacts to the nightly builds&apos; repository</description> <logRotator> <daysToKeep>31</daysToKeep> <numToKeep>-1</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>-1</artifactNumToKeep> </logRotator> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.SubversionSCM"> <locations> <hudson.scm.SubversionSCM_-ModuleLocation> <remote>our svn url</remote> <local>.</local> </hudson.scm.SubversionSCM_-ModuleLocation> </locations> <excludedRegions></excludedRegions> <includedRegions></includedRegions> <excludedUsers></excludedUsers> <excludedRevprop></excludedRevprop> <excludedCommitMessages></excludedCommitMessages> <workspaceUpdater class="hudson.scm.subversion.CheckoutUpdater"/> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.BatchFile> <command>D:\jenkins\scripts\nightly_builds_update_version.bat</command> </hudson.tasks.BatchFile> <hudson.tasks.Maven> <targets>clean install</targets> <mavenName>(Default)</mavenName> <usePrivateRepository>false</usePrivateRepository> </hudson.tasks.Maven> <hudson.tasks.Maven> <targets>deploy -Dnightly.build -DskipTests</targets> <mavenName>(Default)</mavenName> <usePrivateRepository>false</usePrivateRepository> </hudson.tasks.Maven> </builders> <publishers> <hudson.tasks.BuildTrigger> <childProjects>child1</childProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> <color>BLUE</color> </threshold> </hudson.tasks.BuildTrigger> <hudson.plugins.emailext.ExtendedEmailPublisher> <recipientList>$DEFAULT_RECIPIENTS</recipientList> <configuredTriggers> <hudson.plugins.emailext.plugins.trigger.FailureTrigger> <email> <recipientList>${NIGHTLY_BUILDS_RECIPIENTS}</recipientList> <subject>${PROJECT_NAME} - Failure</subject> <body>${PROJECT_NAME} - Failure. The artifacts are not available on the nighlty builds&apos; repository.</body> <sendToDevelopers>true</sendToDevelopers> <sendToRequester>false</sendToRequester> <includeCulprits>false</includeCulprits> <sendToRecipientList>true</sendToRecipientList> </email> </hudson.plugins.emailext.plugins.trigger.FailureTrigger> </configuredTriggers> <contentType>default</contentType> <defaultSubject>$DEFAULT_SUBJECT</defaultSubject> <defaultContent>$DEFAULT_CONTENT</defaultContent> <attachmentsPattern></attachmentsPattern> </hudson.plugins.emailext.ExtendedEmailPublisher> <hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> <sendToIndividuals>false</sendToIndividuals> </hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> <hudson.tasks.Mailer> <recipients>email</recipients> <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> <sendToIndividuals>true</sendToIndividuals> </hudson.tasks.Mailer> </publishers> <buildWrappers/> </project> {code} I don't know which component is affected, I hope I almost got the good one. Regards, Olivier

    Jenkins JIRA | 4 years ago | Olivier Jolit
    hudson.util.IOException2: Unable to read D:\jenkins\home\jobs\jobName\config.xml
  2. 0

    After migrating from 1.473 to 1.478 and restarting Jenkins, we get the following exceptions thrown: {code} EVERE: Failed Loading job jobName hudson.util.IOException2: Unable to read D:\jenkins\home\jobs\jobName\config.xml at hudson.XmlFile.read(XmlFile.java:143) at hudson.model.Items.load(Items.java:208) at jenkins.model.Jenkins$17.run(Jenkins.java:2494) 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:879) 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: hudson/maven/local_repo/PerJobLocalRepositoryLocator at sun.reflect.GeneratedSerializationConstructorAccessor47.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76) at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:335) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:93) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:864) at hudson.XmlFile.read(XmlFile.java:137) ... 10 more Caused by: java.lang.ClassNotFoundException: hudson.maven.local_repo.PerJobLocalRepositoryLocator at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 26 more {code} For all our jobs except the ones we use to produce nightly builds. The config.xml used for projects which fail is: {code} <?xml version='1.0' encoding='UTF-8'?> <maven2-moduleset> <actions/> <description></description> <logRotator> <daysToKeep>60</daysToKeep> <numToKeep>-1</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>-1</artifactNumToKeep> </logRotator> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.SubversionSCM"> <locations> <hudson.scm.SubversionSCM_-ModuleLocation> <remote>our svn url</remote> <local>.</local> </hudson.scm.SubversionSCM_-ModuleLocation> </locations> <excludedRegions></excludedRegions> <includedRegions></includedRegions> <excludedUsers></excludedUsers> <excludedRevprop></excludedRevprop> <excludedCommitMessages></excludedCommitMessages> <workspaceUpdater class="hudson.scm.subversion.CheckoutUpdater"/> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>true</blockBuildWhenUpstreamBuilding> <triggers class="vector"> <hudson.triggers.TimerTrigger> <spec>0 */3 * * *</spec> </hudson.triggers.TimerTrigger> <hudson.triggers.SCMTrigger> <spec>5 * * * *</spec> </hudson.triggers.SCMTrigger> </triggers> <concurrentBuild>false</concurrentBuild> <rootModule> <groupId>our.groupId</groupId> <artifactId>artifactId</artifactId> </rootModule> <goals>clean install -e -X</goals> <defaultGoals>install</defaultGoals> <aggregatorStyleBuild>true</aggregatorStyleBuild> <incrementalBuild>false</incrementalBuild> <perModuleEmail>true</perModuleEmail> <ignoreUpstremChanges>true</ignoreUpstremChanges> <archivingDisabled>false</archivingDisabled> <resolveDependencies>false</resolveDependencies> <processPlugins>false</processPlugins> <mavenValidationLevel>-1</mavenValidationLevel> <runHeadless>false</runHeadless> <settingConfigId></settingConfigId> <globalSettingConfigId></globalSettingConfigId> <reporters> <hudson.maven.reporters.MavenMailer> <recipients></recipients> <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> <sendToIndividuals>true</sendToIndividuals> <perModuleEmail>true</perModuleEmail> </hudson.maven.reporters.MavenMailer> </reporters> <publishers> <hudson.tasks.BuildTrigger> <childProjects>child1</childProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> <color>BLUE</color> </threshold> </hudson.tasks.BuildTrigger> <hudson.plugins.performance.PerformancePublisher> <errorFailedThreshold>0</errorFailedThreshold> <errorUnstableThreshold>0</errorUnstableThreshold> <parsers> <hudson.plugins.performance.JUnitParser> <glob>**/TEST-*.xml </glob> </hudson.plugins.performance.JUnitParser> </parsers> </hudson.plugins.performance.PerformancePublisher> <hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> <sendToIndividuals>false</sendToIndividuals> </hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> </publishers> <buildWrappers/> <prebuilders/> <postbuilders/> <runPostStepsIfResult> <name>FAILURE</name> <ordinal>2</ordinal> <color>RED</color> </runPostStepsIfResult> </maven2-moduleset> {code} And the one not failing is (same code base, same SVN url): {code} <?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description>This job will deploy the artifacts to the nightly builds&apos; repository</description> <logRotator> <daysToKeep>31</daysToKeep> <numToKeep>-1</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>-1</artifactNumToKeep> </logRotator> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.SubversionSCM"> <locations> <hudson.scm.SubversionSCM_-ModuleLocation> <remote>our svn url</remote> <local>.</local> </hudson.scm.SubversionSCM_-ModuleLocation> </locations> <excludedRegions></excludedRegions> <includedRegions></includedRegions> <excludedUsers></excludedUsers> <excludedRevprop></excludedRevprop> <excludedCommitMessages></excludedCommitMessages> <workspaceUpdater class="hudson.scm.subversion.CheckoutUpdater"/> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers class="vector"/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.BatchFile> <command>D:\jenkins\scripts\nightly_builds_update_version.bat</command> </hudson.tasks.BatchFile> <hudson.tasks.Maven> <targets>clean install</targets> <mavenName>(Default)</mavenName> <usePrivateRepository>false</usePrivateRepository> </hudson.tasks.Maven> <hudson.tasks.Maven> <targets>deploy -Dnightly.build -DskipTests</targets> <mavenName>(Default)</mavenName> <usePrivateRepository>false</usePrivateRepository> </hudson.tasks.Maven> </builders> <publishers> <hudson.tasks.BuildTrigger> <childProjects>child1</childProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> <color>BLUE</color> </threshold> </hudson.tasks.BuildTrigger> <hudson.plugins.emailext.ExtendedEmailPublisher> <recipientList>$DEFAULT_RECIPIENTS</recipientList> <configuredTriggers> <hudson.plugins.emailext.plugins.trigger.FailureTrigger> <email> <recipientList>${NIGHTLY_BUILDS_RECIPIENTS}</recipientList> <subject>${PROJECT_NAME} - Failure</subject> <body>${PROJECT_NAME} - Failure. The artifacts are not available on the nighlty builds&apos; repository.</body> <sendToDevelopers>true</sendToDevelopers> <sendToRequester>false</sendToRequester> <includeCulprits>false</includeCulprits> <sendToRecipientList>true</sendToRecipientList> </email> </hudson.plugins.emailext.plugins.trigger.FailureTrigger> </configuredTriggers> <contentType>default</contentType> <defaultSubject>$DEFAULT_SUBJECT</defaultSubject> <defaultContent>$DEFAULT_CONTENT</defaultContent> <attachmentsPattern></attachmentsPattern> </hudson.plugins.emailext.ExtendedEmailPublisher> <hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> <sendToIndividuals>false</sendToIndividuals> </hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher> <hudson.tasks.Mailer> <recipients>email</recipients> <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> <sendToIndividuals>true</sendToIndividuals> </hudson.tasks.Mailer> </publishers> <buildWrappers/> </project> {code} I don't know which component is affected, I hope I almost got the good one. Regards, Olivier

    Jenkins JIRA | 4 years ago | Olivier Jolit
    hudson.util.IOException2: Unable to read D:\jenkins\home\jobs\jobName\config.xml
  3. 0

    After upgrade to 1.529 from 1.523, the Maven jobs aren't loaded correctly. Downgrade back solves it. All the other types of jobs are still visible. The Maven plugin version doesn't change this behavior. {quote} Failed Loading job BT_Nightly hudson.util.IOException2: Unable to read /home/.../jobs/.../config.xml at hudson.XmlFile.read(XmlFile.java:149) at hudson.model.Items.load(Items.java:220) at jenkins.model.Jenkins$18.run(Jenkins.java:2553) 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:895) 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.maven.MavenModuleSet at sun.reflect.GeneratedSerializationConstructorAccessor73.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76) at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:376) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:221) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061) at hudson.util.XStream2.unmarshal(XStream2.java:109) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:925) at hudson.XmlFile.read(XmlFile.java:143) }} {quote}

    Jenkins JIRA | 3 years ago | Waldek M
    hudson.util.IOException2: Unable to read /home/.../jobs/.../config.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After upgrade to 1.529 from 1.523, the Maven jobs aren't loaded correctly. Downgrade back solves it. All the other types of jobs are still visible. The Maven plugin version doesn't change this behavior. {quote} Failed Loading job BT_Nightly hudson.util.IOException2: Unable to read /home/.../jobs/.../config.xml at hudson.XmlFile.read(XmlFile.java:149) at hudson.model.Items.load(Items.java:220) at jenkins.model.Jenkins$18.run(Jenkins.java:2553) 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:895) 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.maven.MavenModuleSet at sun.reflect.GeneratedSerializationConstructorAccessor73.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76) at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:376) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:221) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061) at hudson.util.XStream2.unmarshal(XStream2.java:109) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:925) at hudson.XmlFile.read(XmlFile.java:143) }} {quote}

    Jenkins JIRA | 3 years ago | Waldek M
    hudson.util.IOException2: Unable to read /home/.../jobs/.../config.xml
  6. 0

    HibernatePersistence class not found exception with JPA + Hibernate + OSGI

    Stack Overflow | 2 years ago | user1926519
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#53308cd' defined in OSGi resource[classpath:/spring/gdl-commons-db-jpa-context.xml|bnd.id=177|bnd.sym=gdl-open-domain]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence

  1. Reich 24 times, last 3 weeks ago
  2. MoYapro 30 times, last 2 months ago
  3. tfr 3 times, last 6 months ago
  4. DannyDBag 1 times, last 6 months ago
21 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

    hudson.maven.local_repo.PerJobLocalRepositoryLocator

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Constructor.newInstance
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    6. sun.reflect.GeneratedSerializationConstructorAccessor47.newInstance(Unknown Source)
    7. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    7 frames
  3. XStream Core
    Sun14ReflectionProvider.newInstance
    1. com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76)
    1 frame
  4. Hudson
    RobustReflectionConverter.unmarshal
    1. hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:335)
    2. hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
    2 frames
  5. XStream Core
    XStream.unmarshal
    1. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    2. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    3. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    4. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    5. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
    6. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    7. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
    7 frames
  6. Hudson
    XStream2.unmarshal
    1. hudson.util.XStream2.unmarshal(XStream2.java:93)
    1 frame
  7. XStream Core
    XStream.fromXML
    1. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
    2. com.thoughtworks.xstream.XStream.fromXML(XStream.java:864)
    2 frames
  8. Hudson
    Items.load
    1. hudson.XmlFile.read(XmlFile.java:137)
    2. hudson.model.Items.load(Items.java:208)
    2 frames
  9. jenkins.model
    Jenkins$17.run
    1. jenkins.model.Jenkins$17.run(Jenkins.java:2494)
    1 frame
  10. 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
  11. jenkins.model
    Jenkins$7.runTask
    1. jenkins.model.Jenkins$7.runTask(Jenkins.java:879)
    1 frame
  12. 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
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:662)
    3 frames