diff options
author | David Williams | 2014-10-29 06:43:11 +0000 |
---|---|---|
committer | David Williams | 2014-10-29 06:43:27 +0000 |
commit | 90bfda0274eab7418b7159a8817298a6fecdc810 (patch) | |
tree | 6704b0c1212ea1884a39802ef26c068dc2369eb0 /bundles/org.eclipse.test.performance/src/org/eclipse/test | |
parent | 2d6c62bbeae4cda6b9258fee3ce1a8e2ed148e72 (diff) | |
download | eclipse.platform.releng-90bfda0274eab7418b7159a8817298a6fecdc810.tar.gz eclipse.platform.releng-90bfda0274eab7418b7159a8817298a6fecdc810.tar.xz eclipse.platform.releng-90bfda0274eab7418b7159a8817298a6fecdc810.zip |
Bug 390821 - Performance testing back end on eclipse.org I20141029-2000I20141029-0800
Diffstat (limited to 'bundles/org.eclipse.test.performance/src/org/eclipse/test')
-rw-r--r-- | bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java b/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java index b6d6d387..e297d072 100644 --- a/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java +++ b/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java @@ -703,9 +703,11 @@ public class DB { // remote fIsEmbedded= false; // connect over network - if (DEBUG) System.out.println("Trying to connect over network..."); //$NON-NLS-1$ -// Class.forName(" org.apache.derby.jdbc.ClientDriver"); //$NON-NLS-1$ - Class.forName("com.ibm.db2.jcc.DB2Driver"); //$NON-NLS-1$ + // connect over network + String driverName = "org.apache.derby.jdbc.ClientDriver"; //$NON-NLS-1$ + System.out.println("Trying to connect over network, with " + driverName + " ..."); //$NON-NLS-1$ //$NON-NLS-2$ + Class.forName(driverName); + //Class.forName("com.ibm.db2.jcc.DB2Driver"); //$NON-NLS-1$ info.put("user", PerformanceTestPlugin.getDBUser()); //$NON-NLS-1$ info.put("password", PerformanceTestPlugin.getDBPassword()); //$NON-NLS-1$ info.put("retrieveMessagesFromServerOnGetMessage", "true"); //$NON-NLS-1$ //$NON-NLS-2$ @@ -714,9 +716,9 @@ public class DB { // remote fIsEmbedded = false; // connect over network - if (DEBUG) - System.out.println("Trying to connect over network..."); //$NON-NLS-1$ - Class.forName("org.apache.derby.jdbc.ClientDriver"); //$NON-NLS-1$ + String driverName = "org.apache.derby.jdbc.ClientDriver"; //$NON-NLS-1$ + System.out.println("Trying to connect over network with " + driverName + " ..."); //$NON-NLS-1$ //$NON-NLS-2$ + Class.forName(driverName); info.put("user", PerformanceTestPlugin.getDBUser()); //$NON-NLS-1$ info.put("password", PerformanceTestPlugin.getDBPassword()); //$NON-NLS-1$ info.put("create", "true"); //$NON-NLS-1$ //$NON-NLS-2$ @@ -752,6 +754,7 @@ public class DB { try { fConnection= DriverManager.getConnection("jdbc:" + fDBType + ":" + url, info); //$NON-NLS-1$ //$NON-NLS-2$ } catch (SQLException e) { + System.out.println("SQLException: " + e); //$NON-NLS-1$ if ("08001".equals(e.getSQLState()) && DERBY.equals(fDBType)) { //$NON-NLS-1$ if (DEBUG) System.out.println("DriverManager.getConnection failed; retrying for cloudscape"); //$NON-NLS-1$ // try Cloudscape |