james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norman Maurer (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JAMES-1204) org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository throws IllegalArgumentException if no "restriction" was configured
Date Wed, 16 Mar 2011 12:05:29 GMT
org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository throws IllegalArgumentException if no
"restriction" was configured
-------------------------------------------------------------------------------------------------------------------------

                 Key: JAMES-1204
                 URL: https://issues.apache.org/jira/browse/JAMES-1204
             Project: JAMES Server
          Issue Type: Bug
          Components: UsersStore & UsersRepository
    Affects Versions: 3.0-M1
            Reporter: Norman Maurer
            Assignee: Norman Maurer
             Fix For: 3.0-M3


If you use the following configuration you will see a IllegalArgumentException:

<usersrepository>
    <!-- Read-Only LDAP based UsersRepository -->
    <repository name="LocalUsers" class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository"
ldapHost="ldap://obm3.kvm.rla:389" 
        principal="" credentials="" userBase="dc=local" userIdAttribute="mailBox"/>;
</usersrepository>

It will look like:
jvm 1    | Caused by: java.lang.IllegalArgumentException: Passed in key must select exactly
one node: restriction
jvm 1    | 	at org.apache.commons.configuration.HierarchicalConfiguration.configurationAt(HierarchicalConfiguration.java:576)
jvm 1    | 	at org.apache.commons.configuration.HierarchicalConfiguration.configurationAt(HierarchicalConfiguration.java:596)
jvm 1    | 	at org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository.configure(ReadOnlyUsersLDAPRepository.java:236)
jvm 1    | 	at org.apache.james.container.spring.SpringInstanceFactory.newInstance(SpringInstanceFactory.java:67)
jvm 1    | 	at org.apache.james.user.lib.JamesUsersStore.init(JamesUsersStore.java:86)
jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1    | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1    | 	at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1    | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
jvm 1    | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
jvm 1    | 	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
jvm 1    | 	... 84 more


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message