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

CXFAuthenticator does not correctly retrieve authentication from Authenticator class; NoSuchMethodException is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6
    • 2.2.7
    • Transports
    • None
    • windows xp, jdk 1.6.0_12

    • Novice

    Description

      In my JDK (JDK 1.6.0_12), Authenticator.class.getMethod("getPasswordAuthentication") throws a NoSuchMethodException. This looks like correct behavior, since the method is protected. The result is that the CXFAuthenticator.getPasswordAuthentication() method fails to retrieve the PasswordAuthentication, and always drops through.

      I was able to work around this by changing CXFAuthenticator to call the "getDeclaredMethod", instead of "getMethod".

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            piepera aaron pieper
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: