buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <martin.grot...@javakaffee.de>
Subject Re: Buildr aborted with unknown exception in scala module
Date Fri, 07 Aug 2009 07:41:07 GMT
On Thu, 2009-08-06 at 20:08 -0500, Daniel Spiewak wrote:
> This is what happens when the Scala compiler actually crashes.  You can try
> adding USE_FSC to your CI server (I don't recommend it), but that would
> avoid the code path which is crashing.
Thanx for this tipp, with fsc the build is successful.

Why wouldn't you recommend to use fsc?

>   If you look through the rest of the
> error log, is there any other information like (say) a Java stack trace?
Nope, no stack trace.

> 
> You might also try upgrading your version of Scala (if you're not already on
> 2.7.4 or 2.7.5).  They fix bugs of this sort in the compiler all the time.
We're already using 2.7.5.

> 
> Daniel
> 
> P.S. Just a note, but we do have better error recovery for this case in
> trunk/.  Well, better reporting anyway.  It at least becomes a reasonably
> graceful failure.
Yes, I just tested this, then the output is like this:

Compiling ff:processing into /home/grotzke/proj/freiheit/final_folder/processing/target/classes
Buildr aborted!
Scala compiler crashed:
#<StackOverflowError: unknown exception>

Cool! ?! :) (it's good to have this improved error reporting ;))

> 
> On Thu, Aug 6, 2009 at 7:30 PM, Martin Grotzke <martin.grotzke@javakaffee.de
> > wrote:
> 
> > Hi,
> >
> > suddenly we get an "unknown exception" in the build. That's happening on
> > the machine of one of our developers and on our CI server when doing a
> > `buildr clean test`. I cannot reproduce this but I also get the same
> > unknown exception when I run `buildr clean test:SomeTest` in the main
> > project directory - when I run the same in the directory of the
> > subproject that provides the test, the build finishes successfully.
> >
> > Below you find the tail of the output of the `buildr clean
> > test:SomeTest` and the output of `buildr clean test`.
> >
> > Do you have an idea what might be the reason for this?
> >
> > Thanx && cheers,
> > Martin
> >
> >
> > ==== tail of the output of `buildr clean test:SomeTest` ====
> >
> > [loaded class file
> > /opt/scala/lib/scala-library.jar(scala/runtime/RichInt.class) in 0ms]
> > [loaded class file
> > /usr/java/jdk1.6.0_13/jre/lib/rt.jar(java/util/Locale.class) in 5ms]
> > [loaded class file
> > /opt/scala/lib/scala-library.jar(scala/Enumeration.class) in 1ms]
> > [loaded class file
> > /home/grotzke/proj/freiheit/final_folder/core/target/ff-core-0.1-SNAPSHOT.jar(com/finalfolder/core/common/configuration/ConfigurationService.class)
> > in 1ms]
> > Exception while invoking prerequisites of task <Buildr::CompileTask
> > ff:compile => [ff:resources, ff:core:compile, ff:webapp:compile,
> > ff:processing:compile, ff:converter:compile]>
> > Exception while invoking prerequisites of task <Buildr::CompileTask
> > ff:test:compile => [ff:compile, ff:test:resources,
> > /home/grotzke/.m2/repository/org/testng/testng/5.9/testng-5.9-jdk15.jar,
> > /home/grotzke/.m2/repository/jmock/jmock/1.2.0/jmock-1.2.0.jar]>
> > Exception while invoking prerequisites of task <Buildr::TestTask ff:test =>
> > [/home/grotzke/proj/freiheit/final_folder/buildfile, ff:test:compile,
> > /home/grotzke/.m2/repository/org/testng/testng/5.9/testng-5.9-jdk15.jar,
> > /home/grotzke/.m2/repository/jmock/jmock/1.2.0/jmock-1.2.0.jar]>
> > Buildr aborted!
> > unknown exception
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/scala/compiler.rb:111:in
> > `method_missing'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/scala/compiler.rb:111:in
> > `compile'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/compile.rb:229:in
> > `initialize'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `call'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:633:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/compile.rb:388:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:626:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/compile.rb:388:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:626:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:476:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:626:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:614:in
> > `invoke'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:164:in
> > `run_local_tests'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:161:in
> > `each'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:161:in
> > `run_local_tests'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `[]'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `local_projects'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `each'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `local_projects'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:158:in
> > `run_local_tests'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:542:in
> > `first_time'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:633:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:614:in
> > `invoke'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:553:in
> > `first_time'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `call'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:633:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:614:in
> > `invoke'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in
> > `top_level'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in
> > `each'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in
> > `top_level'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:499:in
> > `standard_exception_handling'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:223:in
> > `top_level'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:138:in
> > `run'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:499:in
> > `standard_exception_handling'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
> > `run'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
> > /usr/bin/buildr:19:in `load'
> > /usr/bin/buildr:19
> >
> > =============================================================
> >
> > ==== tail of the output of `buildr clean test` ====
> >
> > [loaded class file
> > /home/bjrke/opt/scala/lib/scala-library.jar(scala/actors/OutputChannel.class)
> > in 0ms]
> > [loaded class file
> > /home/bjrke/opt/scala/lib/scala-library.jar(scala/collection/immutable/Set.class)
> > in 4ms]
> > [loaded class file
> > /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/rt.jar(java/lang/System.class) in
> > 1ms]
> > [loaded class file
> > /home/bjrke/opt/scala/lib/scala-library.jar(scala/collection/Set.class) in
> > 0ms]
> > [loaded class file
> > /home/bjrke/opt/scala/lib/scala-library.jar(scala/actors/TIMEOUT.class) in
> > 0ms]
> > Buildr aborted!
> > unknown exception
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/scala/compiler.rb:111:in
> > `method_missing'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/scala/compiler.rb:111:in
> > `compile'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/compile.rb:229:in
> > `initialize'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `call'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:633:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/compile.rb:388:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:626:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/compile.rb:388:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:626:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:476:in
> > `invoke_prerequisites'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:626:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:614:in
> > `invoke'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:164:in
> > `run_local_tests'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:161:in
> > `each'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:161:in
> > `run_local_tests'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `[]'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `local_projects'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `each'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:349:in
> > `local_projects'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:158:in
> > `run_local_tests'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/test.rb:542:in
> > `first_time'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:633:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:619:in
> > `invoke_with_call_chain'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:614:in
> > `invoke'
> > /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in
> > `top_level'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in
> > `each'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:232:in
> > `top_level'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:499:in
> > `standard_exception_handling'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:223:in
> > `top_level'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:138:in
> > `run'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:499:in
> > `standard_exception_handling'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in
> > `run'
> > /usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19
> > /usr/bin/buildr:19:in `load'
> > /usr/bin/buildr:19
> >
> > =============================================================
> >
> >
> >
> >

Mime
View raw message