You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resultCache.put(uri, jsResultAnalyzed); // save the result in the cache
233
-
}
234
-
returnjsResultAnalyzed;
235
-
} catch (NoSuchMethodExceptionex) {
236
-
// If this exception occur at this time it is really, really unexpected.
237
-
// We already gave the function a test spin in the constructor.
238
-
Exceptions.printStackTrace(ex);
239
-
returnCollections.singletonList(Proxy.NO_PROXY);
240
-
} catch (ScriptExceptionex) {
241
-
LOGGER.log(Level.WARNING, "Error when executing PAC script function " + scriptEngine.getJsMainFunction().getJsFunctionName() + " : ", ex);
242
-
returnCollections.singletonList(Proxy.NO_PROXY);
243
-
} catch (Exceptionex) { // for runtime exceptions
244
-
if (ex.getCause() != null) {
245
-
if (ex.getCause() instanceofClassNotFoundException) {
246
-
// Is someone trying to break out of the sandbox ?
247
-
LOGGER.log(Level.WARNING, "The downloaded PAC script is attempting to access Java class ''{0}'' which may be a sign of maliciousness. You should investigate this with your network administrator.", ex.getCause().getMessage());
// If this exception occur at this time it is really, really unexpected.
292
+
// We already gave the function a test spin in the constructor.
293
+
Exceptions.printStackTrace(ex);
294
+
} catch (ScriptExceptionex) {
295
+
LOGGER.log(Level.WARNING, "Error when executing PAC script function " + scriptEngine.getJsMainFunction().getJsFunctionName() + " : ", ex);
296
+
} catch (Exceptionex) { // for runtime exceptions
297
+
if (ex.getCause() != null) {
298
+
if (ex.getCause() instanceofClassNotFoundException) {
299
+
// Is someone trying to break out of the sandbox ?
300
+
LOGGER.log(Level.WARNING, "The downloaded PAC script is attempting to access Java class ''{0}'' which may be a sign of maliciousness. You should investigate this with your network administrator.", ex.getCause().getMessage());
301
+
}
302
+
}
303
+
// other unforseen errors
304
+
LOGGER.log(Level.WARNING, "Error when executing PAC script function " + scriptEngine.getJsMainFunction().getJsFunctionName() + " : ", ex);
0 commit comments