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

            Bug ID: 54831
           Summary: Null pointer causing the failure of reload of webapp
                    via the Tomcat manager
           Product: Tomcat 7
           Version: 7.0.30
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: skt...@gmail.com
    Classification: Unclassified

Using Tomcat manager in tomcat 7.0 + sping MVC, Webapp reload gives
apachelifecycle exception. It all starts up fine and works fine when started
normally. After the startup for reloading the webapp, we use the tomcat
manager. In tomcat manager, upon clicking the reload button it says reload
successful ( this enables the start button). Upon clicking the start button in
the tomcat it throws a apachelifecyle exception. 


The issue is in the WebappClassLoader.java (Line: 2598)

I have added a null check and every thing is working fine.

Changed code snippet ( From Line number 2596, changed line 2598):


if (o instanceof Collection<?>) {
            Iterator<?> iter = ((Collection<?>) o).iterator();

            while (iter != null && iter.hasNext()) {  // Added iter !=null 
                Object entry = iter.next();
                if (loadedByThisOrChild(entry)) {
                    return true;
                }
            }
        }

-- 
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