Assembly failed and some tests too

please report bugs here

Assembly failed and some tests too

Postby soswow » Tue Jul 13, 2010 7:47 am

There is tests failed currently:
Code: Select all
Failed tests:
  testGetInputStreamForURIOfFtpProtocol(org.databene.commons.IOUtilTest)
  testRevert(org.databene.commons.converter.Long2DateConverterTest)
  testConvert(org.databene.commons.converter.Date2LongConverterTest)
  testRevert(org.databene.commons.converter.NumberParserTest)
  testConvert(org.databene.commons.converter.NumberFormatterTest)
  testDecimal(org.databene.commons.converter.ToStringConverterTest)


but even with
Code: Select all
-Dmaven.test.skip=true


Command
Code: Select all
mvn clean install assembly:assembly -Dmaven.test.skip=true


Gives:

Code: Select all
[INFO] [assembly:assembly {execution: default-cli}]
[INFO] Reading assembly descriptor: src/main/assembly/source-assembly.xml
[INFO] Reading assembly descriptor: src/main/assembly/dist-assembly.xml
[INFO] Reading assembly descriptor: src/main/assembly/backup-assembly.xml

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create assembly: Error creating assembly archive sources: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 56 seconds
[INFO] Finished at: Mon Jul 12 16:24:23 EEST 2010
[INFO] Final Memory: 22M/721M
[INFO] ------------------------------------------------------------------------
soswow
 
Posts: 10
Joined: Wed Jun 30, 2010 12:29 pm

Re: Assembly failed and some tests too

Postby soswow » Tue Jul 13, 2010 7:54 am

With -e parameter:

Code: Select all
ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create assembly: Error creating assembly archive sources: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create assembly: Error creating assembly archive sources: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
   at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
   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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error creating assembly archive sources: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
   at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:421)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
   ... 17 more
Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive sources: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
   at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:194)
   at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:370)
   ... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
   at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:427)
   at org.apache.maven.plugin.assembly.filter.ComponentsXmlArchiverFileFilter.finalizeArchiveCreation(ComponentsXmlArchiverFileFilter.java:166)
   at org.codehaus.plexus.archiver.AbstractArchiver.runArchiveFinalizers(AbstractArchiver.java:826)
   at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:850)
   at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:496)
   at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:190)
   ... 20 more
Caused by: java.io.IOException: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
   at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:281)
   at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:222)
   at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:188)
   at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:175)
   at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:423)
   ... 25 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 25 seconds
[INFO] Finished at: Tue Jul 13 09:45:09 EEST 2010
[INFO] Final Memory: 40M/675M
[INFO] ------------------------------------------------------------------------
soswow
 
Posts: 10
Joined: Wed Jun 30, 2010 12:29 pm

Re: Assembly failed and some tests too

Postby soswow » Tue Jul 13, 2010 7:56 am

I have Ubuntu 10.04 LTS, btw.
soswow
 
Posts: 10
Joined: Wed Jun 30, 2010 12:29 pm

Re: Assembly failed and some tests too

Postby Volker Bergmann » Thu Jul 15, 2010 10:50 am

Thanks for the information. I want Benerator to compile on any system and will take care of this in the long run.

About the test cases: Unfortunately I currently have no no Ubuntu system available. But if you send me an e-mail with the surefire .txt files of the erroneous test classes, I possibly could figure out what is going wrong.

About the assembly build failure: This is a concurrency issue in Maven/Plexus: http://jira.codehaus.org/browse/PLXCOMP-149. A fix exists, but does not seem to be included in a released build, yet. At least the you can download a patch file from that page. Did you retry the build? Possibly the issue won't strike at 100% of the builds.

Regards,
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm

Re: Assembly failed and some tests too

Postby Volker Bergmann » Thu Jul 15, 2010 3:19 pm

I checked and fixed the build on Windows and Mac O SX. Thus I found and fixed a setup issue in IOUtilTest (you will need to remove the file databene.test.properties in your user directory to make it work). The date and number related errors seem to be Ubuntu-specific. Since I will not have time to set up an Ubuntu system soon, I need your information on this.

Regards,
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm


Return to Benerator Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron