Revision: 3901
Author: jfuerth
Date: Tue Aug 17 20:55:03 2010
Log: ASSIGNED - bug 3010: Clicking through the JDBC Drivers causes Exception
http://trillian.sqlpower.ca/bugzilla/show_bug.cgi?id=3010
Now reporting the URL of the failed request
http://code.google.com/p/power-architect/source/detail?r=3901
Modified:
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectClientSideSession.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectClientSideSession.java
Tue Aug 17 09:26:06 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/enterprise/ArchitectClientSideSession.java
Tue Aug 17 20:55:03 2010
@@ -992,10 +992,15 @@
HttpClient httpClient =
createHttpClient(projectLocation.getServiceInfo());
try {
- HttpPost request = new HttpPost(jdbcDataSourceURI(ds));
- request.setEntity(new UrlEncodedFormEntity(properties));
- httpClient.execute(request, responseHandler);
- } catch (Exception ex) {
+ URI jdbcDataSourceURI = jdbcDataSourceURI(ds);
+ try {
+ HttpPost request = new HttpPost(jdbcDataSourceURI);
+ request.setEntity(new
UrlEncodedFormEntity(properties));
+ httpClient.execute(request, responseHandler);
+ } catch (IOException ex) {
+ throw new RuntimeException("Server request failed at "
+ jdbcDataSourceURI, ex);
+ }
+ } catch (URISyntaxException ex) {
throw new RuntimeException(ex);
} finally {
httpClient.getConnectionManager().shutdown();