启动rocketMq消费者报Throwable ex - java.util.concurrent.FutureTask.runAndReset()异常

本文记录了一次因RocketMQ版本冲突导致项目无法启动的问题排查过程。作者在更新RocketMQ版本后,遇到了Tomcat部署环境下旧版本Jar包残留引发的异常情况。最终通过彻底清理项目中的旧版本Jar包解决问题。

懒得看废话请直接看红字!!

真的心累,控制台也不打出来哪里错了,异常也不报,打断点发现有异常,同事帮忙解决了好久,最后定位到MixAll.getWSAddr()获取不到值导致报错,一样的项目,在同事电脑跑的好好的,我这边就启不起来,在此过程中还特地换了同版的Tomcat,最后最后发现居然是版本冲突,之前项目一直用4.0.0的rocketMq,但是发现这个版本有没法打日志这个bug,前不久就换成了4.1.0版本,我也已经更新了pom,通过eclipse看依赖的jar包也是4.1.0版本,但是!!!进到tomcat的wtpwebapps\项目名\WEB-INF\lib里面一看,4.0.0版本的rocketmq居然躺在里面!!!!一顿狂删,再跑一遍项目就能建立起消费者了!!!!我去!!!耽误同事那么久居然是因为jar包冲突!!!!我总有一天要被同事打死的!!!

