tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24349] New: - NullPointerException
Date Mon, 03 Nov 2003 10:35:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24349>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24349

NullPointerException

           Summary: NullPointerException
           Product: Tomcat 5
           Version: 5.0.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina:Modules
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: franc_ois78@yahoo.com


When deploying a web-app with bad URL, with the Tomcat Manager, NullPointerException
is thrown at org.apache.catalina.manager.HTMLManagerServlet.java:423 (method list)
(
The code is:
args[4] = new Integer(context.getManager().findSessions().length);
                                      ^ null for mistyped directory
)
After this no application can be deployed, because this exception is rethrown.
(Tomcat must be restarted)
I have made some test:
The manager for the context of the mistyped URL does not exist.
So I modified the enclosing if statement's condition
if (context != null && context.getManager() != null) 
This version works, but does not report an error, at least I can try
again by correcting the web app location, without restarting tomcat.

I hope it is enough.

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


Mime
View raw message