JBOSS服务器内的SOAP客户端/代理警告和错误不在

时间:2016-11-30 19:13:14

标签: java soap jboss cxf

我正在努力从特定供应商实现SOAP服务客户端。大约有7个左右,我遇到了各自的挑战。但是,在这个具体的例子中,我遇到了一个新问题。

在我的jboss服务器之外,我可以让客户端实现运行得很好,没有任何问题。但是,insdie jboss / wildfly 8在进行SOAP调用时会直接跟踪并出现错误(见下文)。

我有一些问题,我在追踪时遇到了问题,首先列出了最重要的问题。

  1. 如何在PhaseInterceptorChain中找出导致此错误的操作,这是我收到错误的原因吗?
  2. 故障字符串,我可以轻松添加内容类型等等,但为什么我必须这样做?客户不应该这样做吗?
  3. 我们特别尽可能避免使用apache cxf。我没有明确地看到它在我的源代码中的任何地方被调用或者使用ws-import生成的源代码。我们甚至在构建路径中也没有它。为什么apache cxf会出现这些错误?
  4. 开始警告:

    2016-11-30 12:46:21,213 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http:<removed url>/}<removed class>/<removed class>#{http://<removed url>/}<removed method> has thrown exception, unwinding now: java.lang.UnsupportedOperationException
        at java.util.AbstractMap.put(AbstractMap.java:209) [rt.jar:1.8.0_65]
        at org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor.setSoapAction(SoapPreProtocolOutInterceptor.java:122)
        at org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor.handleMessage(SoapPreProtocolOutInterceptor.java:63)
        at org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor.handleMessage(SoapPreProtocolOutInterceptor.java:47)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
        at com.sun.proxy.$Proxy154.<removed metho>(Unknown Source)
    

    启动错误:

    2016-11-30 12:46:21,257 ERROR [com.<removed class>] Fault string, and possibly fault code, not set: javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157)
        at com.sun.proxy.$Proxy154.<removed metho>(Unknown Source)
        removed misc lines
    Caused by: java.lang.UnsupportedOperationException
            at java.util.AbstractMap.put(AbstractMap.java:209) [rt.jar:1.8.0_65]
            at org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor.setSoapAction(SoapPreProtocolOutInterceptor.java:122)
            at org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor.handleMessage(SoapPreProtocolOutInterceptor.java:63)
            at org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor.handleMessage(SoapPreProtocolOutInterceptor.java:47)
            at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
            at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
            at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
            at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
            at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
            at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
            at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
            ... 10 more
    

    非常感谢任何帮助。在发布之前我确实尝试过互联网(stackoverflow,jboss开发者等)。

0 个答案:

没有答案