Skip to content
Snippets Groups Projects
Commit fdf0cb66 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fix client closed error message

parent 811f1cf7
No related branches found
No related tags found
No related merge requests found
...@@ -758,12 +758,11 @@ public class ForecastBean { ...@@ -758,12 +758,11 @@ public class ForecastBean {
* @return * @return
*/ */
private ManagerResource getManagerResource(ModelInformation modelInformation) { private ManagerResource getManagerResource(ModelInformation modelInformation) {
try(Client client = ClientBuilder.newClient()){ Client client = ClientBuilder.newClient();
WebTarget target = client.target(modelInformation.getVipsCoreInstanceId().getUri()); WebTarget target = client.target(modelInformation.getVipsCoreInstanceId().getUri());
ResteasyWebTarget rTarget = (ResteasyWebTarget) target; ResteasyWebTarget rTarget = (ResteasyWebTarget) target;
ManagerResource resource = rTarget.proxy(ManagerResource.class); ManagerResource resource = rTarget.proxy(ManagerResource.class);
return resource; return resource;
}
} }
public Kml getForecastsAggregateKml(List<Integer> organizationIds, List<Integer> cropOrganismIds, Date theDate, public Kml getForecastsAggregateKml(List<Integer> organizationIds, List<Integer> cropOrganismIds, Date theDate,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment