Root cause of JavaScriptException: java.lang.IllegalAccessException
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 01:42 AM
Good Morning all
we have just updated to Washington
i have come on this morning to find that one of the schulded jobs that run every two hours is now generating this error
Import Error: Evaluation error: JavaScript evaluation error on:var remoteFileImport = new DTMIDServerRemoteFileImport(); remoteFileImport.getRemoteFileAndUplo
The following error occurred with the Remote File Import functionality that imports alerts into ServiceNow from the spreadsheet on the Mid Server:
Evaluation error: JavaScript evaluation error on:
var remoteFileImport = new DTMIDServerRemoteFileImport();
remoteFileImport.getRemoteFileAndUploadToInstance()
Root cause of JavaScriptException: java.lang.IllegalAccessException
is anyone able to advised or possible guide me what this could be doing
these where all working yesterday just since the update to Washington
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I know I'm late to the party (I'm the original developer of the MID Server Remote File Importer... years and years ago), but didn't see a specific answer to this question.
What happened here is a security change in Java 17 (OpenJDK at least) that now requires specific allowing of internal java packages. You can see the notice here. In plain English, the security setting went from default--allow to default--deny for common/internal package calls.
So, by listing the packages needed in the wrapper-override, this sets the permission to "allow" for those classes. Any unlisted packages are still disallowed.