Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3276

NPE thrown in SecurityContextAssociationValve.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.CR1b
    • Fix Version/s: 7.1.0.Final
    • Component/s: Web
    • Labels:
    • Environment:

      On any platform running Java.
      OpenJDK 6.

    • Steps to Reproduce:
      Hide

      Attach a debugger to the AS7. Wait for the server to start. Add an exception breakpoint for java.lang.NullPointerException
      Use a browser to request a resource in a deployed web application. The debugger will trap on the NPE in the valve.

      Show
      Attach a debugger to the AS7. Wait for the server to start. Add an exception breakpoint for java.lang.NullPointerException Use a browser to request a resource in a deployed web application. The debugger will trap on the NPE in the valve.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      None.

      Show
      None.
    • Estimated Difficulty:
      Low

      Description

      With a debugger attached to AS7 I am seeing a NullPointerException thrown in a JBoss implementation of a Valve. This happens on every web request that does not have a principle in the session. The exception type has never appeared in logs because it is caught and a generic message is displayed.

      This affects the performance.

      Also the class uses the debugf logging method in the catch block. But does not pass in a format. A format is expected as the first parameter to the debugf method.

      Included with this JIRA is a patch to change the code so that null references are detected. The second change changes the logging method call to instead use debug. Whether it should be a error message rather than a debug is a different matter and this JIRA does not tackle the question.

      Regards,
      Jeremy

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rmaucher Remy Maucherat
                Reporter:
                whitingjr Jeremy Whiting
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: