Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-7

Error when downloading a file from a server which answers with a response with no content length.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • None

    Description

      Buildfile:
      repositories.remote << "http://www.ibiblio.org/maven2/"
      repositories.remote << "http://fest.googlecode.com/svn/trunk/fest/m2/repository"

      desc "The Buildr-test project"
      define "buildr-test" do
      project.version = "1.0.0"
      project.group = "buildr-test"

      compile.with transitive("fest:fest-swing-testng:jar:0.7")
      end

      Output:
      > buildr --trace
      (in /home/tmak/public_html/buildr-test)

        • Invoke buildr:initialize (first_time)
        • Execute buildr:initialize
        • Invoke buildr-test (first_time)
        • Execute buildr-test
        • Invoke /home/tmak/.m2/repository/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom (first_time)
        • Execute /home/tmak/.m2/repository/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom
          Downloading fest:fest-swing-testng:pom:0.7
          Downloading fest:fest-swing-testng:pom:0.7
          Requesting http://www.ibiblio.org/maven2/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom
          Redirected to http://mirrors.ibiblio.org/pub/mirrors/maven2/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom
          Requesting http://mirrors.ibiblio.org/pub/mirrors/maven2/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom
          Requesting http://fest.googlecode.com/svn/trunk/fest/m2/repository/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom
          Downloading http://fest.googlecode.com/svn/trunk/fest/m2/repository/fest/fest-swing-testng/0.7/fest-swing-testng-0.7.pom
          undefined method `zero?' for nil:NilClass
          /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/progressbar.rb:166:in `show_progress'
          /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/progressbar.rb:50:in `initialize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:248:in `new'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:248:in `with_progress_bar'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:330:in `read'
          /usr/lib/ruby/1.8/net/http.rb:1053:in `request'
          /usr/lib/ruby/1.8/net/http.rb:2136:in `reading_body'
          /usr/lib/ruby/1.8/net/http.rb:1052:in `request'
          /usr/lib/ruby/1.8/net/http.rb:948:in `request_get'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:317:in `read'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:357:in `[]'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:357:in `read'
          /usr/lib/ruby/1.8/net/http.rb:543:in `start'
          /usr/lib/ruby/1.8/net/http.rb:440:in `start'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:357:in `read'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:153:in `download'
          /usr/lib/ruby/1.8/tempfile.rb:172:in `open'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:151:in `download'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:77:in `download'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:312:in `download'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:115:in `find'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:309:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:309:in `find'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:309:in `download'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:258:in `initialize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:30:in `load'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:629:in `transitive'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:115:in `inject'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:624:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:624:in `inject'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:624:in `transitive'
          /home/tmak/public_html/buildr-test/buildfile:9
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:146:in `instance_eval'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:146:in `define'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:520:in `execute'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1571:in `in_namespace_without_global_scope'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:62:in `in_namespace'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:520:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/core/symbol/to_proc.rb:22:in `_send_'
          /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/core/symbol/to_proc.rb:22:in `to_proc'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:201:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:201:in `projects'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:626:in `projects'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:632
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:54:in `run'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:51:in `run'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/bin/buildr:7
          /usr/bin/buildr:19:in `load'
          /usr/bin/buildr:19
          rake aborted!
          Failed to download fest:fest-swing-testng:pom:0.7, tried the following repositories:
          http://www.ibiblio.org/maven2//
          http://fest.googlecode.com/svn/trunk/fest/m2/repository/
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:363:in `fail_download'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:328:in `download'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:258:in `initialize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:30:in `load'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:629:in `transitive'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:115:in `inject'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:624:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:624:in `inject'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:624:in `transitive'
          /home/tmak/public_html/buildr-test/buildfile:9
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:146:in `instance_eval'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:146:in `define'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:520:in `execute'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1571:in `in_namespace_without_global_scope'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:62:in `in_namespace'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:520:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/core/symbol/to_proc.rb:22:in `_send_'
          /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/core/symbol/to_proc.rb:22:in `to_proc'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:201:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:201:in `projects'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:626:in `projects'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:632
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:54:in `run'
          /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:51:in `run'
          /usr/lib/ruby/gems/1.8/gems/buildr-1.2.10/bin/buildr:7
          /usr/bin/buildr:19:in `load'
          /usr/bin/buildr:19

      Attachments

        1. fix_http_download_02.patch
          0.6 kB
          Thomas Marek
        2. fix_http_download.patch
          4 kB
          Thomas Marek

        Activity

          People

            assafarkin Assaf Arkin
            tmak Thomas Marek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: