buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Donald (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BUILDR-585) "TypeError : can't dup NilClass" when merging jars
Date Wed, 22 Jun 2011 10:11:23 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Donald closed BUILDR-585.
-------------------------------


> "TypeError : can't dup NilClass" when merging jars
> --------------------------------------------------
>
>                 Key: BUILDR-585
>                 URL: https://issues.apache.org/jira/browse/BUILDR-585
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.4.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>            Priority: Minor
>             Fix For: 1.4.6
>
>
> As reported on the mailing list,
> http://buildr.markmail.org/thread/mqtzxh6pjfi3vllr
> I get this error when trying to merge the apache httpclient jar into a package
> (from ibiblio or maven). Other jars merge fine, and it affects at least the last
> several versions of httpclient. It seems to have trouble unzipping.
> If i manually unzip and merge all my jars, my application works fine (and it was
> working this way for months)
> Has anyone seen this with other jars before?
> Thank you so much your help!
> {code}
> ...
> Adding org/codehaus/jackson/schema/JsonSerializableSchema.class
> Adding org/codehaus/jackson/schema/SchemaAware.class
> Adding org/codehaus/jackson/schema/package-info.class
> ** Invoke
> /Users/ry/.m2/repository/org/apache/httpcomponents/httpclient/4.0.3/httpclient-4.0.3.jar
> (not_needed)
> Exception while invoking prerequisites of task <Buildr::Packaging::Java::JarTask
> /Users/ry/seqosystem/src/deps/target/dependencies.jar => [sos:deps:build]>
> Exception while invoking prerequisites of task <Rake::Task sos:deps:package =>
> [sos:deps:build, /Users/ry/seqosystem/src/deps/target/dependencies.jar]>
> Buildr aborted!
> TypeError : can't dup NilClass
> org/jruby/RubyKernel.java:1873:in `dup'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1163:in
> `dup'
> org/jruby/RubyArray.java:2306:in `collect'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1163:in
> `dup'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1399:in
> `initialize'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1411:in
> `open'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/packaging/archive.rb:295:in
> `expand'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/packaging/archive.rb:118:in
> `merge'
> org/jruby/RubyProc.java:268:in `call'
> org/jruby/RubyProc.java:228:in `call'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/packaging/archive.rb:138:in
> `add_files'
> org/jruby/RubyArray.java:1572:in `each'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/packaging/archive.rb:138:in
> `add_files'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/packaging/archive.rb:475:in
> `invoke_prerequisites'
> org/jruby/RubyHash.java:1167:in `each'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/packaging/archive.rb:474:in
> `invoke_prerequisites'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:667:in
> `invoke_with_call_chain'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/1.8/monitor.rb:191:in
> `mon_synchronize'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/1.8/monitor.rb:190:in
> `mon_synchronize'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:660:in
> `invoke_with_call_chain'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> org/jruby/RubyArray.java:1572:in `each'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:667:in
> `invoke_with_call_chain'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/1.8/monitor.rb:191:in
> `mon_synchronize'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:660:in
> `invoke_with_call_chain'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:655:in
> `invoke'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
> `invoke_task'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:246:in
> `top_level'
> org/jruby/RubyArray.java:1572:in `each'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:246:in
> `top_level'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:535:in
> `standard_exception_handling'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:237:in
> `top_level'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:138:in
> `run'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:535:in
> `standard_exception_handling'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:135:in
> `run'
> /Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/bin/buildr:19:in
> `(root)'
> org/jruby/RubyKernel.java:1062:in `load'
> /Users/ry/Cellar/jruby/1.6.0/jruby/bin/buildr:19:in `(root)'
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message