Jenkins中的“ Java.io.IOException:无法读取C:\ Program Files(x86)\ Jenkins \ fingerprints \”错误

时间:2019-12-03 09:00:50

标签: maven jenkins jenkins-pipeline

通过Jenkins执行Maven构建时,出现错误java.util.concurrent.ExecutionException: java.io.IOException: Unable to read C:\Program Files (x86)\Jenkins\fingerprints\f8\fc\0496846f567ec951ac0a0e25ed00.xml。我没有记录指纹,而是清理了Maven存储库。甚至没有任何损坏的文件,但是我仍然面临着这个问题。

Modules changed, recalculating dependency graph
Established TCP socket on 57784
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[BI_Ferrero] $ java -cp c:\jenkins\maven35-agent.jar;D:\Software\apache-maven-3.6.2\boot\plexus-classworlds-2.6.0.jar;D:\Software\apache-maven-3.6.2/conf/logging jenkins.maven3.agent.Maven35Main D:\Software\apache-maven-3.6.2 C:\Users\qauser\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\47\e32542f-272f8053 c:\jenkins\maven35-interceptor.jar c:\jenkins\maven3-interceptor-commons.jar 57784
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f c:\jenkins\workspace\BI_Ferrero\pom.xml install
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< BI_Ferrero_new:BI_Ferrero_new >--------------------
[INFO] Building BI_Ferrero_new 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.sun.xml.bind:jaxb-core:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.sun.xml.bind:jaxb-impl:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.sun.xml.bind:jaxb-jxc:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.sun.xml.bind:jaxb-xjc:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BI_Ferrero_new ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ BI_Ferrero_new ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ BI_Ferrero_new ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory c:\jenkins\workspace\BI_Ferrero\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ BI_Ferrero_new ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ BI_Ferrero_new ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
...
... TestNG 6.8.9beta by Cédric Beust (cedric@beust.com)
...

Preparing to send email
email sent sucessfully
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 60.766 s - in TestSuite
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[JENKINS] Recording test results
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.SurefireArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.BuildInfoRecorder$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ BI_Ferrero_new ---
[INFO] Building jar: c:\jenkins\workspace\BI_Ferrero\target\BI_Ferrero_new-0.0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ BI_Ferrero_new ---
[INFO] Installing c:\jenkins\workspace\BI_Ferrero\target\BI_Ferrero_new-0.0.1-SNAPSHOT.jar to C:\Users\qauser\.m2\repository\BI_Ferrero_new\BI_Ferrero_new\0.0.1-SNAPSHOT\BI_Ferrero_new-0.0.1-SNAPSHOT.jar
[INFO] Installing c:\jenkins\workspace\BI_Ferrero\pom.xml to C:\Users\qauser\.m2\repository\BI_Ferrero_new\BI_Ferrero_new\0.0.1-SNAPSHOT\BI_Ferrero_new-0.0.1-SNAPSHOT.pom
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:24 min
[INFO] Finished at: 2019-12-03T12:33:26+05:30
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.io.IOException: Unable to read C:\Program Files (x86)\Jenkins\fingerprints\f8\fc\0496846f567ec951ac0a0e25ed00.xml
    at hudson.remoting.Channel$2.adapt(Channel.java:994)
    at hudson.remoting.Channel$2.adapt(Channel.java:988)
    at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
    at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:146)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to read C:\Program Files (x86)\Jenkins\fingerprints\f8\fc\0496846f567ec951ac0a0e25ed00.xml
    at hudson.XmlFile.read(XmlFile.java:149)
    at hudson.model.Fingerprint.load(Fingerprint.java:1375)
    at hudson.model.Fingerprint.load(Fingerprint.java:1363)
    at hudson.model.FingerprintMap.load(FingerprintMap.java:97)
    at hudson.model.FingerprintMap.load(FingerprintMap.java:47)
    at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:161)
    at hudson.model.FingerprintMap.get(FingerprintMap.java:82)
    at hudson.model.FingerprintMap.get(FingerprintMap.java:47)
    at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:111)
    at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:68)
    at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:125)
    at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:112)
    at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:452)
    at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:584)
    at sun.reflect.GeneratedMethodAccessor618.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at hudson.model.Executor$2.call(Executor.java:912)
    at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
    at com.sun.proxy.$Proxy90.execute(Unknown Source)
    at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:294)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
    at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
    ... 4 more
    Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
        at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
        at hudson.remoting.Channel$2.adapt(Channel.java:992)
        at hudson.remoting.Channel$2.adapt(Channel.java:988)
        at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
        at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:146)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
        at hudson.remoting.UserRequest.perform(UserRequest.java:212)
        at hudson.remoting.UserRequest.perform(UserRequest.java:54)
        at hudson.remoting.Request$2.run(Request.java:369)
        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
        ... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
    at com.thoughtworks.xstream.core.util.FastStack.pop(FastStack.java:42)
    at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:125)
    at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
    at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
    at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
    at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1053)
    at hudson.XmlFile.read(XmlFile.java:147)
    ... 32 more
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.io.IOException: Unable to read C:\Program Files (x86)\Jenkins\fingerprints\f8\fc\0496846f567ec951ac0a0e25ed00.xml
    at hudson.remoting.Channel$2.adapt(Channel.java:994)
    at hudson.remoting.Channel$2.adapt(Channel.java:988)
    at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
    at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:146)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to read C:\Program Files (x86)\Jenkins\fingerprints\f8\fc\0496846f567ec951ac0a0e25ed00.xml
    at hudson.XmlFile.read(XmlFile.java:149)
    at hudson.model.Fingerprint.load(Fingerprint.java:1375)
    at hudson.model.Fingerprint.load(Fingerprint.java:1363)
    at hudson.model.FingerprintMap.load(FingerprintMap.java:97)
    at hudson.model.FingerprintMap.load(FingerprintMap.java:47)
    at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:161)
    at hudson.model.FingerprintMap.get(FingerprintMap.java:82)
    at hudson.model.FingerprintMap.get(FingerprintMap.java:47)
    at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:111)
    at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:68)
    at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:125)
    at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:112)
    at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:452)
    at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:584)
    at sun.reflect.GeneratedMethodAccessor618.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at hudson.model.Executor$2.call(Executor.java:912)
    at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
    at com.sun.proxy.$Proxy90.execute(Unknown Source)
    at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:294)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
    at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
    ... 4 more
    Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
        at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
        at hudson.remoting.Channel$2.adapt(Channel.java:992)
        at hudson.remoting.Channel$2.adapt(Channel.java:988)
        at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
        at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:146)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
        at hudson.remoting.UserRequest.perform(UserRequest.java:212)
        at hudson.remoting.UserRequest.perform(UserRequest.java:54)
        at hudson.remoting.Request$2.run(Request.java:369)
        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
        ... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
    at com.thoughtworks.xstream.core.util.FastStack.pop(FastStack.java:42)
    at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:125)
    at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
    at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
    at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
    at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1053)
    at hudson.XmlFile.read(XmlFile.java:147)
    ... 32 more
[JENKINS] Archiving c:\jenkins\workspace\BI_Ferrero\pom.xml to BI_Ferrero_new/BI_Ferrero_new/0.0.1-SNAPSHOT/BI_Ferrero_new-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving c:\jenkins\workspace\BI_Ferrero\target\BI_Ferrero_new-0.0.1-SNAPSHOT.jar to BI_Ferrero_new/BI_Ferrero_new/0.0.1-SNAPSHOT/BI_Ferrero_new-0.0.1-SNAPSHOT.jar
channel stopped
Finished: SUCCESS

0 个答案:

没有答案