Hi, I am getting an Exception thrown during a database connection. I am using this: Class.forName("com.sybase.jdbc2.jdbc.SybDriver"); myConn = DriverManager.getConnection(dbLocation,dbUserName,dbPWD); The exception thrown is java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s). How do I see the SQLWarnings. Dave
posted 15 years ago
Look up the API on SQLException. There is a method getNextException() which, used iteratively, can lead to a whole mess of other exceptions attached to the one exception object that was actually thrown and caught.