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]
Worteks | https://www.worteks.com
_______________________________________________________________
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