From 0d09eb4b08595330ed1666449a764f9ad11f38eb Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sun, 2 Dec 2007 11:23:26 +0000 Subject: [PATCH] [ 1839065 ] Connection dialog hang if database parameter is not valid --- base/src/org/compiere/util/DB.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/util/DB.java b/base/src/org/compiere/util/DB.java index 7a7da91a29..0fafe2170b 100644 --- a/base/src/org/compiere/util/DB.java +++ b/base/src/org/compiere/util/DB.java @@ -279,7 +279,10 @@ public final class DB } catch (Exception e) { - log.log(Level.SEVERE, "Could not connect to DB", e); + //logging here could cause infinite loop + //log.log(Level.SEVERE, "Could not connect to DB", e); + System.err.println("Could not connect to DB - " + e.getLocalizedMessage()); + e.printStackTrace(); success = false; } return success;