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

            Bug ID: 55071
           Summary: try finally catch structure masks original exception
                    in JDBCRealm.getPassword()
           Product: Tomcat 7
           Version: 7.0.40
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: br...@iris.washington.edu

I have run into a mysterious apparent SQL exception in JDBCRealm.getPassword().

Presumably, line 557 "stmt.executeQuery()" occasionally fails. I'm not sure why
and would like to know why. 

However, the finally block contains dbConnection.commit() (line 579). This
throws an exception (Connection Closed) which is then logged on line 585. 

In summary, line 579 should be surrounded by a try catch.

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