Thread 2052792: (state = IN_NATIVE) - sun.nio.ch.EPollArrayWrapper.epollWait(long, int, long, int) @bci=0 (Compiled frame; information may be imprecise) - sun.nio.ch.EPollArrayWrapper.poll(long) @bci=18, line=269 (Compiled frame) - sun.nio.ch.EPollSelectorImpl.doSelect(long) @bci=28, line=93 (Compiled frame) - sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=86 (Compiled frame) - sun.nio.ch.SelectorImpl.select(long) @bci=30, line=97 (Compiled frame) - org.apache.http.impl.nio.reactor.AbstractIOReactor.execute() @bci=15, line=255 (Compiled frame) - org.apache.http.impl.nio.reactor.BaseIOReactor.execute(org.apache.http.nio.reactor.IOEventDispatch) @bci=13, line=104 (Interpreted frame) - org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run() @bci=8, line=591 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052791: (state = IN_NATIVE) - sun.nio.ch.EPollArrayWrapper.epollWait(long, int, long, int) @bci=0 (Compiled frame; information may be imprecise) - sun.nio.ch.EPollArrayWrapper.poll(long) @bci=18, line=269 (Compiled frame) - sun.nio.ch.EPollSelectorImpl.doSelect(long) @bci=28, line=93 (Compiled frame) - sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=86 (Compiled frame) - sun.nio.ch.SelectorImpl.select(long) @bci=30, line=97 (Compiled frame) - org.apache.http.impl.nio.reactor.AbstractIOReactor.execute() @bci=15, line=255 (Compiled frame) - org.apache.http.impl.nio.reactor.BaseIOReactor.execute(org.apache.http.nio.reactor.IOEventDispatch) @bci=13, line=104 (Interpreted frame) - org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run() @bci=8, line=591 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052790: (state = BLOCKED) - java.util.HashMap$KeySet.iterator() @bci=0, line=918 (Compiled frame) - java.util.HashSet.iterator() @bci=7, line=173 (Compiled frame) - java.util.Collections$UnmodifiableCollection$1.<init>(java.util.Collections$UnmodifiableCollection) @bci=17, line=1041 (Compiled frame) - java.util.Collections$UnmodifiableCollection.iterator() @bci=5, line=1040 (Compiled frame) - org.apache.http.impl.nio.reactor.BaseIOReactor.validate(java.util.Set) @bci=28, line=210 (Compiled frame) - org.apache.http.impl.nio.reactor.AbstractIOReactor.execute() @bci=91, line=280 (Compiled frame) - org.apache.http.impl.nio.reactor.BaseIOReactor.execute(org.apache.http.nio.reactor.IOEventDispatch) @bci=13, line=104 (Interpreted frame) - org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run() @bci=8, line=591 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052789: (state = BLOCKED) - java.util.HashMap$KeySet.iterator() @bci=0, line=918 (Compiled frame) - java.util.HashSet.iterator() @bci=7, line=173 (Compiled frame) - java.util.Collections$UnmodifiableCollection$1.<init>(java.util.Collections$UnmodifiableCollection) @bci=17, line=1041 (Compiled frame) - java.util.Collections$UnmodifiableCollection.iterator() @bci=5, line=1040 (Compiled frame) - org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(java.util.Set) @bci=5, line=204 (Compiled frame) - org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(int) @bci=93, line=158 (Compiled frame) - org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(org.apache.http.nio.reactor.IOEventDispatch) @bci=320, line=351 (Compiled frame) - org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(org.apache.http.nio.reactor.IOEventDispatch) @bci=5, line=221 (Interpreted frame) - org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run() @bci=17, line=64 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052700: (state = BLOCKED) - org.springframework.boot.ansi.AnsiOutput.toString(java.lang.Object[]) @bci=0, line=93 (Compiled frame) - org.springframework.boot.logging.logback.ColorConverter.toAnsiString(java.lang.String, org.springframework.boot.ansi.AnsiElement) @bci=12, line=77 (Compiled frame) - org.springframework.boot.logging.logback.ColorConverter.transform(ch.qos.logback.classic.spi.ILoggingEvent, java.lang.String) @bci=56, line=73 (Compiled frame) - org.springframework.boot.logging.logback.ColorConverter.transform(java.lang.Object, java.lang.String) @bci=6, line=40 (Compiled frame) - ch.qos.logback.core.pattern.CompositeConverter.convert(java.lang.Object) @bci=39, line=27 (Compiled frame) - ch.qos.logback.core.pattern.FormattingConverter.write(java.lang.StringBuilder, java.lang.Object) @bci=2, line=36 (Compiled frame) - ch.qos.logback.core.pattern.PatternLayoutBase.writeLoopOnConverters(java.lang.Object) @bci=23, line=115 (Compiled frame) - ch.qos.logback.classic.PatternLayout.doLayout(ch.qos.logback.classic.spi.ILoggingEvent) @bci=12, line=141 (Compiled frame) - ch.qos.logback.classic.PatternLayout.doLayout(java.lang.Object) @bci=5, line=39 (Compiled frame) - ch.qos.logback.core.encoder.LayoutWrappingEncoder.encode(java.lang.Object) @bci=5, line=115 (Compiled frame) - ch.qos.logback.core.OutputStreamAppender.subAppend(java.lang.Object) @bci=29, line=230 (Compiled frame) - ch.qos.logback.core.OutputStreamAppender.append(java.lang.Object) @bci=10, line=102 (Compiled frame) - ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(java.lang.Object) @bci=123, line=84 (Compiled frame) - ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(java.lang.Object) @bci=32, line=51 (Compiled frame) - ch.qos.logback.classic.Logger.appendLoopOnAppenders(ch.qos.logback.classic.spi.ILoggingEvent) @bci=12, line=270 (Compiled frame) - ch.qos.logback.classic.Logger.callAppenders(ch.qos.logback.classic.spi.ILoggingEvent) @bci=11, line=257 (Compiled frame) - ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(java.lang.String, org.slf4j.Marker, ch.qos.logback.classic.Level, java.lang.String, java.lang.Object[], java.lang.Throwable) @bci=27, line=421 (Compiled frame) - ch.qos.logback.classic.Logger.filterAndLog_2(java.lang.String, org.slf4j.Marker, ch.qos.logback.classic.Level, java.lang.String, java.lang.Object, java.lang.Object, java.lang.Throwable) @bci=71, line=414 (Compiled frame) - ch.qos.logback.classic.Logger.warn(java.lang.String, java.lang.Object, java.lang.Object) @bci=12, line=700 (Interpreted frame) - com.zaxxer.hikari.pool.HikariPool$HouseKeeper.run() @bci=250, line=787 (Compiled frame) - java.util.concurrent.Executors$RunnableAdapter.call() @bci=4, line=511 (Compiled frame) - java.util.concurrent.FutureTask.runAndReset() @bci=47, line=308 (Compiled frame) - java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask) @bci=1, line=180 (Compiled frame) - java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run() @bci=37, line=294 (Compiled frame) - java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=95, line=1149 (Compiled frame) - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=624 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052643: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise) - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=144 (Compiled frame) - com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run() @bci=10, line=91 (Interpreted frame) - java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=95, line=1149 (Interpreted frame) - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=624 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052355: (state = BLOCKED) - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise) - java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=175 (Compiled frame) - java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2039 (Compiled frame) - java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=100, line=1088 (Compiled frame) - java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=1, line=809 (Compiled frame) - java.util.concurrent.ThreadPoolExecutor.getTask() @bci=149, line=1074 (Compiled frame) - java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=26, line=1134 (Interpreted frame) - java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=624 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=750 (Interpreted frame) Thread 2052109: (state = BLOCKED) Thread 2052108: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise) - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=144 (Compiled frame) - java.lang.ref.ReferenceQueue.remove() @bci=2, line=165 (Compiled frame) - java.lang.ref.Finalizer$FinalizerThread.run() @bci=36, line=188 (Compiled frame) Thread 2052107: (state = BLOCKED) - java.lang.ref.Reference.tryHandlePending(boolean) @bci=5, line=178 (Compiled frame) - java.lang.ref.Reference$ReferenceHandler.run() @bci=1, line=153 (Compiled frame) 分析 jstack 日志
最新发布
01-08
ERROR: Launching agent process aborted. Also: java.lang.Throwable: launched here at hudson.slaves.SlaveComputer._connect(SlaveComputer.java:287) at hudson.model.Computer.connect(Computer.java:447) at hudson.slaves.SlaveComputer.tryReconnect(SlaveComputer.java:854) at hudson.slaves.RetentionStrategy$Always.check(RetentionStrategy.java:173) at hudson.slaves.RetentionStrategy$Always.check(RetentionStrategy.java:161) at hudson.slaves.ComputerRetentionWork$1.run(ComputerRetentionWork.java:71) at hudson.model.Queue._withLock(Queue.java:1397) at hudson.model.Queue.withLock(Queue.java:1271) at hudson.slaves.ComputerRetentionWork.doRun(ComputerRetentionWork.java:62) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92) at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) java.lang.InterruptedException: Validate configuration: The Host must be specified The selected credentials cannot be found at hudson.plugins.sshslaves.SSHLauncher.checkConfig(SSHLauncher.java:925) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:411) at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:298) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
06-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值