WSO2 Carbon
  1. WSO2 Carbon
  2. CARBON-13103

[AS] - Getting an error when running the client for jaxrx-ut sample

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 4.0.0
    • Component/s: Webapp Mgt
    • Labels:
      None
    • Environment:
      ubuntu10.10, jdk17 (with JCE)
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      $Summary. The sample is at : wso2as-4.5.0-SNAPSHOT/samples/Jaxws-Jaxrs/ws_security/ut


      Error is as below:
      ===============


      INFO: Inbound Message
      ----------------------------
      ID: 1
      Response-Code: 500
      Encoding: UTF-8
      Content-Type: text/xml;charset=UTF-8
      Headers: {connection=[close], Content-Length=[534], content-type=[text/xml;charset=UTF-8], Date=[Mon, 14 May 2012 08:18:24 GMT], Server=[WSO2 Carbon Server]}
      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>These policy alternatives can not be satisfied:
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportBinding
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}Layout
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}UsernameToken</faultstring></soap:Fault></soap:Body></soap:Envelope>
      --------------------------------------
      May 14, 2012 1:48:24 PM org.apache.cxf.ws.addressing.soap.MAPCodec restoreExchange
      WARNING: Response message does not contain WS-Addressing properties. Not correlating response.
      May 14, 2012 1:48:24 PM org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor handleMessage
      WARNING: Request does not contain Security header, but it's a fault.
      May 14, 2012 1:48:24 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
      WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from context
      javax.xml.ws.soap.SOAPFaultException: These policy alternatives can not be satisfied:
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportBinding
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}Layout
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}UsernameToken
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
      at $Proxy35.greetMe(Unknown Source)
      at demo.wssec.client.Client.main(Client.java:73)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: org.apache.cxf.binding.soap.SoapFault: These policy alternatives can not be satisfied:
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportBinding
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}Layout
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens
      {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}UsernameToken
      at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
      at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
      at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
      at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
      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:263)
      at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:799)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1494)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1402)
      at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
      at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:195)
      at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649)
      at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
      ... 8 more

        Activity

        Isuru Suriarachchi
        made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Isuru Suriarachchi
        made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Isuru Suriarachchi
            Reporter:
            Yumani Ranaweera
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: