Active Directory Collector fails with Unprocessed Continuation Reference(s)
2 years ago
Originally Published: 2016-04-20
Article Number
000064602
Applies To
Identity Management and Governance (IMG)
Via Lifecycle and Governance (VLG)
Issue
When attempting to run a collection or test collection against Active Directory, you encounter an error similar to the following stack trace:
 
04/19/2016 16:34:10.870 ERROR (ApplyChangesRegularThread-821) [com.aveksa.collector.accountdata.LdapAccountDataReader] Error occurred in fetching users, Root Cause : Unprocessed Continuation Reference(s)
04/19/2016 16:34:10.870 INFO  (ApplyChangesRegularThread-821) [com.aveksa.collector.accountdata.LdapAccountDataReader] Data Read Exception happened : 
com.aveksa.common.DataReadException: Error occurred in fetching users
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getUsers(LdapAccountDataReader.java:634)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.access$200(LdapAccountDataReader.java:46)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.setContextAndGetUsers(LdapAccountDataReader.java:1027)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.<init>(LdapAccountDataReader.java:945)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$TestAccountDataIterator.<init>(LdapAccountDataReader.java:1157)
	at com.aveksa.collector.accountdata.ADAccountDataReader$ADTestAccountDataIterator.<init>(ADAccountDataReader.java:1086)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:765)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:61)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getAccountIteratorForTestData(LdapAccountDataReader.java:201)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectData(AccountDataCollector.java:390)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collect(AccountDataCollector.java:302)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectTestData(AccountDataCollector.java:277)
	at com.aveksa.client.datacollector.framework.DataCollectorManager.collect(DataCollectorManager.java:533)
	at com.aveksa.client.component.collector.DefaultCollectorManager.actUpon(DefaultCollectorManager.java:203)
	at com.aveksa.client.component.collector.DefaultCollectorManager.handle(DefaultCollectorManager.java:102)
	at com.aveksa.client.component.event.DefaultEventManager.handle(DefaultEventManager.java:60)
	at com.aveksa.client.datacollector.framework.SimpleEventSource.notifyListeners(SimpleEventSource.java:67)
	at com.aveksa.client.component.communication.DefaultCommunicationManager.notifyEvent(DefaultCommunicationManager.java:377)
	at com.aveksa.client.component.communication.ChangeListHandler.applyChanges(ChangeListHandler.java:364)
	at com.aveksa.client.component.communication.ChangeListHandler.access$300(ChangeListHandler.java:58)
	at com.aveksa.client.component.communication.ChangeListHandler$ChangeApplyingRunnable.run(ChangeListHandler.java:275)
	at java.lang.Thread.run(Thread.java:701)
Caused by: javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name 'DC=nbme,DC=org'
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2811)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2785)
	at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:147)
	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:216)
	at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:189)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getUsers(LdapAccountDataReader.java:626)
	... 21 more
04/19/2016 16:34:10.872 ERROR (ApplyChangesRegularThread-821) [com.aveksa.client.datacollector.framework.DataCollectorManager] FAILED method=Collect CollectionMetaInfo[{ID=119, run_id=1461098050691, collector_id=5, test-run=true, collector_name=Active Directory - ADC, data_file=/home/oracle/jboss-4.2.2.GA/server/default/./deploy/aveksa.ear/aveksa.war/WEB-INF/LocalAgent/collected_data/119.data}] 
java.lang.RuntimeException
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.setContextAndGetUsers(LdapAccountDataReader.java:1039)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.<init>(LdapAccountDataReader.java:945)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$TestAccountDataIterator.<init>(LdapAccountDataReader.java:1157)
	at com.aveksa.collector.accountdata.ADAccountDataReader$ADTestAccountDataIterator.<init>(ADAccountDataReader.java:1086)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:765)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:61)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getAccountIteratorForTestData(LdapAccountDataReader.java:201)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectData(AccountDataCollector.java:390)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collect(AccountDataCollector.java:302)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectTestData(AccountDataCollector.java:277)
	at com.aveksa.client.datacollector.framework.DataCollectorManager.collect(DataCollectorManager.java:533)
	at com.aveksa.client.component.collector.DefaultCollectorManager.actUpon(DefaultCollectorManager.java:203)
	at com.aveksa.client.component.collector.DefaultCollectorManager.handle(DefaultCollectorManager.java:102)
	at com.aveksa.client.component.event.DefaultEventManager.handle(DefaultEventManager.java:60)
	at com.aveksa.client.datacollector.framework.SimpleEventSource.notifyListeners(SimpleEventSource.java:67)
	at com.aveksa.client.component.communication.DefaultCommunicationManager.notifyEvent(DefaultCommunicationManager.java:377)
	at com.aveksa.client.component.communication.ChangeListHandler.applyChanges(ChangeListHandler.java:364)
	at com.aveksa.client.component.communication.ChangeListHandler.access$300(ChangeListHandler.java:58)
	at com.aveksa.client.component.communication.ChangeListHandler$ChangeApplyingRunnable.run(ChangeListHandler.java:275)
	at java.lang.Thread.run(Thread.java:701)
