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

            Bug ID: 57425
           Summary: ReplicatedContext implementation throws
                    NullPointerException for attributes with null value
           Product: Tomcat 7
           Version: 7.0.25
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: jlan...@gmail.com

In Tomcat versions prior to 7.0.35, the servlet context attribute
"javax.servlet.context.orderedLibs" has a null value (a fix was added to Tomcat
in https://issues.apache.org/bugzilla/show_bug.cgi?id=54391). 

When context replication is not used, the StandardContext.setAttribute method
checks for and handles a null value by invoking
StandardContext.removeAttribute. However, when context replication is enabled
the null value is passed to ConcurrentHashMap.put which throws a
NullPointerException. This causes the context to fail startup.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to