Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-924

Update on __ACCOUNT__ on mongodb usersRoles throws 500 Internal Server Error

    Details

      Description

      This error is caused by java.lang.UnsupportedOperationException, which should be working as basic operation

      curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "Content-Type: application/json" --header "If-Match: *" --data '{"roles": [{ "role":"A_1534494337", "db":"openicf"}], "__NAME__": "A_1534494337", "user": "A_1534494337", "pwd": "Secret12!"}' --request PUT "http://localhost:8080/openidm/system/mongodbroles/__ACCOUNT__/A_1534494337"
      
      {"code":500,"reason":"Internal Server Error","message":"Internal Server Error"}
      

      OpenIDM exception

      WARNING: Failed to update target object org.forgerock.json.resource.InternalServerErrorException: Internal Server Error at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassResourceProvider.handleUpdate(ObjectClassResourceProvider.java:658) at org.forgerock.openidm.provisioner.openicf.impl.ObjectClassRequestHandler.handleUpdate(ObjectClassRequestHandler.java:153) at org.forgerock.json.resource.Router.handleUpdate(Router.java:344) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:115) at org.forgerock.openidm.router.filter.ScriptedFilter.lambda$filterUpdate$5(ScriptedFilter.java:128) at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:258) at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:222) at org.forgerock.openidm.router.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:162) at org.forgerock.openidm.router.filter.ScriptedFilter.filterUpdate(ScriptedFilter.java:128) at org.forgerock.json.resource.Filters$ConditionalFilter.filterUpdate(Filters.java:102) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:113) at org.forgerock.json.resource.Filters$ConditionalFilter.filterUpdate(Filters.java:104) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:113) at org.forgerock.openidm.audit.filter.AuditFilter.lambda$filterUpdate$6(AuditFilter.java:149) at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:169) at org.forgerock.openidm.audit.filter.AuditFilter.filterUpdate(AuditFilter.java:149) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterUpdate(MutableFilterDecorator.java:102) at org.forgerock.json.resource.Filters$ConditionalFilter.filterUpdate(Filters.java:102) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:113) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.lambda$filterUpdate$6(ServletConnectionFactory.java:415) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.handleRequestWithLogging(ServletConnectionFactory.java:436) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.filterUpdate(ServletConnectionFactory.java:415) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:113) at org.forgerock.openidm.router.filter.PassthroughFilter.filterUpdate(PassthroughFilter.java:78) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterUpdate(MutableFilterDecorator.java:102) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterUpdate(MutableFilterDecorator.java:102) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:113) at org.forgerock.json.resource.Filters$ConditionalFilter.filterUpdate(Filters.java:104) at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:113) at org.forgerock.json.resource.FilterChain.handleUpdate(FilterChain.java:258) at org.forgerock.json.resource.InternalConnection.updateAsync(InternalConnection.java:88) at org.forgerock.json.resource.AbstractAsynchronousConnection.update(AbstractAsynchronousConnection.java:100) at org.forgerock.json.resource.AbstractConnectionWrapper.update(AbstractConnectionWrapper.java:212) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.lambda$update$4(ServletConnectionFactory.java:320) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:51) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:68) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.time(ServletConnectionFactory.java:278) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.update(ServletConnectionFactory.java:320) at org.forgerock.json.resource.AbstractConnectionWrapper.update(AbstractConnectionWrapper.java:212) at org.forgerock.openidm.sync.SyncOperation.lambda$updateTargetObject$2(SyncOperation.java:841) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:83) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:98) at org.forgerock.openidm.sync.SyncOperation.updateTargetObject(SyncOperation.java:828) at org.forgerock.openidm.sync.SyncOperation.performAction(SyncOperation.java:479) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:83) at org.forgerock.openidm.sync.SourceSyncOperation.sync(SourceSyncOperation.java:139) at org.forgerock.openidm.sync.ObjectMapping.doSourceSync(ObjectMapping.java:590) at org.forgerock.openidm.sync.ObjectMapping.sourceModified(ObjectMapping.java:659) at org.forgerock.openidm.sync.SynchronizationService.lambda$null$3(SynchronizationService.java:424) at java.util.Optional.ifPresent(Optional.java:159) at org.forgerock.openidm.sync.SynchronizationService.lambda$handleSynchronizationEvents$4(SynchronizationService.java:412) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) at java.util.stream.ReferencePipeline$Head.forEachOrdered(ReferencePipeline.java:590) at org.forgerock.openidm.sync.SynchronizationService.handleSynchronizationEvents(SynchronizationService.java:407) at org.forgerock.openidm.sync.SynchronizationService.actionInstance(SynchronizationService.java:374) at org.forgerock.json.resource.InterfaceSingletonHandler.handleAction(InterfaceSingletonHandler.java:26) at org.forgerock.json.resource.Router.handleAction(Router.java:250) at org.forgerock.json.resource.Router.handleAction(Router.java:250) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:55) at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.openidm.audit.filter.AuditFilter.lambda$filterAction$0(AuditFilter.java:113) at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:169) at org.forgerock.openidm.audit.filter.AuditFilter.filterAction(AuditFilter.java:113) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:66) at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:42) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.lambda$filterAction$0(ServletConnectionFactory.java:379) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.handleRequestWithLogging(ServletConnectionFactory.java:436) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.filterAction(ServletConnectionFactory.java:379) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.openidm.router.filter.PassthroughFilter.filterAction(PassthroughFilter.java:42) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:66) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:66) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:222) at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:29) at org.forgerock.json.resource.AbstractConnectionWrapper.actionAsync(AbstractConnectionWrapper.java:74) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.lambda$actionAsync$11(ServletConnectionFactory.java:357) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:112) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.time(ServletConnectionFactory.java:292) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.actionAsync(ServletConnectionFactory.java:357) at org.forgerock.json.resource.AbstractConnectionWrapper.actionAsync(AbstractConnectionWrapper.java:74) at org.forgerock.openidm.relationship.AugmentingIDMConnectionFactoryProxy$ConnectionRequestHandlerAdaptor.handleAction(AugmentingIDMConnectionFactoryProxy.java:162) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:55) at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44) at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53) at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:222) at org.forgerock.openidm.relationship.AugmentingIDMConnectionFactoryProxy$RequestHandlerConnectionAdaptor.actionAsync(AugmentingIDMConnectionFactoryProxy.java:217) at org.forgerock.json.resource.AbstractAsynchronousConnection.action(AbstractAsynchronousConnection.java:32) at org.forgerock.openidm.managed.ManagedObjectSet.performSyncAction(ManagedObjectSet.java:1818) at org.forgerock.openidm.managed.ManagedObjectSet.createInstance(ManagedObjectSet.java:938) at org.forgerock.json.resource.InterfaceCollectionHandler.handleCreate(InterfaceCollectionHandler.java:31) at org.forgerock.json.resource.Router.handleCreate(Router.java:264) at org.forgerock.openidm.managed.ManagedObjectService$ManagedObjectSetRequestHandler.handleCreate(ManagedObjectService.java:245) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:65) at org.forgerock.openidm.notification.NotificationFilter.filterCreate(NotificationFilter.java:207) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.openidm.notification.NotificationFilter.filterCreate(NotificationFilter.java:207) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:228) at org.forgerock.json.resource.Router.handleCreate(Router.java:264) at org.forgerock.openidm.managed.ManagedObjectService.handleCreate(ManagedObjectService.java:391) at org.forgerock.json.resource.Router.handleCreate(Router.java:264) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:65) at org.forgerock.openidm.router.filter.ScriptedFilter.lambda$filterCreate$1(ScriptedFilter.java:104) at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:258) at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:222) at org.forgerock.openidm.router.filter.ScriptedFilter.filterRequest(ScriptedFilter.java:162) at org.forgerock.openidm.router.filter.ScriptedFilter.filterCreate(ScriptedFilter.java:104) at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:52) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:54) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.openidm.audit.filter.AuditFilter.lambda$filterCreate$1(AuditFilter.java:119) at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:169) at org.forgerock.openidm.audit.filter.AuditFilter.filterCreate(AuditFilter.java:119) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:72) at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:52) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.lambda$filterCreate$1(ServletConnectionFactory.java:385) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.handleRequestWithLogging(ServletConnectionFactory.java:436) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.filterCreate(ServletConnectionFactory.java:385) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.openidm.router.filter.PassthroughFilter.filterCreate(PassthroughFilter.java:48) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:72) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterCreate(MutableFilterDecorator.java:72) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:54) at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63) at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:228) at org.forgerock.json.resource.InternalConnection.createAsync(InternalConnection.java:40) at org.forgerock.json.resource.AbstractAsynchronousConnection.create(AbstractAsynchronousConnection.java:42) at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:92) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.lambda$create$0(ServletConnectionFactory.java:297) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:51) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:68) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.time(ServletConnectionFactory.java:278) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$InternalConnectionWrapper.create(ServletConnectionFactory.java:297) at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:92) at org.forgerock.openidm.sync.SyncOperation.lambda$createTargetObject$1(SyncOperation.java:801) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:51) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:68) at org.forgerock.openidm.sync.SyncOperation.createTargetObject(SyncOperation.java:797) at org.forgerock.openidm.sync.SyncOperation.performAction(SyncOperation.java:405) at org.forgerock.openidm.metrics.MetricsCollector.time(MetricsCollector.java:83) at org.forgerock.openidm.sync.SourceSyncOperation.sync(SourceSyncOperation.java:139) at org.forgerock.openidm.sync.SourceRecon.recon(SourceRecon.java:71) at org.forgerock.openidm.sync.ReconTask.call(ReconTask.java:56) at org.forgerock.openidm.sync.ReconTask.call(ReconTask.java:23) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.UnsupportedOperationException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:239) at org.forgerock.openicf.connectors.groovy.ScriptedConnectorBase.update(ScriptedConnectorBase.groovy:570) at org.identityconnectors.framework.impl.api.local.operations.UpdateImpl.update(UpdateImpl.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:104) at 
      

        Attachments

          Activity

            People

            • Assignee:
              petr.jurica Petr Jurica [X] (Inactive)
              Reporter:
              michal.orlik@profiq.cz Michal Orlik
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: