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

OrgType Inducement tab NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9
    • Component/s: None
    • Labels:
      None

      Description

      Gets following error:

      2018-10-22 15:22:42,133 [] [https-jsse-nio-8443-exec-9] WARN (com.evolveum.midpoint.web.page.error.PageError): Creating error page for code org.apache.wicket.WicketRuntimeException, exception Error attaching this container for rendering: [WebMarkupContainer [Component id = body]]: {}
      org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [WebMarkupContainer [Component id = body]]
              at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1837)
              at org.apache.wicket.Component.onBeforeRender(Component.java:3916)
      ....
      Caused by: java.lang.NullPointerException: null
              at com.evolveum.midpoint.web.component.assignment.AssignmentsUtil.getName(AssignmentsUtil.java:283)
              at com.evolveum.midpoint.web.component.assignment.AssignmentPanel$3.createLinkModel(AssignmentPanel.java:253)
              at com.evolveum.midpoint.web.component.data.column.LinkColumn.populateItem(LinkColumn.java:59)
              at org.apache.wicket.extensions.markup.html.repeater.data.grid.AbstractDataGridView.populateItem(AbstractDataGridView.java:156)
              at org.apache.wicket.markup.repeater.RefreshingView$1.newItem(RefreshingView.java:114)
      

      After clicking on Inducement tab in organization that has following inducement setting:

          <inducement id="2">
              <targetRef oid="zzz-role-virtuser-manager" relation="org:default" type="c:RoleType">
      
              </targetRef>
              <orderConstraint id="7">
                  <orderMin>1</orderMin>
                  <orderMax>unbounded</orderMax>
                  <relation>org:manager</relation>
              </orderConstraint>
          </inducement>
          <inducement id="3">
              <focusMappings>
                  <mapping id="8">
                      <expression>
                          <value>virtual_users</value>
                      </expression>
                      <target>
                          <c:path>$focus/extension/zzzOrgCategory</c:path>
                      </target>
                  </mapping>
              </focusMappings>
              <orderConstraint id="9">
                  <orderMin>1</orderMin>
                  <orderMax>unbounded</orderMax>
                  <relation>default</relation>
              </orderConstraint>
              <focusType>OrgType</focusType>
          </inducement>
      

        Attachments

          Activity

            People

            Assignee:
            martin.lizner Martin Lizner
            Reporter:
            martin.lizner Martin Lizner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: