Hi,
The suggestion to execute lsc with one thread (-t 1) fixed the issue. Thanks.
From: lsc-users <[email protected]> On Behalf Of Clément
OUDOT
Sent: vendredi 5 octobre 2018 15:05
To: [email protected]
Subject: Re: [lsc-users] Error on policy MERGE
Le 05/10/2018 à 14:43, ERIC BRYS a écrit :
Hello,
I setup a Task to synchronize an LDAP source to a Postgres DB destination.
<task> <!-- people to DB -->
<name>People_to_DB</name>
<bean>org.lsc.beans.SimpleBean</bean>
<ldapSourceService>
<name>People_PROD_LDAP_for_DB</name>
<connection reference="source_PROD_LDAP" />
<baseDn>ou=People,dc=exemple,dc=com</baseDn>
<pivotAttributes>
<string>entryDN</string>
</pivotAttributes>
<fetchedAttributes>
…..
</fetchedAttributes>
<!-- <getAllFilter>(objectClass=*)</getAllFilter> -->
<!-- <getAllFilter>(uid=adupont)</getAllFilter> -->
<getAllFilter>(|(uid=adupont)(uid=bdurant))</getAllFilter>
<getOneFilter>(entryDN={entryDN})</getOneFilter>
<cleanFilter>(entryDN={entryDN})</cleanFilter>
</ldapSourceService>
<databaseDestinationService>
<name>People_PROD_DB</name>
<connection reference="destination_PROD_DB" />
<requestNameForList>getPeopleList</requestNameForList>
<requestNameForObject>getPeople</requestNameForObject>
<requestsNameForInsert><string>insertPeople</string></requestsNameForInsert>
<requestsNameForUpdate><string>updatePeople</string></requestsNameForUpdate>
<requestsNameForDelete><string>deletePeople</string></requestsNameForDelete>
</databaseDestinationService>
<propertiesBasedSyncOptions>
<mainIdentifier>"" + srcBean.getDatasetFirstValueById("entryDN") +
""</mainIdentifier>
<defaultDelimiter>|</defaultDelimiter>
<defaultPolicy>FORCE</defaultPolicy>
<conditions>
<changeId>false</changeId>
</conditions>
</propertiesBasedSyncOptions>
</task>
When executing the task with the getAllFilter >(|(uid=adupont)(uid=bdurant)),
to truncated ‘people’ table, sometime I get a successful result, some time I
get the following error messages :
Error while synchronizing ID {…}: java.lang.NullPointerException
Error while synchronizing ID {…}: java.lang.NullPointerException
Although no code or config have been changed !
By executing the task with a getAllFilter set to (uid=adupont), results are
always OK
By executing the task with a getAllFilter set to (objectClass=*), I always get
the java.lang.NullPointerException error message for each of the retrieved
source entries.
Any suggestions are welcome.
Hello,
try to launch lsc command with -t 1 (one thread) to see if it solves the issue.
--
Clément Oudot | Identity Solutions Manager
[email protected]<mailto:[email protected]>
Worteks | https://www.worteks.com
This message is not intended for persons who are citizens of, domiciled or
resident in, or entities registered in a country or jurisdiction in which its
distribution, publication, provision or use would violate current laws and
regulations. The content of this message is confidential and may be read and/or
used only by the recipient of this message. For information about personal data
protection, please refer to the Pictet Group’s Privacy Notice available at
www.group.pictet/privacynotice. If you have received this e-mail message in
error, please destroy it and delete it from your computer. The Pictet Group may
not be held liable for the use, transmission or treatment of the content of
this message. The recipient of this message remains solely liable for any form
of reproduction, copying, disclosure, modification and/or publication of the
content. No liability whatsoever will be incurred by the Pictet Group. The
recipient of this message agrees to comply with the applicable laws and
regulations in the jurisdictions where they use the information contained
herein.<br>_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users