directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DIR-319) Replication NullPointer at SyncReplRequestHandler.java:648
Date Thu, 06 Jun 2019 08:06:00 GMT

     [ https://issues.apache.org/jira/browse/DIR-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny closed DIR-319.
---------------------------------

> Replication NullPointer at SyncReplRequestHandler.java:648
> ----------------------------------------------------------
>
>                 Key: DIR-319
>                 URL: https://issues.apache.org/jira/browse/DIR-319
>             Project: Directory
>          Issue Type: Bug
>         Environment: apacheds-all-2.0.0-M19.jar:2.0.0-M19
>            Reporter: Emanuele Forlano
>            Assignee: Emmanuel Lecharny
>            Priority: Major
>
> Hi 
> we have some problems with SyncRepl. Following Apache documentation we set up two instances
of embedded ApacheDs M19. 
> In the provider we have:
> val replRequestHandler = new SyncReplRequestHandler()
> server.setReplicationReqHandler(replRequestHandler)
> in the consumer: 
> 		val replicationConf = new SyncReplConfiguration
> 		replicationConf.setRemoteHost("localhost")
> 		replicationConf.setRemotePort(1389)
> 		replicationConf.setUseTls(false)
> 		replicationConf.setReplUserDn("uid=admin,ou=system")
> 		replicationConf.setReplUserPassword("secret".getBytes)
> 		replicationConf.setBaseDn(“o=myDn”) //replaced
> 		replicationConf.setFilter("(objectClass=*)")
> 		replicationConf.setRefreshInterval(60000)
> 		replicationConf.setRefreshNPersist(true)
> 		replicationConf.setAliasDerefMode(AliasDerefMode.NEVER_DEREF_ALIASES)
> 		val consumer: ReplicationConsumer = new ReplicationConsumerImpl()
> 		consumer.setConfig(replicationConf)
> 		server.setReplConsumers(ApacheDSUtils.buildConsumers(consumer))
> When we run both the server we get this error: 
> org.apache.directory.api.ldap.model.exception.LdapException: java.lang.RuntimeException:
java.lang.NullPointerException
> 	at org.apache.directory.server.core.shared.DefaultCoreSession.search(DefaultCoreSession.java:1157)
~[apacheds-all-2.0.0-M19.jar:2.0.0-M19]
> 	at org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.doSimpleSearch(SyncReplRequestHandler.java:648)
~[apacheds-all-2.0.0-M19.jar:2.0.0-M19]
> 	at org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.doInitialRefresh(SyncReplRequestHandler.java:562)
~[apacheds-all-2.0.0-M19.jar:2.0.0-M19]
> 	at org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.handleSyncRequest(SyncReplRequestHandler.java:311)
~[apacheds-all-2.0.0-M19.jar:2.0.0-M19]
> 	at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleReplication(SearchRequestHandler.java:240)
[apacheds-all-2.0.0-M19.jar:2.0.0-M19]
> Note: when I use a more specific filter for example: cn=someCn it works fine. 
> Any idea?
> Thanks



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Mime
View raw message