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

Create user fail with 500 internal server error when using scriptedrest2dj sample

    XMLWordPrintable

    Details

      Description

      Hi Team,

      While running the create user as suggested in Forgerock samples build ( https://backstage.forgerock.com/docs/openidm/4.5/samples-guide#chap-groovy-samples ) got the below error:

      Command Executed:

      c:\curl-7.51.0\src>curl --header "X-OpenIDM-Username: openidm-admin" --header "X
      -OpenIDM-Password: openidm-admin" --header "Content-Type: application/json" --re
      quest POST -d @GroupJson.txt "http://localhost:8080/openidm/system/scriptedrest/group
      ?_action=create"

      Error Message:

      {"code":500,"reason":"Internal Server Error","message":"Operation CREATE failed with ConnectorException on system object: group1"}

      Error snippet in log:

      Dec 01, 2016 1:48:21 PM org.forgerock.openicf.misc.scriptedcommon.ScriptedConfiguration evaluate
      INFO: Entering CREATE Script
      Dec 01, 2016 1:48:21 PM org.forgerock.openidm.servlet.internal.ServletConnectionFactory$4 handleException
      WARNING: Resource exception: 500 Internal Server Error: "Operation CREATE failed with ConnectorException on system object: scarter"
      org.forgerock.json.resource.InternalServerErrorException: Operation CREATE failed with ConnectorException on system object: scarter
      at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService.adaptConnectorException(OpenICFProvisionerService.java:548)
      at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService.access$1400(OpenICFProvisionerService.java:194)
      at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassResourceProvider.handleCreate(OpenICFProvisionerService.java:1222)
      at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassRequestHandler.handleCreate(OpenICFProvisionerService.java:983)
      at org.forgerock.json.resource.Router.handleCreate(Router.java:255)
      at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:69)
      at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
      at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      at org.forgerock.openidm.filter.ScriptedFilter$2.apply(ScriptedFilter.java:104)
      at org.forgerock.openidm.filter.ScriptedFilter$2.apply(ScriptedFilter.java:101)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)

      I have attached OpenIDM log for more information on the error details.

      Please let me know in case you need any more information.

      Regards,
      Amit Choudhary

        Attachments

        1. GroupJson.txt
          0.0 kB
        2. openidm0.log.0
          136 kB
        3. UserJson.txt
          0.2 kB

          Issue Links

            Activity

              People

              Assignee:
              jason.browne Jason Browne [X] (Inactive)
              Reporter:
              amitkumar.choudhary Amit Choudhary [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: