gpt4 book ai didi

java - hystrix java.lang.NoSuchMethodError : rx. 主题.BehaviorSubject.hasValue()Z

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:23:35 24 4
gpt4 key购买 nike

我有一个网络应用程序。该应用程序基于 JSF。我的应用程序不是基于 maven。它正在使用 ant 进行构建。最近我在我的应用程序中实现了 Hystrix 断路器。它工作正常。我收到“java.lang.NoSuchMethodError: rx.subjects.BehaviorSubject.hasValue()Z”。相同的配置正在开发中。 Hystrix的详细信息如下。

我使用的库是

archaius-core-0.4.1.jar
HdrHistogram-2.1.9.jar
hystrix-core-1.5.6.jar
newrelic-api-2.21.4.jar
rxjava-1.2.0.jar
rxjava-core-0.20.3.jar

############################################################################################################
# Hystrix Configuration
############################################################################################################

# Global Defaults
hystrix.command.default.execution.timeout.enabled=true
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=30000
hystrix.command.default.fallback.enabled=false
hystrix.command.default.circuitBreaker.errorThresholdPercentage=80

# Command/Group specific overrides
hystrix.command.lookup.execution.isolation.thread.timeoutInMilliseconds=30000



# Hystrix configuration ends
############################################################################################################

Caused by: java.lang.NoSuchMethodError: rx.subjects.BehaviorSubject.hasValue()Z
at com.netflix.hystrix.metric.consumer.BucketedCounterStream.getLatest(BucketedCounterStream.java:104)
at com.netflix.hystrix.HystrixCommandMetrics.getHealthCounts(HystrixCommandMetrics.java:370)
at com.netflix.hystrix.HystrixCircuitBreaker$HystrixCircuitBreakerImpl.isOpen(HystrixCircuitBreaker.java:188)
at com.netflix.hystrix.HystrixCircuitBreaker$HystrixCircuitBreakerImpl.allowRequest(HystrixCircuitBreaker.java:161)
at com.netflix.hystrix.AbstractCommand.applyHystrixSemantics(AbstractCommand.java:509)
at com.netflix.hystrix.AbstractCommand.access$100(AbstractCommand.java:59)
at com.netflix.hystrix.AbstractCommand$4.call(AbstractCommand.java:405)
at com.netflix.hystrix.AbstractCommand$4.call(AbstractCommand.java:402)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:44)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:33)
at rx.Observable$2.call(Observable.java:173)
at rx.Observable$2.call(Observable.java:166)
at rx.Observable$2.call(Observable.java:173)
at rx.Observable$2.call(Observable.java:166)
at rx.Observable$2.call(Observable.java:173)
at rx.Observable$2.call(Observable.java:166)
at rx.Observable$2.call(Observable.java:173)
at rx.Observable$2.call(Observable.java:166)
at rx.Observable.unsafeSubscribe(Observable.java:8587)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:49)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:33)
at rx.Observable$2.call(Observable.java:173)
at rx.Observable$2.call(Observable.java:166)
at rx.Observable.subscribe(Observable.java:8676)
at rx.internal.operators.BlockingOperatorToFuture.toFuture(BlockingOperatorToFuture.java:55)
at rx.observables.BlockingObservable.toFuture(BlockingObservable.java:420)
at com.netflix.hystrix.HystrixCommand.queue(HystrixCommand.java:377)
at com.netflix.hystrix.HystrixCommand.execute(HystrixCommand.java:343)
at com.intuit.ems.estore.EstoreServletAPIImpl.doExecuteRequestResilient(EstoreServletAPIImpl.java:356)
at com.intuit.ems.estore.EstoreServletAPIImpl.getAccountInfo(EstoreServletAPIImpl.java:86)
at com.intuit.ems.dispatch.DispatcherUtil.isQBRegistered(DispatcherUtil.java:174)
at com.intuit.ems.buy.BuySwitchDesiredActionListener.exceptionQueuingBeforePhase(BuySwitchDesiredActionListener.java:86)
at com.intuit.ems.adapter.common.ExceptionQueuingPhaseListener.beforePhase(ExceptionQueuingPhaseListener.java:41)
... 43 more

最佳答案

只需要从依赖中删除“rxjava-core-0.20.3.jar”

关于java - hystrix java.lang.NoSuchMethodError : rx. 主题.BehaviorSubject.hasValue()Z,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48865794/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com