Hi Mohib - Thanks for the response.
Using 'File' method worked but 'URI' approach is still failing with same error message.
On digging further in to the code "UpdateTrustRelationshipAction.java" and simulating it outside Gluu container (by calling the url from a standalone class using the same approach)
```
public boolean existsResourceUri(String URLName) {
try { HttpURLConnection.setFollowRedirects(false);
// note : you may also need
// HttpURLConnection.setInstanceFollowRedirects(false)
HttpURLConnection con = (HttpURLConnection) new URL(URLName).openConnection();
con.setRequestMethod("HEAD");
return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
```
I see the it returns response code as 500. That's the reason why it should be failing for Gluu as well.
Now question here is why the url is working fine through browser(returns Response code 200) and failing for java(returns Response code 500)?
I'm debugging at my end but any guidance you can provide will be very great and highly appreciated.