• 为什么写博客,是因为遇到的坑,不希望别人在踩一遍!
  • 选择了,剩下的就是坚持和努力-------致自己!
  • 当能力达不到梦想时,更需要学习,努力,拼搏

jenkins 报错 ERROR: Asynchronous execution failure 或 java.util.concurrent.ExecutionException: java.lang.NullPointerException

Jenkins 无名 2年前 (2018-12-22) 2397次浏览 0个评论

jenkins 报错 ERROR: Asynchronous execution failure 或 java.util.concurrent.ExecutionException: java.lang.NullPointerException

最近测试环境jenkins 不知道怎么问题,应用 maven 打包后老是报错 ERROR: Asynchronous execution failure 或 java.util.concurrent.ExecutionException: java.lang.NullPointerException  ,但是没有影响 mav zu最后编译的包都正常,查了两天才知道是jenkins 一个bug。

解决方法:

删除 .jenkins/fingerprints/ 目录下所有文件夹

重启jenkins

提示:删除前一定要备份哦 fingerprints 目录,有问题可以回退。

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50.886 s
[INFO] Finished at: 2018-12-22T10:26:16+08:00
[INFO] Final Memory: 94M/1461M
[INFO] ------------------------------------------------------------------------
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at hudson.remoting.Channel$2.adapt(Channel.java:992)
	at hudson.remoting.Channel$2.adapt(Channel.java:986)
	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(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at hudson.model.Fingerprint.addWithoutSaving(Fingerprint.java:1035)
	at hudson.model.Fingerprint.add(Fingerprint.java:1030)
	at hudson.model.Fingerprint.addFor(Fingerprint.java:1023)
	at hudson.model.Fingerprint.add(Fingerprint.java:1014)
	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.GeneratedMethodAccessor296.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at hudson.model.Executor$2.call(Executor.java:912)
	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
	at com.sun.proxy.$Proxy80.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:1741)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
		at hudson.remoting.Channel$2.adapt(Channel.java:990)
		at hudson.remoting.Channel$2.adapt(Channel.java:986)
		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
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at hudson.remoting.Channel$2.adapt(Channel.java:992)
	at hudson.remoting.Channel$2.adapt(Channel.java:986)
	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(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at hudson.model.Fingerprint.addWithoutSaving(Fingerprint.java:1035)
	at hudson.model.Fingerprint.add(Fingerprint.java:1030)
	at hudson.model.Fingerprint.addFor(Fingerprint.java:1023)
	at hudson.model.Fingerprint.add(Fingerprint.java:1014)
	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.GeneratedMethodAccessor296.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at hudson.model.Executor$2.call(Executor.java:912)
	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
	at com.sun.proxy.$Proxy80.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:1741)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
		at hudson.remoting.Channel$2.adapt(Channel.java:990)
		at hudson.remoting.Channel$2.adapt(Channel.java:986)
		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

喜欢 (1)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址