https://issues.apache.org/bugzilla/show_bug.cgi?id=52761

             Bug #: 52761
           Summary: Sporadic NPE in request.setAttribute()
           Product: Tomcat 7
           Version: 7.0.26
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Connectors
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


This is the stack trace.

java.lang.NullPointerException
    at
org.apache.catalina.connector.Request.notifyAttributeAssigned(Request.java:1552)
    at org.apache.catalina.connector.Request.setAttribute(Request.java:1543)
    at
org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:541)
    at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(ApplicationHttpRequest.java:281)

Both parameters for the invocation to setAttribute() are non-null.  It works
99% of the time, but sporadically it will cause requests to fail. Looking at
the code, it seems like the request's context is the culprit (value is null).

This problem wasn't showing up with earlier versions (7.0.23, I think).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to