directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: New continuum instance for directory
Date Tue, 17 Aug 2010 06:17:32 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Could you test the following patch [1]? It's just a blind guess but
> sets explicit encoding when reading and writing the schema files.

Thanks Stefan

Patch doesn't resolves the problem.

I could elaborate a bit more. Following change will throw a more
specific error:

In fact the error also occurs for other test classes but doesn't forces
a failure.


Index:
ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
===================================================================
- ---
ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
(revision 985989)
+++
ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
(working copy)
@@ -226,6 +226,9 @@
                 String msg = I18n.err( I18n.ERR_04303, superiorOid,
getName() );

                 Throwable error = new LdapProtocolErrorException( msg );
+
+                e.printStackTrace();
+
                 errors.add( error );
                 LOG.info( msg );




Running
org.apache.directory.shared.ldap.schema.loader.ldif.SchemaManagerLoadTest
org.apache.directory.shared.ldap.exception.LdapNoSuchAttributeException:
ERR_04269 ATTRIBUTE_TYPE for OID name does not exist!
        at
org.apache.directory.shared.ldap.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:316)
        at
org.apache.directory.shared.ldap.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:46)
        at
org.apache.directory.shared.ldap.schema.AttributeType.buildSuperior(AttributeType.java:221)
        at
org.apache.directory.shared.ldap.schema.AttributeType.addToRegistries(AttributeType.java:622)
        at
org.apache.directory.shared.ldap.schema.registries.Registries.buildReference(Registries.java:727)
        at
org.apache.directory.shared.ldap.schema.registries.Registries.add(Registries.java:1358)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addSchemaObject(DefaultSchemaManager.java:896)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addAttributeTypes(DefaultSchemaManager.java:731)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addSchemaObjects(DefaultSchemaManager.java:236)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.load(DefaultSchemaManager.java:682)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.load(DefaultSchemaManager.java:546)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.load(DefaultSchemaManager.java:623)
        at
org.apache.directory.shared.ldap.schema.loader.ldif.SchemaManagerLoadTest.testLoadCoreInetOrgPersonAndNis(SchemaManagerLoadTest.java:219)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:21)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:194)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:53)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:185)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:29)
        at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:117)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++


 Running
org.apache.directory.shared.ldap.subtree.SubtreeSpecificationParserTest
org.apache.directory.shared.ldap.exception.LdapNoSuchAttributeException:
ERR_04269 ATTRIBUTE_TYPE for OID postalAddress does not exist!
        at
org.apache.directory.shared.ldap.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:316)
        at
org.apache.directory.shared.ldap.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:46)
        at
org.apache.directory.shared.ldap.schema.AttributeType.buildSuperior(AttributeType.java:221)
        at
org.apache.directory.shared.ldap.schema.AttributeType.addToRegistries(AttributeType.java:622)
        at
org.apache.directory.shared.ldap.schema.registries.Registries.buildReference(Registries.java:727)
        at
org.apache.directory.shared.ldap.schema.registries.Registries.add(Registries.java:1358)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addSchemaObject(DefaultSchemaManager.java:896)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addAttributeTypes(DefaultSchemaManager.java:731)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.addSchemaObjects(DefaultSchemaManager.java:236)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.load(DefaultSchemaManager.java:682)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadDepsFirst(DefaultSchemaManager.java:1137)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadDepsFirst(DefaultSchemaManager.java:1131)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadDepsFirst(DefaultSchemaManager.java:1131)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadWithDeps(DefaultSchemaManager.java:1035)
        at
org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.loadAllEnabled(DefaultSchemaManager.java:926)
        at
org.apache.directory.shared.ldap.subtree.SubtreeSpecificationParserTest.init(SubtreeSpecificationParserTest.java:131)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:117)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.598 sec


>
> Kind Regards,
> Stefan
>
>
> [1] http://pastebin.com/V254LbR7
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxqKXwACgkQ2lZVCB08qHE8jgCghu84dTyVBkIBV0im1Eh4Pf4J
AfAAn1+9VxkWubnDdM85WL7t2LR6S1Il
=7udO
-----END PGP SIGNATURE-----

Mime
View raw message