[
http://jira.nuxeo.org/browse/NXP-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43709#action_43709
]
Anahide Tchertchian commented on NXP-2591:
------------------------------------------
not sure it's the same problem: i'm having the same error on a project, and
just tested that it is a problem since 30/09/2008 (i don't have the problem on
the nuxeo version tagged that day).
2008-10-08 20:20:01,826 INFO
[com.nuxeo.projects.example.platform.document.MailboxActionsBean] Starting
missing mailboxes creation
2008-10-08 20:20:01,827 DEBUG [org.nuxeo.ecm.directory.ldap.LDAPSession]
LDAPSession.query(...): LDAP search base='ou=People,dc=example,dc=fr'
filter='(&(&(objectClass=examplePerson)(exampleSpecificId=*)))' args=''
scope='1' [LDAPSession '-2472516172981993338' for directory userDirectory]
2008-10-08 20:20:02,337 ERROR
[javax.enterprise.resource.webcontainer.jsf.application]
com.nuxeo.projects.example.common.DistributionException: Couldn't open user
directory
...
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
org.nuxeo.ecm.directory.SizeLimitExceededException. message:
org.nuxeo.ecm.core.api.WrappedException: Exception:
javax.naming.SizeLimitExceededException. message: [LDAP: error code 4 -
Sizelimit Exceeded]
at org.nuxeo.ecm.directory.ldap.LDAPSession.query(LDAPSession.java:498)
at org.nuxeo.ecm.directory.ldap.LDAPSession.query(LDAPSession.java:513)
at org.nuxeo.ecm.directory.ldap.LDAPSession.query(LDAPSession.java:525)
at
org.nuxeo.ecm.directory.ldap.LDAPSession.getProjection(LDAPSession.java:555)
at
org.nuxeo.ecm.directory.ldap.LDAPSession.getProjection(LDAPSession.java:547)
at
com.nuxeo.projects.example.distribution.service.DistributionServiceImpl.createMissingPersonalMailboxes(DistributionServiceImpl.java:1703)
... 123 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
javax.naming.SizeLimitExceededException. message: [LDAP: error code 4 -
Sizelimit Exceeded]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3037)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
at
com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:129)
at
com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumeration.java:198)
at
com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration.java:171)
at
org.nuxeo.ecm.directory.ldap.LDAPSession.ldapResultsToDocumentModels(LDAPSession.java:706)
at org.nuxeo.ecm.directory.ldap.LDAPSession.query(LDAPSession.java:489)
... 128 more
excerpt from my code around l. 1703:
Directory dir = getUserDirectory();
Session session = null;
List<String> userIds;
Map<String, Object> filter = new HashMap<String, Object>();
try {
session = dir.getSession();
userIds = session.getProjection(filter, dir.getIdField());
} catch (DirectoryException e) {
throw new DistributionException("Couldn't open user directory", e);
} catch (ClientException e) {
throw new DistributionException("Couldn't fetch all user ids", e);
} finally {
closeSession(session);
}
It's actually failing on the getProjection call.
Excerpt from the logs using 20080930 version (working without a problem):
2008-10-08 19:53:02,635 INFO
[com.nuxeo.projects.example.platform.document.MailboxActionsBean] Starting
missing mailboxes creation
2008-10-08 19:53:02,636 DEBUG [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAP
search base=ou=People,dc=example,dc=fr
filter=(&(&(objectClass=examplePerson)(exampleSpecificId=*))) args= scope=1
2008-10-08 19:53:03,887 DEBUG [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAP
search returned 1816 results
2008-10-08 19:53:03,920 DEBUG [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAP
search base='ou=People,dc=example,dc=fr'
filter='(&(exampleSpecificId={0})(&(objectClass=examplePerson)(exampleSpecificId=*)))'
args='tony-danza' scope='1'
...
> LDAP size limit exceeded not caught
> -----------------------------------
>
> Key: NXP-2591
> URL: http://jira.nuxeo.org/browse/NXP-2591
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Directory
> Affects Versions: 5.1.4
> Reporter: Florent Guillaume
> Assignee: Florent Guillaume
> Fix For: 5.1.7
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> In some cases where there is a size limit maximum specified for LDAP queries,
> there is nevertheless a SizeLimitExceededException exception that is not
> treated correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets