Dear Sir :
I have try to use Event-based LDAP source service to sync LDAP -> DB. It works fine when I use OpenDJ as source, but when I use Novell eDir as source (The document include this serverType), it appears error : 五月 22 11:05:13 - DEBUG - no more byte to decode in the stream 五月 22 11:05:13 - DEBUG - TLV Tree : TLV0xA0(0) 五月 22 11:05:13 - DEBUG - Transition from state <ATTRIBUTE_VALUE_SR_STATE> to state <CONTROLS_STATE>, tag <0xA0>, action : Initialize a control 五月 22 11:05:13 - ERROR - The length of controls must not be null 五月 22 11:05:13 - WARN - org.apache.directory.api.ldap.codec.api.ResponseCarryingException: The length of controls must not be null (Hexdump: 30 54 02 01 02 64 4D 04 38 63 6E 3D 4E 45 4F 4F 49 49 55 2C 6F 75 3D 45 38 34 38 34 30 34 2C 6F 75 3D 45 38 34 38 34 30 30 2C 6F 75 3D 45 38 34 2C 6F 75 3D 45 30 31 52 4F 4F 54 2C 6F 3D 4D 4F 46 30 11 30 0F 04 02 63 6E 31 09 04 07 4E 45 4F 4F 49 49 55 A0 00 00 00 00 00 00 00 ...... ) org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.directory.api.ldap.codec.api.ResponseCarryingException: The length of controls must not be null (Hexdump: 30 54 02 01 02 64 4D 04 38 63 6E 3D 4E 45 4F 4F 49 49 55 2C 6F 75 3D 45 38 34 38 34 30 34 2C 6F 75 3D 45 38 34 38 34 30 30 2C 6F 75 3D 45 38 34 2C 6F 75 3D 45 30 31 52 4F 4F 54 2C 6F 3D 4D 4F 46 30 11 30 0F 04 02 63 6E 31 09 04 07 4E 45 4F 4F 49 49 55 A0 00 00 00 00 00 00 00 00 00 00 ....) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:242) ~[mina-core-2.0.7.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) [mina-core-2.0.7.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47) [mina-core-2.0.7.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765) [mina-core-2.0.7.jar:na] at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109) [mina-core-2.0.7.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417) [mina-core-2.0.7.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410) [mina-core-2.0.7.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710) [mina-core-2.0.7.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664) [mina-core-2.0.7.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653) [mina-core-2.0.7.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) [mina-core-2.0.7.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124) [mina-core-2.0.7.jar:na] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.7.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181] Caused by: org.apache.directory.api.ldap.codec.api.ResponseCarryingException: The length of controls must not be null at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:177) ~[api-all-1.0.0-M22.jar:1.0.0-M22] at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:94) ~[api-all-1.0.0-M22.jar:1.0.0-M22] at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:232) ~[mina-core-2.0.7.jar:na] ... 15 common frames omitted 五月 22 11:05:13 - DEBUG - received a NoD, closing everything 五月 22 11:05:13 - DEBUG - closing SearchFuture[msgId : 2, size : 0, Canceled :false] I found that DER code end with A0 00, It won't appear if use OpenDJ, What can I do to fix this problem ? modify the eDir setting or something else ? Thanks. My lsc.xml tasks tag as blow : <tasks> <task> <name>People</name> <bean>org.lsc.beans.SimpleBean</bean> <asyncLdapSourceService> <name>ldap-source-service</name> <connection reference="ldap" /> <baseDn>ou=E848404,ou=E848400,ou=E84,ou=E01ROOT,o=MOF</baseDn> <pivotAttributes> <string>cn</string> </pivotAttributes> <fetchedAttributes> <string>ou</string> <string>cn</string> <string>sn</string> <string>taxDepartment</string> <string>employeeStatus</string> <string>userPassword</string> <string>objectClass</string> <string>uid</string> <string>mail</string> </fetchedAttributes> <getAllFilter>(&(objectClass=inetorgperson)(cn=*))</getAllFilter> <getOneFilter>(&(objectClass=inetorgperson)(cn={cn}))</getOneFilter> <cleanFilter>(&(objectClass=inetorgperson)(cn={cn}))</cleanFilter> <synchronizingAllWhenStarting>true</synchronizingAllWhenStarting> <serverType>NovellEDirectory</serverType> </asyncLdapSourceService> <databaseDestinationService> <name>db-src-service</name> <connection reference="jdbc" /> <requestNameForList>getUserList</requestNameForList> <requestNameForObject>getUser</requestNameForObject> <requestsNameForInsert><string>insertUser</string></requestsNameForInsert> <requestsNameForUpdate><string>updateUser</string></requestsNameForUpdate> <requestsNameForDelete><string>deleteUser</string></requestsNameForDelete> </databaseDestinationService> <propertiesBasedSyncOptions> <mainIdentifier>srcBean.getMainIdentifier()</mainIdentifier> <defaultDelimiter>;</defaultDelimiter> <defaultPolicy>FORCE</defaultPolicy> </propertiesBasedSyncOptions> </task> </tasks> Please be advised that this email message (including any attachments) contains confidential information and may be legally privileged. If you are not the intended recipient, please destroy this message and all attachments from your system and do not further collect, process, or use them. Chunghwa Telecom and all its subsidiaries and associated companies shall not be liable for the improper or incomplete transmission of the information contained in this email nor for any delay in its receipt or damage to your system. If you are the intended recipient, please protect the confidential and/or personal information contained in this email with due care. Any unauthorized use, disclosure or distribution of this message in whole or in part is strictly prohibited. Also, please self-inspect attachments and hyperlinks contained in this email to ensure the information security and to protect personal information.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list lsc-users@lists.lsc-project.org https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users