buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Walker (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BUILDR-462) undefined method `length' for -1:Fixnum
Date Fri, 10 Sep 2010 05:07:34 GMT

    [ https://issues.apache.org/jira/browse/BUILDR-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907886#action_12907886
] 

Paul Walker commented on BUILDR-462:
------------------------------------

I am receiving this same exception on jruby 1.5.2 with the buildr 1.4.2.

Exception while invoking prerequisites of task <Rake::Task roambi:es:package => [roambi:es:build,
/Users/paul/roambi-server/roambi-es/target/roambi-es-3.1-SNAPSHOT.war]>
Buildr aborted!
NoMethodError : undefined method `length' for -1:Fixnum
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rubyzip-0.9.4/lib/zip/zip.rb:732:in `write_c_dir_entry'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/packaging/zip.rb:37:in
`write_to_stream'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/packaging/zip.rb:37:in
`each'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/packaging/zip.rb:37:in
`write_to_stream'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rubyzip-0.9.4/lib/zip/zip.rb:1050:in `write_central_directory'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rubyzip-0.9.4/lib/zip/zip.rb:973:in `close'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rubyzip-0.9.4/lib/zip/zip.rb:965:in `open'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/packaging/ziptask.rb:59:in
`create_from'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/packaging/archive.rb:323:in
`initialize'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:636:in
`invoke_with_call_chain'
/Users/paul/.rvm/rubies/jruby-1.5.2/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:622:in
`invoke_with_call_chain'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:629:in
`invoke_with_call_chain'
/Users/paul/.rvm/rubies/jruby-1.5.2/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:622:in
`invoke_with_call_chain'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:617:in
`invoke'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:232:in
`top_level'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:232:in
`each'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:232:in
`top_level'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:502:in
`standard_exception_handling'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:223:in
`top_level'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:138:in
`run'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:502:in
`standard_exception_handling'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:135:in
`run'
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/bin/buildr:19
/Users/paul/.rvm/gems/jruby-1.5.2@es/gems/buildr-1.4.2-java/bin/buildr:19:in `load'
/Users/paul/.rvm/gems/jruby-1.5.2@es/bin/buildr:19


> undefined method `length' for -1:Fixnum
> ---------------------------------------
>
>                 Key: BUILDR-462
>                 URL: https://issues.apache.org/jira/browse/BUILDR-462
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.4
>         Environment: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
>            Reporter: Kristof Jozsa
>
> kjozsa@walrus:/tmp/test$ ls
> buildfile
> kjozsa@walrus:/tmp/test$ cat buildfile 
> define 'stuff' do
>   project.group = 'x'
>   project.version = '1.0.0'
>   package :jar, :id => 'ziperror'
> end
> kjozsa@walrus:/tmp/test$ buildr package
> (in /tmp/test, development)
> Building stuff
> Packaging stuff
> Packaging ziperror-1.0.0.jar
> Buildr aborted!
> NoMethodError : undefined method `length' for -1:Fixnum
> (See full trace by running task with --trace)
> kjozsa@walrus:/tmp/test$ buildr package --trace 2>&1 | grep -A3 NoMethod
> NoMethodError : undefined method `length' for -1:Fixnum
> /usr/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.4/lib/zip/zip.rb:732:in `write_c_dir_entry'
> /usr/lib/ruby/gems/1.9.1/gems/buildr-1.4.0/lib/buildr/packaging/zip.rb:37:in `block in
write_to_stream'
> /usr/lib/ruby/gems/1.9.1/gems/buildr-1.4.0/lib/buildr/packaging/zip.rb:37:in `each'
> kjozsa@walrus:/tmp/test$ 

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


Mime
View raw message