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

ScriptedSSH ErrorCodes.groovy is not loaded

    Details

    • Sprint:
      OpenIDM Sprint 87

      Description

      Scripts for ScriptedSSH call commands on ssh machine. Result codes are filtered through ErrorCodes.groovy, which is not loaded and exception is thrown

      WARNING: Forwarding an exception that occurred in a Closure: groovy.lang.MissingPropertyException: No such property: ErrorCodes for class: samples.scriptedssh.tools.DeleteLinux
      May 30, 2016 3:45:42 PM org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4 handleException
      WARNING: Resource exception: 500 Internal Server Error: "No such property: ErrorCodes for class: samples.scriptedssh.tools.DeleteLinux"
      org.forgerock.json.resource.InternalServerErrorException: No such property: ErrorCodes for class: samples.scriptedssh.tools.DeleteLinux
              at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassResourceProvider.handleDelete(OpenICFProvisionerService.java:1272)
              at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassRequestHandler.handleDelete(OpenICFProvisionerService.java:999)
              at org.forgerock.json.resource.Router.handleDelete(Router.java:269)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:79)
              at org.forgerock.json.resource.Filters$ConditionalFilter.filterDelete(Filters.java:72)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:77)
              at org.forgerock.json.resource.Filters$ConditionalFilter.filterDelete(Filters.java:72)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:77)
              at org.forgerock.openidm.filter.ScriptedFilter$3.apply(ScriptedFilter.java:116)
              at org.forgerock.openidm.filter.ScriptedFilter$3.apply(ScriptedFilter.java:113)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
              at org.forgerock.openidm.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:190)
              at org.forgerock.openidm.filter.ScriptedFilter.filterDelete(ScriptedFilter.java:112)
              at org.forgerock.json.resource.Filters$ConditionalFilter.filterDelete(Filters.java:70)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:77)
              at org.forgerock.openidm.audit.filter.AuditFilter$3.apply(AuditFilter.java:116)
              at org.forgerock.openidm.audit.filter.AuditFilter$3.apply(AuditFilter.java:113)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
              at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:204)
              at org.forgerock.openidm.audit.filter.AuditFilter.filterDelete(AuditFilter.java:112)
              at org.forgerock.json.resource.Filters$ConditionalFilter.filterDelete(Filters.java:70)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:77)
              at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$5.filterDelete(ServletConnectionFactory.java:499)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:77)
              at org.forgerock.openidm.filter.PassthroughFilter.filterDelete(PassthroughFilter.java:62)
              at org.forgerock.openidm.filter.MutableFilterDecorator.filterDelete(MutableFilterDecorator.java:70)
              at org.forgerock.json.resource.FilterChain$Cursor.handleDelete(FilterChain.java:77)
              at org.forgerock.json.resource.FilterChain.handleDelete(FilterChain.java:219)
              at org.forgerock.json.resource.InternalConnection.deleteAsync(InternalConnection.java:51)
              at org.forgerock.json.resource.AbstractConnectionWrapper.deleteAsync(AbstractConnectionWrapper.java:123)
              at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.deleteAsync(ServletConnectionFactory.java:243)
              at org.forgerock.json.resource.http.RequestRunner.visitDeleteRequest(RequestRunner.java:206)
              at org.forgerock.json.resource.http.RequestRunner.visitDeleteRequest(RequestRunner.java:73)
              at org.forgerock.json.resource.Requests$DeleteRequestImpl.accept(Requests.java:317)
              at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:119)
              at org.forgerock.json.resource.http.HttpAdapter$2.apply(HttpAdapter.java:566)
              at org.forgerock.json.resource.http.HttpAdapter$2.apply(HttpAdapter.java:563)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
              at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:562)
      ...
      Caused by: groovy.lang.MissingPropertyException: No such property: ErrorCodes for class: samples.scriptedssh.tools.DeleteLinux
              at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
              at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
              at samples.scriptedssh.tools.DeleteLinux$_run_closure3.doCall(DeleteLinux.groovy:90)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
              at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
              at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
              at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
              at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
              at org.forgerock.openicf.connectors.ssh.E4JWrapper$1.run(E4JWrapper.groovy:144)
              at expect4j.Expect4j.runFirstMatch(Expect4j.java:621)
              at expect4j.Expect4j.expect(Expect4j.java:391)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:189)
              at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
              at org.forgerock.openicf.connectors.ssh.E4JWrapper$_closure13.doCall(E4JWrapper.groovy:228)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

        Attachments

          Activity

            People

            • Assignee:
              ben.apple Ben Apple
              Reporter:
              michal.orlik@profiq.cz Michal Orlik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: