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
Branches
No related tags found
No related merge requests found
......@@ -758,12 +758,11 @@ public class ForecastBean {
* @return
*/
private ManagerResource getManagerResource(ModelInformation modelInformation) {
try(Client client = ClientBuilder.newClient()){
Client client = ClientBuilder.newClient();
WebTarget target = client.target(modelInformation.getVipsCoreInstanceId().getUri());
ResteasyWebTarget rTarget = (ResteasyWebTarget) target;
ManagerResource resource = rTarget.proxy(ManagerResource.class);
return resource;
}
}
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