Log the failing URL when the security manager denies access
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@472 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -21,14 +21,13 @@
|
|||||||
|
|
||||||
package com.threerings.resource;
|
package com.threerings.resource;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.awt.image.BufferedImage;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.security.AccessControlException;
|
||||||
import java.awt.image.BufferedImage;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resource bundle that retrieves its contents via HTTP over the network from a root URL.
|
* Resource bundle that retrieves its contents via HTTP over the network from a root URL.
|
||||||
@@ -70,6 +69,9 @@ public class NetworkResourceBundle extends ResourceBundle
|
|||||||
return ucon.getInputStream();
|
return ucon.getInputStream();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
return null;
|
return null;
|
||||||
|
} catch (AccessControlException ace) {
|
||||||
|
Log.warning("Unable to connect due to access permissions [url=" + resourceUrl + "]");
|
||||||
|
throw ace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user