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

Deleting task if the owner has been already deleted throws exception to idm.log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1 (Sinan)
    • Fix Version/s: 3.1.1
    • Component/s: None
    • Labels:
      None

      Description

      I'v been experimenting with workflows, so in Server tasks there was one closed (completed) workflow task. I have deleted all users, including this task owner.
      Deleting the task is ok in GUI, but in idm.log:

      2015-01-23 11:10:21,649 [] [http-bio-8080-exec-4] ERROR (com.evolveum.midpoint.web.page.admin.server.dto.TaskDto): Couldn't get the name of referenced object with OID fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8 for task 00c2c915-4e92-4297-89c6-be22c36a35b6, reason: Object of type 'ObjectType' with oid 'fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8' was not found. (class com.evolveum.midpoint.util.exception.ObjectNotFoundException)
      2015-01-23 11:10:27,712 [TASK_MANAGER] [http-bio-8080-exec-5] INFO (com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl): Suspending tasks [Task(id:1422007030964-0-1, name:Livesync, oid:157cec29-a882-4eae-9a59-bc8b318151dc)]; stop tasks and wait 2000 ms for their completion (if necessary).
      2015-01-23 11:10:27,739 [TASK_MANAGER] [http-bio-8080-exec-5] INFO (com.evolveum.midpoint.task.quartzimpl.execution.LocalNodeManager): Stopping local task 157cec29-a882-4eae-9a59-bc8b318151dc run
      2015-01-23 11:10:28,209 [] [http-bio-8080-exec-5] ERROR (com.evolveum.midpoint.web.page.admin.server.dto.TaskDto): Couldn't get the name of referenced object with OID fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8 for task 00c2c915-4e92-4297-89c6-be22c36a35b6, reason: Object of type 'ObjectType' with oid 'fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8' was not found. (class com.evolveum.midpoint.util.exception.ObjectNotFoundException)
      2015-01-23 11:10:32,534 [TASK_MANAGER] [http-bio-8080-exec-10] WARN (com.evolveum.midpoint.task.quartzimpl.TaskQuartzImpl): The owner of task 00c2c915-4e92-4297-89c6-be22c36a35b6 cannot be found (owner OID: fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8)
      com.evolveum.midpoint.util.exception.ObjectNotFoundException: Object of type 'UserType' with oid 'fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8' was not found.
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.throwObjectNotFoundException(SqlRepositoryServiceImpl.java:190) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.getObject(SqlRepositoryServiceImpl.java:178) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.getObjectAttempt(SqlRepositoryServiceImpl.java:240) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.getObject_aroundBody0(SqlRepositoryServiceImpl.java:218) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl$AjcClosure1.run(SqlRepositoryServiceImpl.java:1) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.7.3.jar:na]
      . . .
      2015-01-23 11:10:32,544 [TASK_MANAGER] [http-bio-8080-exec-10] WARN (com.evolveum.midpoint.task.quartzimpl.TaskQuartzImpl): The owner of task 1aa2d7a6-e242-4983-9a37-3c6e5f18a18f cannot be found (owner OID: fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8)
      com.evolveum.midpoint.util.exception.ObjectNotFoundException: Object of type 'UserType' with oid 'fdf5c2d2-ba24-4b28-bc78-25f0906e6ba8' was not found.
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.throwObjectNotFoundException(SqlRepositoryServiceImpl.java:190) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.getObject(SqlRepositoryServiceImpl.java:178) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.getObjectAttempt(SqlRepositoryServiceImpl.java:240) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.getObject_aroundBody0(SqlRepositoryServiceImpl.java:218) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl$AjcClosure1.run(SqlRepositoryServiceImpl.java:1) ~[repo-sql-impl-3.1-SNAPSHOT.jar:na]
              at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.7.3.jar:na]
              at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:178) [util-3.1-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$wrapSubsystem(MidpointAspect.java:1) [util-3.1-SNAPSHOT.jar:na]
      

      It seems to be pretty harmless, but the exception is quite long (number of lines).

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: