Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23CA4866C for ; Mon, 5 Sep 2011 17:54:35 +0000 (UTC) Received: (qmail 38874 invoked by uid 500); 5 Sep 2011 17:54:35 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 38828 invoked by uid 500); 5 Sep 2011 17:54:34 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 38821 invoked by uid 99); 5 Sep 2011 17:54:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 17:54:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 17:54:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 80145595AB for ; Mon, 5 Sep 2011 17:54:11 +0000 (UTC) Date: Mon, 5 Sep 2011 17:54:11 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: <619086858.17655.1315245251521.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2043004093.56937.1313957667232.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DIRSERVER-1643) loadAllEnable throws ERR_04131 on tomcat 6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRSERVER-1643: ----------------------------------------- Fix Version/s: 2.0.0-M3 > loadAllEnable throws ERR_04131 on tomcat 6 > ------------------------------------------ > > Key: DIRSERVER-1643 > URL: https://issues.apache.org/jira/browse/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 > Fix For: 2.0.0-M3 > > > After creating a schema ldif extractor and and schema manager the method "loadAllEnabled()" of the schema manager throws the following exception: > org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException: 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("java.io.tmpdir"), "server-work"))); > 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); > extractor.extractOrCopy(true); > SchemaLoader loader = new LdifSchemaLoader(schemaRepository); > DefaultSchemaManager schemaManager = new DefaultSchemaManager(loader); > service.setSchemaManager(schemaManager); > // 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 > schemaManager.loadAllEnabled(); > // Init the LdifPartition > LdifPartition ldifPartition = new LdifPartition(schemaManager); > ldifPartition.setPartitionPath(schemaRepository.toURI()); > SchemaPartition schemaPartition = new SchemaPartition(schemaManager); > schemaPartition.setWrappedPartition(ldifPartition); > schemaPartition.setSchemaManager(schemaManager); > service.setSchemaPartition(schemaPartition); -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira