Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8342841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:53:02+00:00 2026-06-09T05:53:02+00:00

Every time I call my rake task it say: [2012-07-12 15:50:01] ERROR IOError: An

  • 0

Every time I call my rake task it say:

[2012-07-12 15:50:01] ERROR IOError: An existing connection was forcibly closed by the remote host
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/httpresponse.rb:324:in `_write_data'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/httpresponse.rb:180:in `send_header'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/httpresponse.rb:103:in `send_response'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/httpserver.rb:79:in `run'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/server.rb:162:in `start'
[2012-07-12 15:50:29] ERROR IOError: An existing connection was forcibly closed by the remote host
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/httpserver.rb:55:in `run'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        C:/jruby-1.3.1/lib/ruby/1.8/webrick/server.rb:162:in `start'

I have tryed different options thinking that it could be the call to the rake task but apparently isn’t, also I have tryed with Mongrel and WEBRick in case that it could be the server.
I’m using Jruby 1.3.1

The task it’s not been executed.

This is part of my code:

application_controller.rb

 def call_rake(task, options = {})
    options[:rails_env] ||= Rails.env
    args = options.map { |n, v| "#{n.to_s.upcase}='#{v}'" }
    system "C:/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake #{task} #{args.join(' ')} start"
  end

forbidden_file.rake

desc "Process CSV file"
task :process_file => :environment do
  forbidden_file = ForbiddenFile.find(ENV["csv"])
  forbidden_file.upload_file
end

Controller

...
call_rake :process_file, :csv => params[:files]
redirect_to forbidden_files_url
...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:53:03+00:00Added an answer on June 9, 2026 at 5:53 am

    It’s working now, I just removed the word start from the command.

    system "rake #{task} #{args.join(' ')}"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

every time I call getResources in my main activity it results in an error
I have fixed an error in my code, but every time I call ndk-build
Can I make ComboBox from AjaxToolkit make call to server every time new letter
I got a problem with devise. Every time I try to call an Url
I want to append a newline to my string every time I call file.write()
I have this code I am working on but every time I call init
I'm using JSON.simple to generate JSON output from Java. But every time I call
I'd like to avoid casting a delegate every time I call MarkAsPermanent method. Here's
I use the plugin NERDTree , but every time I call it, I need
AudioOutputUnitStart function takes up to 1-2 seconds to start every time I call it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.