[midPoint] Error importing: Index 0 out of bounds for length 0

Markus Calmius markus.calmius at proton.ch
Wed Oct 4 14:14:39 CEST 2023


Hi Pavol,

it was quite the stack-trace but like I said, I managed to figure it out.
I got confused since I was importing it from csv-resource and didn't quite understand why the FreeIPA-connector could cause import errors from a different resource.

Anyway, here are parts of the two stack-traces, that gave it away. 
Once I actually saw the freeipa, I did a "test connection" and got the same error.

2023-10-02 07:10:34,014 [] [http-nio-8080-exec-6] WARN (io.artin.idm.connector.freeipa.FreeIpaConnector): method: null msg:401 - no cookie detected need to connect
2023-10-02 07:10:34,079 [] [http-nio-8080-exec-6] WARN (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnIdUtil): Got ConnId exception (might be handled by upper layers later) java.lang.IndexOutOfBoundsException in connector:fdb720db-8567-4d6d-b791-4e564734326a(Conn
Id io.artin.idm.connector.freeipa.FreeIpaConnector v1.0.3.2): ConnectorSpec.Main(resource:38b6ecd8-0efb-48b7-b469-a407de5619a0(LDAP / FreeIPA)) while getting object identified by ConnId UID '<redacted>': Index 0 out of bounds for length 0, reason: Index 0 out of bounds for 
length 0 (class java.lang.IndexOutOfBoundsException)
2023-10-02 07:10:34,085 [MODEL] [http-nio-8080-exec-6] ERROR (com.evolveum.midpoint.model.impl.lens.projector.Projector): Runtime error in projector: Index 0 out of bounds for length 0
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
        at java.base/java.util.Objects.checkIndex(Objects.java:372)
        at java.base/java.util.ArrayList.get(ArrayList.java:459)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.login(FreeIpaConnector.java:205)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.callRequest(FreeIpaConnector.java:411)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.executeQuery(FreeIpaConnector.java:486)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.executeQuery(FreeIpaConnector.java:84)
        at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:197)
        at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:133)
        at jdk.internal.reflect.GeneratedMethodAccessor687.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:99)
        at com.sun.proxy.$Proxy216.search(Unknown Source)


2023-10-02 07:10:34,096 [SYNCHRONIZATION_SERVICE] [http-nio-8080-exec-6] ERROR (com.evolveum.midpoint.model.impl.sync.reactions.SynchronizationActionExecutor): SYNCHRONIZATION: Error in synchronization on resource:5ae00893-b787-44ea-a6e5-f81cf52ba991(Tempcsv) for situation LINKED: IndexOutOfBoundsException: Index 0 out of bounds for length 0. Change was ResourceObjectShadowChangeDescription(objectDelta=ObjectDelta(ShadowType:03dbdd3b-abd4-4dcd-806f-f133ac3bffcf,ADD: shadow:03dbdd3b-abd4-4dcd-806f-f133ac3bffcf(<redacted>)), currentShadow=shadow:03dbdd3b-abd4-4dcd-806f-f133ac3bffcf(<redacted>), sourceChannel=http://midpoint.evolveum.com/xml/ns/public/common/channels-3#import, resource=resource:5ae00893-b787-44ea-a6e5-f81cf52ba991(Tempcsv), processing=null)
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
        at java.base/java.util.Objects.checkIndex(Objects.java:372)
        at java.base/java.util.ArrayList.get(ArrayList.java:459)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.login(FreeIpaConnector.java:205)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.callRequest(FreeIpaConnector.java:411)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.executeQuery(FreeIpaConnector.java:486)
        at io.artin.idm.connector.freeipa.FreeIpaConnector.executeQuery(FreeIpaConnector.java:84)



Markus Calmius
Proton AG


------- Original Message -------
On Wednesday, October 4th, 2023 at 12:00, midpoint-request at lists.evolveum.com <midpoint-request at lists.evolveum.com> wrote:


> Send midPoint mailing list submissions to
> midpoint at lists.evolveum.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.evolveum.com/mailman/listinfo/midpoint
> or, via email, send a message with subject or body 'help' to
> midpoint-request at lists.evolveum.com
> 
> You can reach the person managing the list at
> midpoint-owner at lists.evolveum.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of midPoint digest..."
> 
> 
> Today's Topics:
> 
> 1. Re: Error importing: Index 0 out of bounds for length 0
> (Pavol Mederly)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 3 Oct 2023 13:37:54 +0200
> From: Pavol Mederly mederly at evolveum.com
> 
> To: midpoint at lists.evolveum.com
> Subject: Re: [midPoint] Error importing: Index 0 out of bounds for
> length 0
> Message-ID: e6c4107b-95b1-1f0b-ca13-99ae146db998 at evolveum.com
> 
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
> 
> Hi Markus,
> 
> this is either a deficiency in midPoint (because it should give you more
> meaningful message than "IndexOutOfBoundsException"), or an issue in
> your custom code.
> 
> Out of curiosity, could you post a full stack trace here?
> 
> Best regards,
> 
> --
> Pavol Mederly
> Software developer
> evolveum.com
> 
> On 29/09/2023 17:34, Markus Calmius via midPoint wrote:
> 
> > Hi,
> > 
> > I've been testing a lot and in that testing I've sometimes removed
> > information/shadow objects. Which is a possible cause, but:
> > how do I solve a:
> > 
> > SYNCHRONIZATION: Error in synchronization on
> > resource:5ae00893-b787-44ea-a6e5-f81cf52ba991(tempcsv) for
> > situation LINKED: IndexOutOfBoundsException: Index 0 out of bounds
> > for length 0.
> > 
> > I just need a good pointer where to start.
> > This is a test environment so all suggestions are OK, I can easily
> > wipe/re-import everything (although, if there is an easier way that
> > would be better)
> > 
> > Thanks in Advance
> > 
> > Markus Calmius
> > Proton AG
> > 
> > _______________________________________________
> > midPoint mailing list
> > midPoint at lists.evolveum.com
> > https://lists.evolveum.com/mailman/listinfo/midpoint
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.evolveum.com/pipermail/midpoint/attachments/20231003/bac6d5a9/attachment-0001.htm
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
> 
> 
> ------------------------------
> 
> End of midPoint Digest, Vol 138, Issue 3
> ****************************************


More information about the midPoint mailing list