Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4357

NullPointerException in the TransportBindingHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6, 2.4.8, 2.5.4
    • 2.4.9, 2.5.5, 2.6.2
    • Core
    • None
    • Tomcat7.0.27, Apache CXF2.6.0, ADFS2.0 as STS

    • Unknown

    Description

      I have WSP, WSC and STS(ADFS2.0) environment.
      1. WSP:
      Use SymmetricBinding and ProtectionToken is IssuedToken
      2. STS: ADFS2.0
      use TransportBinding and client authentication is done via UT

      When I run client, I am getting following NPE. For details, please reference CXF-USER thread http://cxf.547215.n5.nabble.com/Proglem-with-loading-Apache-CXF-STS-with-UT-authentication-td5708523.html. If you need further information please reach me at ginachoi88@gmail.com

      Caused by: java.lang.NullPointerException
      at org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandler.doIssuedTokenSignature(TransportBindingHandler.java:429)
      at org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandler.handleEndorsingToken(TransportBindingHandler.java:283)
      at org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandler.handleEndorsingSupportingTokens(TransportBindingHandler.java:240)
      at org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandler.handleBinding(TransportBindingHandler.java:147)
      at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$PolicyBasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutInterceptor.java:159)
      at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$PolicyBasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutInterceptor.java:89)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
      at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:722)
      at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:602)
      at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:594)
      at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.getTokenFromSTS(IssuedTokenInterceptorProvider.java:404)
      at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.handleMessage(IssuedTokenInterceptorProvider.java:188)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)

      Attachments

        1. adfs_new_simple.wsdl
          6 kB
          Gina Choi
        2. cxf.xml
          4 kB
          Gina Choi
        3. DoubleIt.wsdl
          9 kB
          Gina Choi

        Activity

          People

            coheigea Colm O hEigeartaigh
            gchoi Gina Choi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: