This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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.