This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Observed a couple of days ago in the cdev builder, and now in NB-Core-Build #4058; seems to be random. Log ends with: all-o.jruby.distro: Building o.jruby.distro... o.jruby.distro.default.init: Updating property file: ..../nbbuild/netbeans/moduleCluster.properties o.jruby.distro.build-init: Trying to override old definition of task downloadbinaries o.jruby.distro.compile: Created dir: ..../o.jruby.distro/build/classes Copying 1 file to ..../o.jruby.distro/build/classes o.jruby.distro.jar: Building jar: ..../nbbuild/netbeans/ruby/modules/org-jruby-distro.jar o.jruby.distro.module-xml-regular: Enabled modules: [JRuby and Rails Distribution] o.jruby.distro.build-jruby-bin: Build JRuby binary distribution from source Created dir: ..../o.jruby.distro/unpatched_source Expanding: ..../o.jruby/external/jruby-src-1.4.0.zip into ..../o.jruby.distro/unpatched_source Deleting directory ..../o.jruby.distro/unpatched_source/jruby-1.4.0/lib/ruby/gems/1.8/doc/rake-0.8.7/rdoc Deleting directory ..../o.jruby.distro/unpatched_source/jruby-1.4.0/lib/ruby/gems/1.8/doc/rake-0.8.7/ri Copying 2 files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Expanding: ..../o.jruby.distro/external/rails-gems-2.3.4.zip into ..../o.jruby.distro/unpatched_source/jruby-1.4.0 Expanding: ..../o.jruby.distro/external/rcov-0.8.1.5.0-java.zip into ..../o.jruby.distro/unpatched_source/jruby-1.4.0 JRuby.prepare: Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/test Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/test-results Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/test-results/html JRuby.prepare-resources: Copying 22 files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby Copying 18 files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby/builtin Copying 2 files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby JRuby.compile-annotation-binder: Created dir: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/src_gen Compiling 6 source files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby JRuby.compile-jruby: Since compiler setting isn't classic or modern,ignoring fork setting. Compiling 829 source files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby Since compiler setting isn't classic or modern,ignoring fork setting. warning: Annotation types without processors: [java.lang.Override, java.lang.Deprecated, org.jruby.anno.JRubyConstant, java.lang.SuppressWarnings, org.jruby.anno.JRubyModule, java.lang.annotation.Retention, java.lang.annotation.Target, com.kenai.jaffl.annotations.Out, com.kenai.jaffl.annotations.In, com.kenai.jaffl.annotations.Transient] 1 warning Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. JRuby._gmc_internal_: Generating invokers... Compiling populators... Compiling 171 source files to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build/classes/jruby Deleting: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/src_gen/annotated_classes.txt JRuby._gu_internal_: Generating Unsafe impl... Building jar: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/lib/jruby.jar JRuby._osgify-jar_: Copying 1 file to ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build jruby.jar 6323 0 Errors While copying the output file: /tmp/tmpbnd5731203403177790177.jar->..../o.jruby.distro/unpatched_source/jruby-1.4.0/lib/jruby.jar$ Failed to build target: all-o.jruby.distro BUILD FAILED ..../nbbuild/build.xml:374: The following error occurred while executing this line: ..../nbbuild/build.xml:369: The following error occurred while executing this line: ..../nbbuild/build.xml:416: The following error occurred while executing this line: ..../o.jruby.distro/build.xml:84: The following error occurred while executing this line: ..../o.jruby.distro/build.xml:69: The following error occurred while executing this line: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build.xml:596: The following error occurred while executing this line: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build.xml:391: The following error occurred while executing this line: ..../o.jruby.distro/unpatched_source/jruby-1.4.0/build.xml:403: Failed to wrap jar file
aQute.bnd.ant.WrapTask is failing the build. The origin error is in aQute.bnd.main.bnd.copy, which swallows an IOException (detail message as well as stack trace). I sent pkriens a message to try to get this fixed upstream. In the meantime I am not sure how to diagnose or fix.
This is coming from bnd-0.0.249.jar.
Thanks for looking into this. When this gets fixed in bnd I can then update the bundled JRuby to use the latest bnd version. Hopefully it will be then updated also in JRuby itself (I noticed you have already filed JRUBY-4434), 1.5 should be out in a few weeks and I plan to upgrade the bundled JRuby then.
(In reply to comment #3) > When this gets fixed in bnd I think you misunderstood. The fix in bnd would be to *report* the full error properly (show IOException.message), not a fix *of* the error: While copying the output file: /tmp/tmpbnd5731203403177790177.jar->..../o.jruby.distro/unpatched_source/jruby-1.4.0/lib/jruby.jar$ I do not know whether the original error is also bnd's fault. Downgrading priority since I only know of this breaking builds twice. (I receive error messages for cdev, NB-Core-Build, and nbms-and-javadoc.)
I see, I did misunderstand. If this doesn't break the build too often I guess this can wait until we can get the full stack trace for the error.
(In reply to comment #4) > The fix in bnd would be to *report* the full error properly pkriens writes: "I've made sure the exception is printed. If you put the exceptions on (-exceptions on the command line or exceptions attribute in ant) then you should also see an exception." > I do not know whether the original error is also bnd's fault. and: "Can you upgrade to a later version [such as 0.0.396]? I recall this error in older version where I used the wrong version of the replace method used to construct the output name." So upgrading bnd in the bundled JRuby (and/or waiting for JRuby 1.5 to appear and asking its devs to upgrade bnd upstream) may be all that is needed.
Thanks for the info. I think I'll upgrade bnd in the bundled JRuby, let's see if that'll fix the issue. I'll also ping the JRuby guys to make sure 1.5 will ship with a newer bnd version.
Upgraded the bundled JRuby to use 0.0.396 in 77757ff8c7f9. Closing as fixed, let's reopen if the build failures don't go away.
Integrated into 'main-golden', will be available in build *201002220200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/77757ff8c7f9 User: Erno Mononen <emononen@netbeans.org> Log: #180840 - Intermittent build failures in JRuby - upgrated bnd in bundled jruby to 0.0.396
Seems to have happened a couple of days ago in NB-Core-Build #4552: o.jruby.distro/build.xml:84: The following error occurred while executing this line: o.jruby.distro/build.xml:69: The following error occurred while executing this line: o.jruby.distro/unpatched_source/jruby-1.4.0/build.xml:597: The following error occurred while executing this line: o.jruby.distro/unpatched_source/jruby-1.4.0/build.xml:391: The following error occurred while executing this line: o.jruby.distro/unpatched_source/jruby-1.4.0/build.xml:404: Failed to wrap jar file
So 0.0.396 doesn't seem to give any better error report, I can upgrade to 0.0.401 (which seems to be the latest build now) and see if that makes a difference.
I've upgraded to 0.0.401 in 833e4d4ee9af, let's see if that provides more info on the failure.
For the moment we're back to 0.0.396 as a result of upgrading the bundled JRuby to 1.5.0; forgot to separately update bnd. Will do that next week after coming back from vacation.
I upgraded bnd back to 0.0.401 as part of another jruby upgrade (e38ce23bedd6).
Failed in NB-Core-Build #4927: JRuby._osgify-jar_: Copying 1 file to /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/unpatched_source/jruby-1.5.1/build jruby 6569 0 Errors Exception: /tmp/tmpbnd2630667045540424015.jar (No such file or directory) While copying the output pom: /tmp/tmpbnd2630667045540424015.jar -> /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/unpatched_source/jruby-1.5.1/lib/jruby.bar Failed to build target: all-o.jruby.distro BUILD FAILED /hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/build.xml:388: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/build.xml:383: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/build.xml:430: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/build.xml:84: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/build.xml:69: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/unpatched_source/jruby-1.5.1/build.xml:631: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/unpatched_source/jruby-1.5.1/build.xml:424: The following error occurred while executing this line: /hudson/workdir/jobs/NB-Core-Build/workspace/o.jruby.distro/unpatched_source/jruby-1.5.1/build.xml:438: Failed to wrap jar file
So looks like upgrading to 0.0.401 didn't help much. I guess this can be a P3 if the build fails due to this once in a month or two; feel free to raise the priority if you see this more often.
No, it's quite occasional; I think I've reported every occurrence here.
Failed in NB-Core-Build #5831.