Issue #443 has been updated by Raphaël Ouazana.

Assigned to changed from Clément OUDOT to Raphaël Ouazana

In fact I can reproduce this issue. Summary:
- add works fine
- modify doesn't work
- delete works now with #484 fixed
----------------------------------------
Bug #443: PostGreSQL sample does not work
http://tools.lsc-project.org/issues/443

Author: Clément OUDOT
Status: Assigned
Priority: Normal
Assigned to: Raphaël Ouazana
Category: Sample
Target version: 2.0.1
Problem in version: 2.0


I try to lancun the postgresql sample.

The PG database is initiated (see #442), and the lsc.xml is corrected to use 
the new clean request nam for ldapSourceService (see r1676).

I started the embedded OpenDJ server, and populate it trough the hsqldb sample. 
I try then the launch the postgresql sample that should synchronize entries 
from OpenDJ to postgresql.

First, the user branch DN is wrong in the configuration, I replaced it by:
<pre>
<baseDn>ou=Sample,dc=lsc-project,dc=org</baseDn>
</pre>

Then, when launching the sample:
<pre>
clement@ader:~/Programmes/lsc-2.0-SNAPSHOT$ bin/lsc -f sample/postgresql/etc/ 
-s all
avr. 18 15:41:52 - DEBUG - Loading XML configuration from: 
/home/clement/Programmes/lsc-2.0-SNAPSHOT/sample/postgresql/etc/lsc.xml
avr. 18 15:41:53 - INFO  - Logging configuration successfully loaded from 
/home/clement/Programmes/lsc-2.0-SNAPSHOT/sample/postgresql/etc/logback.xml 
avr. 18 15:41:53 - INFO  - LSC configuration successfully loaded from 
/home/clement/Programmes/lsc-2.0-SNAPSHOT/sample/postgresql/etc/
avr. 18 15:41:53 - DEBUG - Reading sql-map-config.xml from 
file:/home/clement/Programmes/lsc-2.0-SNAPSHOT/sample/postgresql/etc/sql-map-config.xml
avr. 18 15:41:53 - INFO  - Connecting to LDAP server 
ldap://127.0.0.1:33389/dc=lsc-project,dc=org as cn=Directory Manager
avr. 18 15:41:53 - INFO  - Starting sync for People
avr. 18 15:41:53 - INFO  - Starting sync for People
avr. 18 15:41:53 - DEBUG - Synchronizing People for {[email protected]}
avr. 18 15:41:53 - DEBUG - Synchronizing People for 
{[email protected]}
avr. 18 15:41:53 - DEBUG - Synchronizing People for {[email protected]}
avr. 18 15:41:53 - DEBUG - Synchronizing People for 
{[email protected]}
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: This 
method should never be called  - this is a software BUG !
avr. 18 15:41:53 - DEBUG - Synchronizing People for 
{[email protected]}
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: This 
method should never be called  - this is a software BUG !
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: This 
method should never be called  - this is a software BUG !
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - DEBUG - Synchronizing People for {[email protected]}
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - DEBUG - Synchronizing People for {[email protected]}
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: This 
method should never be called  - this is a software BUG !
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: 
This method should never be called  - this is a software BUG !
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - ERROR - Error while synchronizing ID 
{[email protected]}: java.lang.UnsupportedOperationException: This 
method should never be called  - this is a software BUG !
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - DEBUG - java.lang.UnsupportedOperationException: This method 
should never be called  - this is a software BUG !
java.lang.UnsupportedOperationException: This method should never be called  - 
this is a software BUG !
        at 
org.lsc.service.SimpleJdbcDstService.getRequestNameForClean(SimpleJdbcDstService.java:134)
 ~[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
org.lsc.service.AbstractJdbcService.getBean(AbstractJdbcService.java:196) 
~[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:668) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:633) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:604) 
[lsc-core-2.0-SNAPSHOT.jar:na]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [na:1.6.0_26]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
avr. 18 15:41:53 - ERROR - All entries: 7, to modify entries: 0, modified 
entries: 0, errors: 7
</pre>

Do you know why getRequestNameForClean is called?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to