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

pagedSearchEstimate throws NPE

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.4.1
    • backlog
    • Connectors, Provisioning
    • None
    • No subscription (community)

    Description

      I have a connector based on REST Connector superclass, configured to use pagedSearchEstimate 

      <configuredCapabilities xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3">
          <cap:pagedSearch/>
          <cap:countObjects>
              <cap:simulate>pagedSearchEstimate</cap:simulate>
          </cap:countObjects>
      </configuredCapabilities>
      

      However, it doesn't work as expected; when I try to load objects on resource, I'm getting following:

      2022-03-21 14:14:27,032 [] [http-nio-8770-exec-10] ERROR (com.evolveum.midpoint.web.component.data.SelectableBeanContainerDataProvider): Couldn't count objects.
      java.lang.NullPointerException: null

      at com.evolveum.midpoint.provisioning.impl.shadows.SearchHelper.countResourceObjects(SearchHelper.java:500) at com.evolveum.midpoint.provisioning.impl.shadows.SearchHelper.countResourceObjects(SearchHelper.java:500) at com.evolveum.midpoint.provisioning.impl.shadows.SearchHelper.countObjects(SearchHelper.java:478)

      ...

       

      In the attachment you can find whole stacktrace.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            drabikp Peter Drabik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: