Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-579

Importing accounts from resource throws exceptions: ownerRef problem and objectDelta

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.10 (Phoebe)
    • 1.10 (Phoebe)
    • Infra
    • None

    Description

      Importing users from CSV resource:

      1. click Import button
      2. exceptions in the log:

      2012-01-20 11:22:09,055 [MODEL] [midpoint-task-3] ERROR (com.evolveum.midpoint.task.impl.SingleRunner): SingleRunner got critical exception, the task state cannot be saved: com.evolveum.midpoint.schem
      a.exception.SchemaException: Task 75c443be-2f3f-4385-8f74-797f0bfc4299 does not have an owner (missing ownerRef)
      com.evolveum.midpoint.schema.exception.SchemaException: Task 75c443be-2f3f-4385-8f74-797f0bfc4299 does not have an owner (missing ownerRef)
      at com.evolveum.midpoint.task.impl.TaskImpl.initialize(TaskImpl.java:142) ~[task-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.task.impl.TaskImpl.refresh(TaskImpl.java:648) ~[task-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.task.impl.TaskManagerImpl.finishRunnableTask(TaskManagerImpl.java:526) ~[task-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.task.impl.SingleRunner.run(SingleRunner.java:129) ~[task-impl-2.0-SNAPSHOT.jar:na]
      at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]

      as well as

      2012-01-20 11:24:02,394 [MODEL] [midpoint-task-5] INFO (com.evolveum.midpoint.task.impl.TaskRunner): Task run STARTING Task(id:1327055042267-0-1, name:Import from resource Localhost CSVfile, oid:4cd97cea-aa00-4864-8fdc-3c01898de36b) (SingleRunner)
      2012-01-20 11:24:02,658 [MODEL] [midpoint-task-5] INFO (com.evolveum.midpoint.model.importer.ImportAccountsFromResourceTaskHandler): Start executing import from resource resource: Localhost CSVfile(OID:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe), importing object class

      {http://midpoint.evolveum.com/xml/ns/public/resource/instance/ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe}

      AccountObjectClass
      2012-01-20 11:24:02,765 [UCF] [midpoint-task-5] ERROR (com.evolveum.midpoint.model.sync.SynchronizeAccountResultHandler): Import of object account: user01(OID:307dc0f0-5f33-4db6-b8a8-e04c646ca5a8) from resource resource: Localhost CSVfile(OID:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe) failed: Either objectDelta or currentShadow must be set in ResourceObjectShadowChangeDescription
      java.lang.IllegalArgumentException: Either objectDelta or currentShadow must be set in ResourceObjectShadowChangeDescription
      at com.evolveum.midpoint.provisioning.api.ResourceObjectShadowChangeDescription.assertCorrectness(ResourceObjectShadowChangeDescription.java:99) ~[provisioning-api-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.sync.SynchronizeAccountResultHandler.handle(SynchronizeAccountResultHandler.java:181) ~[model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl$3.handle(ProvisioningServiceImpl.java:866) [provisioning-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.provisioning.impl.ResourceTypeManager$2.handle_aroundBody0(ResourceTypeManager.java:575) [provisioning-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.provisioning.impl.ResourceTypeManager$2$AjcClosure1.run(ResourceTypeManager.java:1) [provisioning-impl-2.0-SNAPSHOT.jar:na]
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.6.11.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.markSubsystem(MidpointAspect.java:165) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$markSubsystem(MidpointAspect.java:1) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processUcfNdc(MidpointAspect.java:95) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.provisioning.impl.ResourceTypeManager$2.handle(ResourceTypeManager.java:516) [provisioning-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl$2.handle(ConnectorInstanceIcfImpl.java:1270) [provisioning-impl-2.0-SNAPSHOT.jar:na]

      Attachments

        Activity

          People

            semancik Radovan Semancik
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: