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

Cannot recompute role members: Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      MID-102 training

    • Git Revision:
      git-v4.0devel-1083-g9033ad8
    • Milestone:
      M4

      Description

      Attempting to recompute role members in GUI: Role - click on role - Members, select action "Recompute" yields the following:

      2019-05-22 09:54:45,553 [] [midPointScheduler_Worker-3] ERROR (com.evolveum.midpoint.repo.sql.helpers.BaseHelper): General checked exception occurred.
      com.evolveum.midpoint.repo.sql.query.QueryException: Entity Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)
              at com.evolveum.midpoint.repo.sql.query2.resolution.ItemPathResolver.findRestrictedEntityDefinition(ItemPathResolver.java:263)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestrictionInternal(QueryInterpreter2.java:257)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestriction(QueryInterpreter2.java:231)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretFilter(QueryInterpreter2.java:215)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretQueryFilter(QueryInterpreter2.java:209)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpret(QueryInterpreter2.java:119)
              at com.evolveum.midpoint.repo.sql.query2.QueryEngine2.interpret(QueryEngine2.java:66)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsAttempt(ObjectRetriever.java:383)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.lambda$searchObjects$5(SqlRepositoryServiceImpl.java:344)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.executeQueryAttempts(SqlRepositoryServiceImpl.java:278)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.searchObjects(SqlRepositoryServiceImpl.java:342)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsIterativeByPagingStrictlySequential(ObjectRetriever.java:890)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.searchObjectsIterative(SqlRepositoryServiceImpl.java:912)
              at com.evolveum.midpoint.repo.cache.RepositoryCache.searchObjectsIterative(RepositoryCache.java:395)
              at com.evolveum.midpoint.model.impl.controller.ModelController.searchObjectsIterative(ModelController.java:1176)
              at com.evolveum.midpoint.model.impl.scripting.expressions.SearchEvaluator.evaluate(SearchEvaluator.java:167)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:205)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:175)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:148)
              at com.evolveum.midpoint.model.impl.controller.ModelController.evaluateExpression(ModelController.java:2126)
              at com.evolveum.midpoint.model.impl.scripting.ScriptExecutionTaskHandler.run(ScriptExecutionTaskHandler.java:80)
              at com.evolveum.midpoint.task.quartzimpl.execution.HandlerExecutor.executePlainTaskHandler(HandlerExecutor.java:72)
              at com.evolveum.midpoint.task.quartzimpl.execution.HandlerExecutor.executeHandler(HandlerExecutor.java:64)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:663)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:481)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:198)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      2019-05-22 09:54:45,558 [] [midPointScheduler_Worker-3] ERROR (com.evolveum.midpoint.model.impl.controller.ModelController): Couldn't search objects in repository.
      com.evolveum.midpoint.util.exception.SystemException: Entity Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)
              at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralCheckedException(BaseHelper.java:183)
              at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralException(BaseHelper.java:155)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsAttempt(ObjectRetriever.java:394)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.lambda$searchObjects$5(SqlRepositoryServiceImpl.java:344)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.executeQueryAttempts(SqlRepositoryServiceImpl.java:278)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.searchObjects(SqlRepositoryServiceImpl.java:342)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsIterativeByPagingStrictlySequential(ObjectRetriever.java:890)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.searchObjectsIterative(SqlRepositoryServiceImpl.java:912)
              at com.evolveum.midpoint.repo.cache.RepositoryCache.searchObjectsIterative(RepositoryCache.java:395)
              at com.evolveum.midpoint.model.impl.controller.ModelController.searchObjectsIterative(ModelController.java:1176)
              at com.evolveum.midpoint.model.impl.scripting.expressions.SearchEvaluator.evaluate(SearchEvaluator.java:167)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:205)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:175)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:148)
              at com.evolveum.midpoint.model.impl.controller.ModelController.evaluateExpression(ModelController.java:2126)
              at com.evolveum.midpoint.model.impl.scripting.ScriptExecutionTaskHandler.run(ScriptExecutionTaskHandler.java:80)
              at com.evolveum.midpoint.task.quartzimpl.execution.HandlerExecutor.executePlainTaskHandler(HandlerExecutor.java:72)
              at com.evolveum.midpoint.task.quartzimpl.execution.HandlerExecutor.executeHandler(HandlerExecutor.java:64)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:663)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:481)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:198)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: com.evolveum.midpoint.repo.sql.query.QueryException: Entity Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)
              at com.evolveum.midpoint.repo.sql.query2.resolution.ItemPathResolver.findRestrictedEntityDefinition(ItemPathResolver.java:263)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestrictionInternal(QueryInterpreter2.java:257)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestriction(QueryInterpreter2.java:231)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretFilter(QueryInterpreter2.java:215)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretQueryFilter(QueryInterpreter2.java:209)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpret(QueryInterpreter2.java:119)
              at com.evolveum.midpoint.repo.sql.query2.QueryEngine2.interpret(QueryEngine2.java:66)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsAttempt(ObjectRetriever.java:383)
              ... 20 common frames omitted
      2019-05-22 09:54:45,559 [] [midPointScheduler_Worker-3] ERROR (com.evolveum.midpoint.model.impl.scripting.ScriptExecutionTaskHandler): Couldn't execute script.
      com.evolveum.midpoint.model.api.ScriptExecutionException: Couldn't execute script: Entity Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:182)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:148)
              at com.evolveum.midpoint.model.impl.controller.ModelController.evaluateExpression(ModelController.java:2126)
              at com.evolveum.midpoint.model.impl.scripting.ScriptExecutionTaskHandler.run(ScriptExecutionTaskHandler.java:80)
              at com.evolveum.midpoint.task.quartzimpl.execution.HandlerExecutor.executePlainTaskHandler(HandlerExecutor.java:72)
              at com.evolveum.midpoint.task.quartzimpl.execution.HandlerExecutor.executeHandler(HandlerExecutor.java:64)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:663)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:481)
              at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:198)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: com.evolveum.midpoint.util.exception.SystemException: Entity Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)
              at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralCheckedException(BaseHelper.java:183)
              at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralException(BaseHelper.java:155)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsAttempt(ObjectRetriever.java:394)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.lambda$searchObjects$5(SqlRepositoryServiceImpl.java:344)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.executeQueryAttempts(SqlRepositoryServiceImpl.java:278)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.searchObjects(SqlRepositoryServiceImpl.java:342)
              at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.searchObjectsIterativeByPagingStrictlySequential(ObjectRetriever.java:890)
              at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.searchObjectsIterative(SqlRepositoryServiceImpl.java:912)
              at com.evolveum.midpoint.repo.cache.RepositoryCache.searchObjectsIterative(RepositoryCache.java:395)
              at com.evolveum.midpoint.model.impl.controller.ModelController.searchObjectsIterative(ModelController.java:1176)
              at com.evolveum.midpoint.model.impl.scripting.expressions.SearchEvaluator.evaluate(SearchEvaluator.java:167)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:205)
              at com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression(ScriptingExpressionEvaluator.java:175)
              ... 10 common frames omitted
      Caused by: com.evolveum.midpoint.repo.sql.query.QueryException: Entity Ent:RFocus (jaxb=FocusType) cannot be restricted to Ent:RObject (jaxb=AssignmentHolderType)
              at com.evolveum.midpoint.repo.sql.query2.resolution.ItemPathResolver.findRestrictedEntityDefinition(ItemPathResolver.java:263)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestrictionInternal(QueryInterpreter2.java:257)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestriction(QueryInterpreter2.java:231)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretFilter(QueryInterpreter2.java:215)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretQueryFilter(QueryInterpreter2.java:209)
              at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpret(QueryInterpreter2.java:119)
      

        Attachments

          Issue Links

            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: