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

java.lang.NullPointerException at AsymmetricBindingHandler.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.3.9, 3.4.10, 3.5.6, 3.6.1, 4.0.2
    • 3.5.7, 3.6.2, 4.0.3, 3.4.11
    • JAX-RS Security
    • None
    • Unknown

    Description

      I am facing an issue with CXF PolicyBasedWSS4JOutInterceptor. The class AsymmetricBindingHandler.java has a method getSAMLToken(). Previous version of this class (cxf-rt-ws-security-2.7.14.jar) had a null check for RECV_RESULTS, but the newer versions (using cxf-rt-ws-security-3.3.12.redhat-00001.jar) removed the null check, which now leads to NullPointerException.

      Stacktrace:

      Caused by: java.lang.NullPointerException
              at org.apache.cxf.ws.security.wss4j.policyhandlers.AsymmetricBindingHandler.getSAMLToken(AsymmetricBindingHandler.java:818) [cxf-rt-ws-security.jar:3.3.12.redhat-00001]
              at org.apache.cxf.ws.security.wss4j.policyhandlers.AsymmetricBindingHandler.doSignBeforeEncrypt(AsymmetricBindingHandler.java:159) [cxf-rt-ws-security.jar:3.3.12.redhat-00001]

       

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              richm123 Rich M
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: