You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org> on 2010/06/01 16:38:41 UTC

[jira] Resolved: (DIRSERVER-1456) build error: JUnit test failure on SchemaLdifExtractorTest

     [ https://issues.apache.org/jira/browse/DIRSERVER-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot resolved DIRSERVER-1456.
-----------------------------------------------

      Assignee: Pierre-Arnaud Marcelot
    Resolution: Cannot Reproduce

I was not able to reproduce the bug on the current trunk.

Here's the maven output:
Z:\Development\Apache\ApacheDS\shared\ldap-schema>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Directory Shared LDAP Schema
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting Z:\Development\Apache\ApacheDS\shared\ldap-schema\target
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1170 resources
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 4 source files to Z:\Development\Apache\ApacheDS\shared\ldap-sc
hema\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 1 source file to Z:\Development\Apache\ApacheDS\shared\ldap-sch
ema\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: Z:\Development\Apache\ApacheDS\shared\ldap-sch
ema\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtract
orTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.844 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: Z:\Development\Apache\ApacheDS\shared\ldap-schema\target\sh
ared-ldap-schema-0.9.20-SNAPSHOT.jar
[INFO] [tools:verify-legal-files {execution: verify-legal-files}]
[INFO] Checking legal files in: shared-ldap-schema-0.9.20-SNAPSHOT.jar
[INFO] [install:install {execution: default-install}]
[INFO] Installing Z:\Development\Apache\ApacheDS\shared\ldap-schema\target\share
d-ldap-schema-0.9.20-SNAPSHOT.jar to C:\Documents and Settings\Administrateur\.m
2\repository\org\apache\directory\shared\shared-ldap-schema\0.9.20-SNAPSHOT\shar
ed-ldap-schema-0.9.20-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 45 seconds
[INFO] Finished at: Tue Jun 01 16:35:54 CEST 2010
[INFO] Final Memory: 30M/73M
[INFO] ------------------------------------------------------------------------

> build error: JUnit test failure on SchemaLdifExtractorTest
> ----------------------------------------------------------
>
>                 Key: DIRSERVER-1456
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1456
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: schema
>    Affects Versions: 1.5.5
>         Environment: WXP Pro SP2 Sun JDK 1.6.0_05
>            Reporter: Francis ANDRE
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 2.0.0-RC1
>
>         Attachments: org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractorTest.txt, TEST-org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractorTest.xml
>
>
> Hi
> On Windows, the SchemaLdifExtractorTest does not seem to like working space directory that starts with the Z letter instead of the C letter. See the test.log and the following report.
> -------------------------------------------------------------------------------
> Test set: org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractorTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.156 sec <<< FAILURE!
> testExtract(org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractorTest)  Time elapsed: 0.046 sec  <<< ERROR!
> java.lang.Error: java.io.FileNotFoundException: Z (Le fichier spécifié est introuvable)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResourcesFromJarFile(ResourceMap.java:93)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResources(ResourceMap.java:74)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResources(ResourceMap.java:58)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:140)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor.extractOrCopy(DefaultSchemaLdifExtractor.java:166)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractorTest.testExtract(SchemaLdifExtractorTest.java:74)
> 	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:20)
> 	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:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	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:184)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> 	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:62)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> 	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:345)
> 	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> Caused by: java.io.FileNotFoundException: Z (Le fichier spécifié est introuvable)
> 	at java.util.zip.ZipFile.open(Native Method)
> 	at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> 	at java.util.zip.ZipFile.<init>(ZipFile.java:131)
> 	at org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.getResourcesFromJarFile(ResourceMap.java:85)
> 	... 33 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.