开发者社区 > 云原生 > 正文

时不时会有这个异常java.lang.RuntimeException: java.lang.Int

java.lang.RuntimeException: java.lang.InterruptedException at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:102) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:84) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT] at com.alibaba.dubbo.common.bytecode.proxy0.albumVideos(proxy0.java) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT]

补充下: Caused by: java.lang.InterruptedException: null at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017) ~[na:1.7.0_45] at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2188) ~[na:1.7.0_45] at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:96) ~[dubbo-2.5.4.jar:2.5.4-SNAPSHOT]

原提问者GitHub用户ybqiang

展开
收起
大圣东游 2023-05-11 20:32:23 145 0
1 条回答
写回答
取消 提交回答
  • 消费端线程等待结果返回时被interrupt了,请先检查一下是否有对业务线程的主动interrupt操作 另外,建议升级dubbo到2.5.7版本,2.5.4版本有很多问题已经修复

    原回答者GitHub用户chickenlj

    2023-05-12 12:15:05
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载