directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon E. Silva Lauinger (JIRA)" <>
Subject [jira] [Created] (DIRSERVER-1643) loadAllEnable throws ERR_04131 on tomcat 6
Date Sun, 21 Aug 2011 20:14:27 GMT
loadAllEnable throws ERR_04131 on tomcat 6

                 Key: DIRSERVER-1643
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0.0-M2
         Environment: Tomcat 6 Servlet
            Reporter: Simon E. Silva Lauinger

After creating a schema ldif extractor and and schema manager the method "loadAllEnabled()"
of the schema manager throws the following exception: ERR_04131 The
value is expected to be a String

The exception only appears when using a servlet container like tomcat 6. The same code works
fine on unit tests.

Here the code:

DefaultDirectoryService service = new DefaultDirectoryService();
service.setInstanceLayout(new InstanceLayout(new File(System.getProperty(""),

File instanceDirectory = service.getInstanceLayout().getInstanceDirectory();
File schemaRepository = new File(instanceDirectory, "schema");

// Extract the schema on disk (a brand new one) and load the registries
SchemaLdifExtractor extractor = new DefaultSchemaLdifExtractor(instanceDirectory);

SchemaLoader loader = new LdifSchemaLoader(schemaRepository);
DefaultSchemaManager schemaManager = new DefaultSchemaManager(loader);

// We have to load the schema now, otherwise we won't be able
// to initialize the Partitions, as we won't be able to parse 
// and normalize their suffix DN

// Init the LdifPartition
LdifPartition ldifPartition = new LdifPartition(schemaManager);

SchemaPartition schemaPartition = new SchemaPartition(schemaManager);

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message