Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Finkbeiner2014-09-16 19:39:17 -0400
committerAndrew M. Finkbeiner2014-09-16 19:39:41 -0400
commit75e501d19b8cf1b8a51567a86d5136bf4a45b6c7 (patch)
tree59c5fea634436c45e1d2b0328c7bc5b8747f0f74 /plugins/org.eclipse.osee.ote.master.rest.client
parent5d66aa13da74dd3fb3fbc92307731e8c4c873ae6 (diff)
downloadorg.eclipse.osee-75e501d19b8cf1b8a51567a86d5136bf4a45b6c7.tar.gz
org.eclipse.osee-75e501d19b8cf1b8a51567a86d5136bf4a45b6c7.tar.xz
org.eclipse.osee-75e501d19b8cf1b8a51567a86d5136bf4a45b6c7.zip
bug[ats_ATS107154]: Fix ote server shutdown0.18.0.v201409191853_REL0.18.0.v201409170143_RC
Diffstat (limited to 'plugins/org.eclipse.osee.ote.master.rest.client')
-rw-r--r--plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java
index 2cf3eafb5df..764e541678f 100644
--- a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java
+++ b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java
@@ -1,11 +1,9 @@
package org.eclipse.osee.ote.master.rest.client.internal;
import java.net.URI;
-import java.util.UUID;
import java.util.concurrent.Callable;
import javax.ws.rs.HttpMethod;
-import javax.ws.rs.client.Entity;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriBuilder;
@@ -27,15 +25,14 @@ public class RemoveServer implements Callable<OTEMasterServerResult> {
@Override
public OTEMasterServerResult call() throws Exception {
- URI targetUri =
- UriBuilder.fromUri(uri).path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).path(server.getUUID().toString()).build();
-
OTEMasterServerResult result = new OTEMasterServerResult();
try {
+ URI targetUri = UriBuilder.fromUri(uri).path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).path(server.getUUID().toString()).build();
webClientProvider.target(targetUri).request(MediaType.APPLICATION_XML).method(HttpMethod.DELETE);
} catch (Throwable th) {
result.setSuccess(false);
result.setThrowable(th);
+ th.printStackTrace();
}
return result;
}

Back to the top