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

Boolean extension attributes don't work

    XMLWordPrintable

    Details

    • Git Revision:
      git-v3.0.1devel-569-gf356f3f

      Description

      Extension attribute is defined in schema:

            <xsd:element name="skipAutogeneration" type="xsd:boolean" minOccurs="0" maxOccurs="1">
              <xsd:annotation>
                <xsd:appinfo>
                  <a:indexed>true</a:indexed>
                    <a:displayName>Do not generate</a:displayName>
                    <a:displayOrder>10</a:displayOrder>
                  </xsd:appinfo>
              </xsd:annotation>
            </xsd:element>
      

      Attribute is visible in GUI, can be saved. But when I use the value in mapping in object template, exception is thrown:

      Exception when translating PP({http://evolveum.com/mycustomer/aaa}skipAutogeneration):[PPV(Boolean:true)]: Can't extract value for saving from prism property value PPV(Boolean:true): Exception when translating PP({http://evolveum.com/mycustomer/aaa}skipAutogeneration):[PPV(Boolean:true)]: Can't extract value for saving from prism property value PPV(Boolean:true)
      
      com.evolveum.midpoint.util.exception.SchemaException: Exception when translating PP({http://evolveum.com/mycustomer/aaa}skipAutogeneration):[PPV(Boolean:true)]: Can't extract value for saving from prism property value
      PPV(Boolean:true)
      at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.createDataObjectFromJAXB(SqlRepositoryServiceImpl.java:1441)
      at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.modifyObjectAttempt(SqlRepositoryServiceImpl.java:1185)
      at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.modifyObject_aroundBody14(SqlRepositoryServiceImpl.java:1147)
      at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl$AjcClosure15.run(SqlRepositoryServiceImpl.java:1)
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:190)
      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)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processRepositoryNdc(MidpointAspect.java:70)
      at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.modifyObject(SqlRepositoryServiceImpl.java:1092)
      at com.evolveum.midpoint.repo.cache.RepositoryCache.modifyObject_aroundBody10(RepositoryCache.java:238)
      at com.evolveum.midpoint.repo.cache.RepositoryCache$AjcClosure11.run(RepositoryCache.java:1)
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:190)
      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)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processRepositoryNdc(MidpointAspect.java:70)
      at com.evolveum.midpoint.repo.cache.RepositoryCache.modifyObject(RepositoryCache.java:236)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeModification(ChangeExecutor.java:842)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta(ChangeExecutor.java:609)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeChanges(ChangeExecutor.java:161)
      at com.evolveum.midpoint.model.impl.lens.Clockwork.processSecondary(Clockwork.java:400)
      at com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:230)
      at com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:156)
      at com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges_aroundBody4(ModelController.java:526)
      at com.evolveum.midpoint.model.impl.controller.ModelController$AjcClosure5.run(ModelController.java:1)
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:190)
      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)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processModelNdc(MidpointAspect.java:75)
      at com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:428)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:435)
      at com.sun.proxy.$Proxy132.executeChanges(Unknown Source)
      at com.evolveum.midpoint.web.component.progress.ProgressReporter$1.run(ProgressReporter.java:183)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.createDataObjectFromJAXB(SqlRepositoryServiceImpl.java:1435)
      ... 36 more
      Caused by: com.evolveum.midpoint.repo.sql.util.DtoTranslationException: Exception when translating PP({http://evolveum.com/mycustomer/aaa}skipAutogeneration):[PPV(Boolean:true)]: Can't extract value for saving from prism property value
      PPV(Boolean:true)
      at com.evolveum.midpoint.repo.sql.data.common.RObject.copyFromJAXB(RObject.java:565)
      at com.evolveum.midpoint.repo.sql.data.common.RObject.copyFromJAXB(RObject.java:538)
      at com.evolveum.midpoint.repo.sql.data.common.RFocus.copyFromJAXB(RFocus.java:154)
      at com.evolveum.midpoint.repo.sql.data.common.RUser.copyFromJAXB(RUser.java:368)
      ... 41 more
      Caused by: com.evolveum.midpoint.repo.sql.util.DtoTranslationException: Exception when translating PP({http://evolveum.com/mycustomer/aaa}skipAutogeneration):[PPV(Boolean:true)]: Can't extract value for saving from prism property value
      PPV(Boolean:true)
      at com.evolveum.midpoint.repo.sql.data.common.any.RAnyConverter.convertToRValue(RAnyConverter.java:159)
      at com.evolveum.midpoint.repo.sql.data.common.RObject.copyFromJAXB(RObject.java:561)
      ... 44 more
      Caused by: java.lang.IllegalStateException: Can't extract value for saving from prism property value
      PPV(Boolean:true)
      at com.evolveum.midpoint.repo.sql.data.common.any.RAnyConverter.extractValue(RAnyConverter.java:219)
      at com.evolveum.midpoint.repo.sql.data.common.any.RAnyConverter.convertToRValue(RAnyConverter.java:134)
      ... 45 more
      

        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: