The code uses a default path in the logger URL of 'service/logger/', which makes the URI handler expect a relative URI, then we try to set a port on the URL which causes a conflict. Exception thrown is:
Caused by: java.net.URISyntaxException: Relative path in absolute URI: http://logger.ala.org.au:80service/logger/
at java.net.URI.checkPath(URI.java:1804)
at java.net.URI.<init>(URI.java:679)
at groovyx.net.http.URIBuilder.setPort(URIBuilder.java:109)
at au.org.ala.web.HttpWebService$_doJsonPost_closure2.doCall(HttpWebService.groovy:80)
at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:425)
at groovyx.net.http.HTTPBuilder.request(HTTPBuilder.java:376)
at au.org.ala.web.HttpWebService.doJsonPost(HttpWebService.groovy:77)
at au.org.ala.downloads.LoggerService$_flushDownloadEvents_closure2.doCall(LoggerService.groovy:73)
at au.org.ala.downloads.LoggerService.flushDownloadEvents(LoggerService.groovy:63)
The code uses a default path in the logger URL of 'service/logger/', which makes the URI handler expect a relative URI, then we try to set a port on the URL which causes a conflict. Exception thrown is: