使用Camel的发布请求响应-HTTP操作无法调用404

问题描述 投票:0回答:1

我正在使用骆驼通过Post Method公开REST API,

此API旨在存储系统的所有流量,

enter image description here

此API的实现在本地和登台环境中均运行良好,

但是当我将其部署到生产环境中时,有5%的请求返回了[[404未找到错误,

机器资源非常高,

8 CPU 40G内存

API平均每秒存储30个请求。

Stacktrace:

org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking https://integration.Company.com/warehouse/rest/v1 with statusCode: 404 at com.Company.integration.common.camel.components.asynchttp.AsyncHttpProducer.populateHttpOperationFailedException(AsyncHttpProducer.java:295) at com.Company.integration.common.camel.components.asynchttp.AsyncHttpProducer.process(AsyncHttpProducer.java:190) at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113) at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) at org.apache.camel.processor.Pipeline.proce…

api apache-camel http-status-code-404
1个回答
0
投票
我有点困惑,在您的屏幕快照上,看起来您正在使用带有Servlet组件的Camel REST DSL,但是在您的堆栈跟踪中,看起来您有一个调用AsyncProcessorConverterHelper的自定义组件,但是我可能是错的,可以您请澄清一下吗?
© www.soinside.com 2019 - 2024. All rights reserved.