Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-16184

Intermittent ScriptThrownException "Couldn't read source file .../access.js" on startup under load

    XMLWordPrintable

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      IDM - 2021.2

      Description

      On occasion the following exception is observed if requests are sent to the server prior to the OpenIDM ready state.

      [104] Feb 11, 2021 6:39:23.056 PM org.forgerock.openidm.script.registry.ScriptRegistryImpl$ScriptImpl eval
      SEVERE: Script invocation error
      org.forgerock.openidm.script.ScriptThrownException: Couldn't read source file "/mnt/scratch/workspaces/workspace/pr-7447-1-1613068471887-1803598710/results/20210211-183748/security/change_credential_osgi_console/IDM/openidm/script/access.js": /mnt/scratch/workspaces/workspace/pr-7447-1-1613068471887-1803598710/results/20210211-183748/security/change_credential_osgi_console/IDM/openidm/script/access.js
      	at org.forgerock.openidm.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:842)
      	at org.forgerock.openidm.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:853)
      	at org.forgerock.openidm.router.filter.ScriptedFilter.evalScript(ScriptedFilter.java:286)
      	at org.forgerock.openidm.router.filter.ScriptedFilter.lambda$evaluateOnRequest$9(ScriptedFilter.java:193)
      	at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:83)
      	at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:98)
      	at org.forgerock.openidm.router.filter.ScriptedFilter.evaluateOnRequest(ScriptedFilter.java:192)
      	at org.forgerock.openidm.authz.DelegatedAdminFilter.filterRequest(DelegatedAdminFilter.java:296)
      	at org.forgerock.openidm.authz.DelegatedAdminFilter.filterRead(DelegatedAdminFilter.java:268)
      ...
      ...
      Caused by: org.mozilla.javascript.EvaluatorException: Couldn't read source file "/mnt/scratch/workspaces/workspace/pr-7447-1-1613068471887-1803598710/results/20210211-183748/security/change_credential_osgi_console/IDM/openidm/script/access.js": /mnt/scratch/workspaces/workspace/pr-7447-1-1613068471887-1803598710/results/20210211-183748/security/change_credential_osgi_console/IDM/openidm/script/access.js (No such file or directory). (file:/mnt/scratch/workspaces/workspace/pr-7447-1-1613068471887-1803598710/results/20210211-183748/security/change_credential_osgi_console/IDM/openidm/bin/defaults/script/router-authz.js#584)
      	at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79)
      	at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1011)
      	at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1064)
      	at org.mozilla.javascript.tools.shell.Global.load(Global.java:298)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
      	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:391)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:76)

        Attachments

          Activity

            People

            Assignee:
            cgdrake Chris Drake
            Reporter:
            cgdrake Chris Drake
            QA Assignee:
            Son Nguyen Son Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: