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.

Bug 180840 - Intermittent build failures in JRuby
Summary: Intermittent build failures in JRuby
Status: REOPENED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2010-02-17 07:23 UTC by Jesse Glick
Modified: 2011-01-28 20:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-02-17 07:23:13 UTC
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
Comment 1 Jesse Glick 2010-02-17 11:07:14 UTC
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.
Comment 2 Jesse Glick 2010-02-17 11:09:21 UTC
This is coming from bnd-0.0.249.jar.
Comment 3 Erno Mononen 2010-02-18 02:13:16 UTC
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.
Comment 4 Jesse Glick 2010-02-18 09:11:49 UTC
(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.)
Comment 5 Erno Mononen 2010-02-18 09:32:39 UTC
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.
Comment 6 Jesse Glick 2010-02-18 10:52:01 UTC
(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.
Comment 7 Erno Mononen 2010-02-18 13:08:33 UTC
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.
Comment 8 Erno Mononen 2010-02-19 08:11:07 UTC
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.
Comment 9 Quality Engineering 2010-02-21 22:31:20 UTC
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
Comment 10 Jesse Glick 2010-05-03 13:44:41 UTC
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
Comment 11 Erno Mononen 2010-05-03 14:14:12 UTC
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.
Comment 12 Erno Mononen 2010-05-04 12:01:21 UTC
I've upgraded to 0.0.401 in 833e4d4ee9af, let's see if that provides more info on the failure.
Comment 13 Erno Mononen 2010-05-18 13:27:02 UTC
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.
Comment 14 Erno Mononen 2010-06-16 10:58:19 UTC
I upgraded bnd back to 0.0.401 as part of another jruby upgrade (e38ce23bedd6).
Comment 15 Jesse Glick 2010-07-28 12:39:30 UTC
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
Comment 16 Erno Mononen 2010-07-28 13:06:16 UTC
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.
Comment 17 Jesse Glick 2010-07-28 13:11:10 UTC
No, it's quite occasional; I think I've reported every occurrence here.
Comment 18 Jesse Glick 2011-01-20 16:15:30 UTC
Failed in NB-Core-Build #5831.