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

           Summary: Ant Tasks give a null pointer exception when an error
                    occurs, masking true error
           Product: Tomcat 7
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Integration
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: chris.rim...@nominet.org.uk


Created an attachment (id=26463)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26463)
Fix to abstract catalina task class to set up redirector correctly

Using the Ant List Task with outputproperty set causes a null pointer exception
in the event of any error. For example, if tomcat is not running or the url
given is incorrect. Since the bug is in a base class, this probably affects all
the ant tasks.

The bug is due to the fact that the code to clean up the redirector is called
in the finally block, but the equivalent code to set it up is not. This problem
is also present in Tomcat 6.

The attached patch fixes the problem. With the patch in place, using the list
task when tomcat is down gives "Connection refused" instead.

-- 
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to