directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Temple (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Commented: (DIREVE-338) LdapInvalidAttributeIdentifierException When Processing LDIF on startup
Date Thu, 02 Feb 2006 11:30:05 GMT
    [ http://issues.apache.org/jira/browse/DIREVE-338?page=comments#action_12364948 ] 

Simon Temple commented on DIREVE-338:
-------------------------------------

Sorry I should have also stated that I'm creating a custom partition

and adding it to the configuration using cfg.setContextPartitionConfigurations() vefore creating
my InitialContext


 this.customRootPartitionName = "com"

 private Set addCustomPartition(  )
    {
        BasicAttributes attrs;
        Set indexedAttrs;
        BasicAttribute attr;
        Set pcfgs = new HashSet(  );
        MutableDirectoryPartitionConfiguration pcfg;
        pcfg = new MutableDirectoryPartitionConfiguration(  );

        pcfg.setName( this.customRootPartitionName );
        pcfg.setSuffix( "dc=" + this.customRootPartitionName );

        indexedAttrs = new HashSet(  );
        indexedAttrs.add( "ou" );
        indexedAttrs.add( "dc" );
        indexedAttrs.add( "objectClass" );
        pcfg.setIndexedAttributes( indexedAttrs );

        attrs = new BasicAttributes( true );

        attr = new BasicAttribute( "objectClass" );
        attr.add( "top" );
        attr.add( "domain" );
        attr.add( "extensibleObject" );
        attrs.put( attr );

        attr = new BasicAttribute( "dc" );
        attr.add( this.customRootPartitionName );
        attrs.put( attr );

        pcfg.setContextEntry( attrs );

        pcfgs.add( pcfg );

        return pcfgs;
    }


> LdapInvalidAttributeIdentifierException When Processing LDIF on startup
> -----------------------------------------------------------------------
>
>          Key: DIREVE-338
>          URL: http://issues.apache.org/jira/browse/DIREVE-338
>      Project: Directory Server
>         Type: Bug
>   Components: server main
>     Versions: 1.0-RC1
>  Environment: JBoss 3.2, JDK 1.4.2, trunk build 0.9.4-SNAPSHOT (30/1/06)
>     Reporter: Simon Temple
>     Assignee: Alex Karasulu
>  Attachments: rootcontext.ldif
>
> The LDIF file used to import ok with 0.9.3.
> The LDIF file imports ok if using JXplorer.
> I have attached the LDIF file.
> 10:41:07,640 DEBUG [DefaultDirectoryPartitionNexus](main) Check if DN 'ou=loadedldiffiles,ou=configuration,ou=system'
exists.
> 10:41:07,640 DEBUG [DnParser](main) Parsing DN 'ou=services,ou=configuration,ou=system'
> 10:41:07,656 DEBUG [DnParser](main) Parsing DN 'ou=loadedldiffiles,ou=configuration,ou=system'
> 10:41:07,656 DEBUG [DnParser](main) Parsing DN 'ou=interceptors,ou=configuration,ou=system'
> 10:41:07,656 DEBUG [DnParser](main) Parsing DN 'ou=loadedldiffiles,ou=configuration,ou=system'
> 10:41:07,656 DEBUG [DnParser](main) Parsing DN 'ou=partitions,ou=configuration,ou=system'
> 10:41:07,656 DEBUG [DnParser](main) Parsing DN 'ou=loadedldiffiles,ou=configuration,ou=system'
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [AuthenticationService](main) Lookup name = 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [DefaultDirectoryPartitionNexus](main) Check if DN 'ou=saaconsultants,dc=com'
exists.
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'dc=com'
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [AuthenticationService](main) Matching name = 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [DefaultDirectoryPartitionNexus](main) Check if DN 'ou=saaconsultants,dc=com'
exists.
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'dc=com'
> 10:41:07,765 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,765 DEBUG [DefaultDirectoryPartitionNexus](main) Check if DN 'dc=com' exists.
> 10:41:07,781 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,796 DEBUG [AuthenticationService](main) Adding the entry Attributes
>     Type : 'objectClass'
>         Val[0] : top 
>         Val[1] : organizationalUnit 
>     Type : 'ou'
>         Val[0] : saaconsultants 
>     Type : 'version'
>         Val[0] : 1 
>  for DN = 'ou=saaconsultants,dc=com'
> 10:41:07,796 DEBUG [DefaultDirectoryPartitionNexus](main) Check if DN 'ou=saaconsultants,dc=com'
exists.
> 10:41:07,796 DEBUG [DnParser](main) Parsing DN 'dc=com'
> 10:41:07,796 DEBUG [DnParser](main) Parsing DN 'ou=saaconsultants,dc=com'
> 10:41:07,796 DEBUG [DefaultDirectoryPartitionNexus](main) Check if DN 'dc=com' exists.
> 10:41:07,796 DEBUG [SchemaService](main) Filtering entry Attributes
>     Type : 'dc'
>         Val[0] : com 
>     Type : 'objectClass'
>         Val[0] : top 
>         Val[1] : domain 
>         Val[2] : extensibleObject 
> 10:41:07,812 DEBUG [SchemaService](main) Time to filter entry = 16ns
> 10:41:07,843 ERROR [LdifFileLoader](main) Failed to import LDIF into backing store.
> org.apache.ldap.common.exception.LdapInvalidAttributeIdentifierException
> 	at org.apache.ldap.server.schema.SchemaService.add(SchemaService.java:746)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$2.add(InterceptorChain.java:1101)
> 	at org.apache.ldap.server.exception.ExceptionService.add(ExceptionService.java:106)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$2.add(InterceptorChain.java:1101)
> 	at org.apache.ldap.server.interceptor.BaseInterceptor.add(BaseInterceptor.java:99)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$2.add(InterceptorChain.java:1101)
> 	at org.apache.ldap.server.authz.AuthorizationService.add(AuthorizationService.java:338)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$2.add(InterceptorChain.java:1101)
> 	at org.apache.ldap.server.referral.ReferralService.add(ReferralService.java:257)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$2.add(InterceptorChain.java:1101)
> 	at org.apache.ldap.server.authn.AuthenticationService.add(AuthenticationService.java:188)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$2.add(InterceptorChain.java:1101)
> 	at org.apache.ldap.server.normalization.NormalizationService.add(NormalizationService.java:87)
> 	at org.apache.ldap.server.interceptor.InterceptorChain.add(InterceptorChain.java:671)
> 	at org.apache.ldap.server.partition.DirectoryPartitionNexusProxy.add(DirectoryPartitionNexusProxy.java:303)
> 	at org.apache.ldap.server.partition.DirectoryPartitionNexusProxy.add(DirectoryPartitionNexusProxy.java:292)
> 	at org.apache.ldap.server.jndi.ServerDirContext.createSubcontext(ServerDirContext.java:352)
> 	at org.apache.protocol.common.store.LdifFileLoader.execute(LdifFileLoader.java:168)
> 	at org.apache.ldap.server.jndi.ServerContextFactory.loadLdifs(ServerContextFactory.java:315)
> 	at org.apache.ldap.server.jndi.ServerContextFactory.afterStartup(ServerContextFactory.java:149)
> 	at org.apache.ldap.server.DefaultDirectoryService.startup(DefaultDirectoryService.java:229)
> 	at org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:102)
> 	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
> 	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
> 	at javax.naming.InitialContext.init(InitialContext.java:219)
> 	at javax.naming.InitialContext.<init>(InitialContext.java:195)
> 	at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
> 	at org.apache.ldap.server.jmx.DirectoryService.startService(DirectoryService.java:211)
> 	at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message