04/19/2016 16:34:10.872 ERROR (ApplyChangesRegularThread-821) [com.aveksa.client.datacollector.framework.DataCollectorManager] DCM281: Collection Failed: CollectionFailedEvent[cmi = CollectionMetaInfo[{ID=119, run_id=1461098050691, collector_id=5, test-run=true, collector_name=Active Directory - ADC, data_file=/home/oracle/jboss-4.2.2.GA/server/default/./deploy/aveksa.ear/aveksa.war/WEB-INF/LocalAgent/collected_data/119.data}] message = null cause = java.lang.RuntimeException]
java.lang.RuntimeException
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.setContextAndGetUsers(LdapAccountDataReader.java:1039)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.<init>(LdapAccountDataReader.java:945)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$TestAccountDataIterator.<init>(LdapAccountDataReader.java:1157)
	at com.aveksa.collector.accountdata.ADAccountDataReader$ADTestAccountDataIterator.<init>(ADAccountDataReader.java:1086)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:765)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:61)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getAccountIteratorForTestData(LdapAccountDataReader.java:201)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectData(AccountDataCollector.java:390)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collect(AccountDataCollector.java:302)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectTestData(AccountDataCollector.java:277)
	at com.aveksa.client.datacollector.framework.DataCollectorManager.collect(DataCollectorManager.java:533)
	at com.aveksa.client.component.collector.DefaultCollectorManager.actUpon(DefaultCollectorManager.java:203)
	at com.aveksa.client.component.collector.DefaultCollectorManager.handle(DefaultCollectorManager.java:102)
	at com.aveksa.client.component.event.DefaultEventManager.handle(DefaultEventManager.java:60)
	at com.aveksa.client.datacollector.framework.SimpleEventSource.notifyListeners(SimpleEventSource.java:67)
	at com.aveksa.client.component.communication.DefaultCommunicationManager.notifyEvent(DefaultCommunicationManager.java:377)
	at com.aveksa.client.component.communication.ChangeListHandler.applyChanges(ChangeListHandler.java:364)
	at com.aveksa.client.component.communication.ChangeListHandler.access$300(ChangeListHandler.java:58)
	at com.aveksa.client.component.communication.ChangeListHandler$ChangeApplyingRunnable.run(ChangeListHandler.java:275)
	at java.lang.Thread.run(Thread.java:701)
04/19/2016 16:34:10.873 ERROR (ApplyChangesRegularThread-821) [com.aveksa.server.agent.message.ExceptionMessage] 
java.lang.RuntimeException
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.setContextAndGetUsers(LdapAccountDataReader.java:1039)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.<init>(LdapAccountDataReader.java:945)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$TestAccountDataIterator.<init>(LdapAccountDataReader.java:1157)
	at com.aveksa.collector.accountdata.ADAccountDataReader$ADTestAccountDataIterator.<init>(ADAccountDataReader.java:1086)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:765)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:61)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getAccountIteratorForTestData(LdapAccountDataReader.java:201)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectData(AccountDataCollector.java:390)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collect(AccountDataCollector.java:302)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectTestData(AccountDataCollector.java:277)
	at com.aveksa.client.datacollector.framework.DataCollectorManager.collect(DataCollectorManager.java:533)
	at com.aveksa.client.component.collector.DefaultCollectorManager.actUpon(DefaultCollectorManager.java:203)
	at com.aveksa.client.component.collector.DefaultCollectorManager.handle(DefaultCollectorManager.java:102)
	at com.aveksa.client.component.event.DefaultEventManager.handle(DefaultEventManager.java:60)
	at com.aveksa.client.datacollector.framework.SimpleEventSource.notifyListeners(SimpleEventSource.java:67)
	at com.aveksa.client.component.communication.DefaultCommunicationManager.notifyEvent(DefaultCommunicationManager.java:377)
	at com.aveksa.client.component.communication.ChangeListHandler.applyChanges(ChangeListHandler.java:364)
	at com.aveksa.client.component.communication.ChangeListHandler.access$300(ChangeListHandler.java:58)
	at com.aveksa.client.component.communication.ChangeListHandler$ChangeApplyingRunnable.run(ChangeListHandler.java:275)
	at java.lang.Thread.run(Thread.java:701)
