summaryrefslogtreecommitdiff
path: root/java/perftests/src
diff options
context:
space:
mode:
authorPhil Harvey <philharveyonline@apache.org>2013-02-09 06:41:36 +0000
committerPhil Harvey <philharveyonline@apache.org>2013-02-09 06:41:36 +0000
commita677026296058f7ec77894725fff44a8c0a93ce8 (patch)
treec36ff4f9cac39d1dcd8de3f1efe247b449ca7cd3 /java/perftests/src
parent28c7ca7bb7ec9bb8ef523b2146fc115b2d9547e4 (diff)
downloadqpid-python-a677026296058f7ec77894725fff44a8c0a93ce8.tar.gz
QPID-4533: Java Performance Tests - addressed bug in JdbcSeriesBuilder that caused it to ignore the CSV series directory.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1444335 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/perftests/src')
-rw-r--r--java/perftests/src/main/java/org/apache/qpid/disttest/db/ResultsDbWriter.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/perftests/src/main/java/org/apache/qpid/disttest/db/ResultsDbWriter.java b/java/perftests/src/main/java/org/apache/qpid/disttest/db/ResultsDbWriter.java
index 549f37c2da..456c13a2b9 100644
--- a/java/perftests/src/main/java/org/apache/qpid/disttest/db/ResultsDbWriter.java
+++ b/java/perftests/src/main/java/org/apache/qpid/disttest/db/ResultsDbWriter.java
@@ -25,7 +25,6 @@ import static org.apache.qpid.disttest.message.ParticipantAttribute.TEST_NAME;
import static org.apache.qpid.disttest.message.ParticipantAttribute.THROUGHPUT;
import java.sql.Connection;
-import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
@@ -203,8 +202,7 @@ public class ResultsDbWriter
+ " missing from context environment: " + environment);
}
- @SuppressWarnings("unchecked")
- Class<? extends Driver> driverClass = (Class<? extends Driver>) Class.forName(driverName);
+ Class.forName(driverName);
Object url = environment.get(URL);
if(url == null)
@@ -411,6 +409,10 @@ public class ResultsDbWriter
statement.execute();
connection.commit();
}
+ catch(SQLException e)
+ {
+ _logger.error("Couldn't write " + participantResult, e);
+ }
finally
{
if (statement != null)