我的服务因CXF故障得到400响应,我找不到400的设置位置,
我到处搜索,未找到此异常的异常映射器, 响应是tomcat格式的html
始于Apache Tomcat / 8.0.46的东西-错误报告
这使我相信它没有映射到适当的响应,
但是我认为应该是500,而不是400
是否有任何方法可以显示拦截器的位置,例如CXF中调试器控制台输出的详细选项?
感谢一百万!
05 Mar 2019 09:58:36,402 DEBUG [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Chain org.apache.cxf.phase.PhaseInterceptorChain@e16a6b5 was created. Current flow:
prepare-send [MessageSenderInterceptor]
marshal [JAXRSDefaultFaultOutInterceptor]
05 Mar 2019 09:58:36,402 DEBUG [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Invoking handleMessage on interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@51645fab
05 Mar 2019 09:58:36,402 DEBUG [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Adding interceptor org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@33fad37 to phase prepare-send-ending
05 Mar 2019 09:58:36,402 DEBUG [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Chain org.apache.cxf.phase.PhaseInterceptorChain@e16a6b5 was modified. Current flow:
prepare-send [MessageSenderInterceptor]
marshal [JAXRSDefaultFaultOutInterceptor]
prepare-send-ending [MessageSenderEndingInterceptor]
05 Mar 2019 09:58:36,402 DEBUG [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Invoking handleMessage on interceptor org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor@21747905
05 Mar 2019 09:58:36,402 DEBUG [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Invoking handleFault on interceptor org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor@21747905
05 Mar 2019 09:58:36,402 WARN [http-nio-8080-exec-4] - x-dxe-requestid=bd5f3c71-0fe7-4ed7-80f6-46049db8b26d Exception in handleFault on interceptor org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor@21747905
org.apache.cxf.interceptor.Fault: com.dxe.comm.domain._2012_11_01.ComTransaction.setTransactionNetworkId(Ljava/lang/String;)V
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)
答案 0 :(得分:0)
发现它是在我们自己的代码中设置的:javax.servlet.Filter.doFilter,这是一个严重的错误。