04/19/2016 16:34:10.919 ERROR (JMS SessionPool Worker-29) [com.aveksa.server.utils.NodeMessageBroker] Exception while getting test data from collector
com.aveksa.server.runtime.ServerException: java.lang.RuntimeException Caused By

Stack
java.lang.RuntimeException
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.setContextAndGetUsers(LdapAccountDataReader.java:1039)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$AccountDataDirectoryIterator.<init>(LdapAccountDataReader.java:945)
	at com.aveksa.collector.accountdata.LdapAccountDataReader$TestAccountDataIterator.<init>(LdapAccountDataReader.java:1157)
	at com.aveksa.collector.accountdata.ADAccountDataReader$ADTestAccountDataIterator.<init>(ADAccountDataReader.java:1086)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:765)
	at com.aveksa.collector.accountdata.ADAccountDataReader.createTestAccountDataIterator(ADAccountDataReader.java:61)
	at com.aveksa.collector.accountdata.LdapAccountDataReader.getAccountIteratorForTestData(LdapAccountDataReader.java:201)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectData(AccountDataCollector.java:390)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collect(AccountDataCollector.java:302)
	at com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.collectTestData(AccountDataCollector.java:277)
	at com.aveksa.client.datacollector.framework.DataCollectorManager.collect(DataCollectorManager.java:533)
	at com.aveksa.client.component.collector.DefaultCollectorManager.actUpon(DefaultCollectorManager.java:203)
	at com.aveksa.client.component.collector.DefaultCollectorManager.handle(DefaultCollectorManager.java:102)
	at com.aveksa.client.component.event.DefaultEventManager.handle(DefaultEventManager.java:60)
	at com.aveksa.client.datacollector.framework.SimpleEventSource.notifyListeners(SimpleEventSource.java:67)
	at com.aveksa.client.component.communication.DefaultCommunicationManager.notifyEvent(DefaultCommunicationManager.java:377)
	at com.aveksa.client.component.communication.ChangeListHandler.applyChanges(ChangeListHandler.java:364)
	at com.aveksa.client.component.communication.ChangeListHandler.access$300(ChangeListHandler.java:58)
	at com.aveksa.client.component.communication.ChangeListHandler$ChangeApplyingRunnable.run(ChangeListHandler.java:275)
	at java.lang.Thread.run(Thread.java:701)

End Stack

	at com.aveksa.server.core.DataCollector$TestDataCollectionResult.getBinaryData(DataCollector.java:853)
	at com.aveksa.server.core.DataCollector.getTestData(DataCollector.java:654)
	at com.aveksa.server.core.DataCollector.getTestDataString(DataCollector.java:659)
	at com.aveksa.server.utils.SONDataRequestHandler.handleCollectorTest(SONDataRequestHandler.java:99)
	at com.aveksa.server.utils.SONDataRequestHandler.notifyMessage(SONDataRequestHandler.java:49)
	at com.aveksa.server.message.MessageSubscriberProvider.distributeMessage(MessageSubscriberProvider.java:78)
	at com.aveksa.server.message.SubscriberMDB.onMessage(SubscriberMDB.java:78)
	at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
	at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
	at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
	at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
	at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
	at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
	at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
	at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
	at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
	at org.jboss.ejb.Container.invoke(Container.java:960)
	at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
	at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
	at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
	at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
	at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
	at org.jboss.mq.SpySession.run(SpySession.java:323)
	at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
	at java.lang.Thread.run(Thread.java:701)

 
Cause
This can happen if you are searching against a Global Catalog (GC) but have specified either an incorrect Base DN or port number.
Resolution
There are two possible solutions to this issue.
  • Check your Base DN to make sure it is correct for the search scope you need to use.
  • Adjust your port to use 3268 for non-SSL connections or 3269 for SSL connections.