javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header

Apache's JIRA Issue Tracker | Charles Moulliard | 8 years ago
  1. 0

    Here is the error returned when I call the web service from my client. This error occurs when ws-security through interceptors is activated. I have implmented the following tutorial (http://www.lumidant.com/blog/apache-cxf-tutorial-ws-security-with-spring/) INFO: Outbound Message --------------------------- Encoding: UTF-8 Headers: {SOAPAction=[""], Accept=[*]} Messages: Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEmployee xmlns:ns2="http://service.auth.xpectis.com/"><gid>0123456</gid></ns2:getEmployee></soap:Body></soap:Envelope> -------------------------------------- 23-sept.-2008 12:46:57 org.apache.cxf.interceptor.LoggingInInterceptor logging INFO: Inbound Message ---------------------------- Encoding: UTF-8 Headers: {content-type=[text/xml;charset=UTF-8], connection=[close], Date=[Tue, 23 Sep 2008 10:46:57 GMT], Content-Length=[361], Server=[Apache-Coyote/1.1]} Messages: Message: Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode><faultstring>An error was discovered processing the &lt;wsse:Security> header</faultstring></soap:Fault></soap:Body></soap:Envelope> -------------------------------------- Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:199) at $Proxy43.getEmployee(Unknown Source) at com.xpectis.auth.client.Client.main(Client.java:25) Caused by: org.apache.cxf.binding.soap.SoapFault: An error was discovered processing the <wsse:Security> header at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2029) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:170) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)

    Apache's JIRA Issue Tracker | 8 years ago | Charles Moulliard
    javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Here is the error returned when I call the web service from my client. This error occurs when ws-security through interceptors is activated. I have implmented the following tutorial (http://www.lumidant.com/blog/apache-cxf-tutorial-ws-security-with-spring/) INFO: Outbound Message --------------------------- Encoding: UTF-8 Headers: {SOAPAction=[""], Accept=[*]} Messages: Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEmployee xmlns:ns2="http://service.auth.xpectis.com/"><gid>0123456</gid></ns2:getEmployee></soap:Body></soap:Envelope> -------------------------------------- 23-sept.-2008 12:46:57 org.apache.cxf.interceptor.LoggingInInterceptor logging INFO: Inbound Message ---------------------------- Encoding: UTF-8 Headers: {content-type=[text/xml;charset=UTF-8], connection=[close], Date=[Tue, 23 Sep 2008 10:46:57 GMT], Content-Length=[361], Server=[Apache-Coyote/1.1]} Messages: Message: Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode><faultstring>An error was discovered processing the &lt;wsse:Security> header</faultstring></soap:Fault></soap:Body></soap:Envelope> -------------------------------------- Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:199) at $Proxy43.getEmployee(Unknown Source) at com.xpectis.auth.client.Client.main(Client.java:25) Caused by: org.apache.cxf.binding.soap.SoapFault: An error was discovered processing the <wsse:Security> header at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2029) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:170) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)

    Apache's JIRA Issue Tracker | 8 years ago | Charles Moulliard
    javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.cxf.binding.soap.SoapFault

    An error was discovered processing the <wsse:Security> header

    at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage()
  2. Apache CXF Runtime SOAP Binding
    Soap11FaultInInterceptor.handleMessage
    1. org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70)
    2. org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
    2 frames
  3. Apache CXF Core
    AbstractFaultChainInitiatorObserver.onMessage
    1. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    2. org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
    2 frames
  4. Apache CXF Runtime SOAP Binding
    CheckFaultInterceptor.handleMessage
    1. org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
    2. org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
    2 frames
  5. Apache CXF Core
    ClientImpl.onMessage
    1. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    2. org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449)
    2 frames
  6. Apache CXF Runtime HTTP Transport
    HTTPConduit$WrappedOutputStream.close
    1. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2029)
    2. org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865)
    2 frames
  7. Apache CXF Core
    AbstractConduit.close
    1. org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
    2. org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:170)
    3. org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
    3 frames
  8. Apache CXF Runtime HTTP Transport
    HTTPConduit.close
    1. org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593)
    1 frame
  9. Apache CXF Core
    ClientImpl.invoke
    1. org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    2. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    3. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
    4. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
    4 frames
  10. Apache CXF Runtime Simple Frontend
    ClientProxy.invokeSync
    1. org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    1 frame
  11. Apache CXF Runtime JAX-WS Frontend
    JaxWsClientProxy.invoke
    1. org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)
    1 frame