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

Exception caught marshalling a SynchronizationEvent due to missing serialization in SelfServiceContext

    Details

      Description

      To reproduce this issue on 6.5.0.1:

      1. Set up a mapping from managed/user to an external target. Enable implicit sync and queued sync.
      2. Configure selfservice registration.
      3. As openidm-admin user, create a new managed user resource, it is successfully synced to external target.
      4. Register a new user via self-service registration service, including clicking the validation link in email.
      5. The exception is logged

      SEVERE: Exception caught marshalling a SynchronizationEvent from the repo. The repo state: { "_id": "4162a7fa-9178-4165-9be5-65089ff86237", "syncAction": "notifyCreate", "resourceCollection": "managed/user", "resourceId": "f072bcc6-2966-4fc9-8ec9-108e045cbb88", "mapping": "managedUser_systemDsAccount",...
      java.lang.IllegalArgumentException: Cannot construct instance of `org.forgerock.openidm.sync.SynchronizationEvent`, problem: Failed to instantiate class: org.forgerock.http.routing.UriRouterContext
       at [Source: UNKNOWN; line: -1, column: -1]
              at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:3750)
              at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:3668)
              at org.forgerock.openidm.sync.SynchronizationEvent.newSynchronizationEvent(SynchronizationEvent.java:466)
              at org.forgerock.openidm.sync.impl.queue.SynchronizationQueueConsumer.handleResource(SynchronizationQueueConsumer.java:156)
      ...Caused by: java.lang.IllegalArgumentException: Unable to instantiate Context implementation class 'org.forgerock.services.context.ClientContext'
              at org.forgerock.services.context.AbstractContext.load0(AbstractContext.java:135)
              at org.forgerock.services.context.AbstractContext.<init>(AbstractContext.java:122)
              at org.forgerock.http.routing.UriRouterContext.<init>(UriRouterContext.java:140)
              ... 210 more
      Caused by: java.lang.reflect.InvocationTargetException
              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.forgerock.services.context.AbstractContext.load0(AbstractContext.java:133)
              ... 212 more
      Caused by: java.lang.IllegalArgumentException: Unable to instantiate Context implementation class 'org.forgerock.selfservice.core.SelfServiceContext'
              at org.forgerock.services.context.AbstractContext.load0(AbstractContext.java:135)
              at org.forgerock.services.context.AbstractContext.<init>(AbstractContext.java:122)
              at org.forgerock.services.context.ClientContext.<init>(ClientContext.java:230)
              ... 217 more
      Caused by: java.lang.ClassNotFoundException: org.forgerock.selfservice.core.SelfServiceContext not found by org.forgerock.openidm.sync [254]
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
              at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at org.forgerock.services.context.AbstractContext.load0(AbstractContext.java:129)
              ... 219 more
      

      6. The event is stuck in sync queue

        "result": [
          {
            "_id": "4162a7fa-9178-4165-9be5-65089ff86237",
            "_rev": "00000000e0ba17de",
            "mapping": "managedUser_systemDsAccount",
            "resourceId": "f072bcc6-2966-4fc9-8ec9-108e045cbb88",
            "remainingRetries": 5,
            "syncAction": "notifyCreate",
            "state": "PENDING",
            "resourceCollection": "managed/user",
            "nodeId": null,
            "createDate": "2019-11-05T06:35:09.785000000Z"
          }
        ],
      

        Attachments

          Activity

            People

            • Assignee:
              cgdrake Chris Drake
              Reporter:
              yinyan.cao Yinyan Cao
              QA Assignee:
              Vojtech Zamecnik [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: