This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181062 - IOError messages occured when Rails ran with bundled jruby.
Summary: IOError messages occured when Rails ran with bundled jruby.
Status: REOPENED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-22 23:22 UTC by xport
Modified: 2011-11-16 16:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xport 2010-02-22 23:22:43 UTC
As the followings, An IOError messages were threw out, but the Rails application can still works fine.Seems there may not interact smoothly between the jruby and NetBeans IDE.

BTW, my OS encoding was GBK, and my project was GBK too.

========================================================
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:8080
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
[2010-02-23 14:01:39] INFO  WEBrick 1.3.1
[2010-02-23 14:01:39] INFO  ruby 1.8.7 (2009-12-04) [java]
=> Call with -d to detach
[2010-02-23 14:01:39] INFO  WEBrick::HTTPServer#start: pid=4004 port=8080
=> Ctrl-C to shutdown server
[2010-02-23 14:01:42] ERROR IOError: 杩滅▼涓绘満寮鸿揩鍏抽棴浜嗕竴涓幇鏈夌殑杩炴帴銆�        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/httpserver.rb:55:in `run'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:162:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:95:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:92:in `each'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:92:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:23:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:82:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in `run'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:31:in `require'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        script\server:3
[2010-02-23 14:01:42] ERROR IOError: 杩滅▼涓绘満寮鸿揩鍏抽棴浜嗕竴涓幇鏈夌殑杩炴帴銆�        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/httpresponse.rb:324:in `_write_data'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/httpresponse.rb:180:in `send_header'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/httpresponse.rb:103:in `send_response'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/httpserver.rb:79:in `run'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:162:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:95:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:92:in `each'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:92:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:23:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:82:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in `run'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:31:in `require'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        script\server:3
[2010-02-23 14:02:51] ERROR IOError: 杩滅▼涓绘満寮鸿揩鍏抽棴浜嗕竴涓幇鏈夌殑杩炴帴銆�        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/httpserver.rb:55:in `run'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:162:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:95:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:92:in `each'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:92:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:23:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/webrick/server.rb:82:in `start'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in `run'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:31:in `require'
        D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        script\server:3
Comment 1 Erno Mononen 2010-02-23 00:35:29 UTC
Thanks for the report. Might be a JRuby issue, but I need to investigate more. Could you please translate what does the error message say (roughly)? Also, have you tried running the server from the command line, i.e. whether the same error occurs then as well? Thanks.
Comment 2 xport 2010-02-23 00:46:53 UTC
the corresponding messages in English was : ERROR IOError: An existing connection was forcibly closed by the remote host.

pls check this out: http://forums.netbeans.org/topic1307.html


(In reply to comment #1)
> Thanks for the report. Might be a JRuby issue, but I need to investigate more.
> Could you please translate what does the error message say (roughly)? Also,
> have you tried running the server from the command line, i.e. whether the same
> error occurs then as well? Thanks.
Comment 3 xport 2010-02-23 00:52:27 UTC
No error message from running it under the command line.
========================================================
>D:\DevHome\Platform\JRuby\jruby-1.4.0\bin\jruby script\server -p 8080
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:8080
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-02-23 15:50:26] INFO  WEBrick 1.3.1
[2010-02-23 15:50:26] INFO  ruby 1.8.7 (2009-11-02) [java]
[2010-02-23 15:50:26] INFO  WEBrick::HTTPServer#start: pid=1884 port=8080


(In reply to comment #2)
> the corresponding messages in English was : ERROR IOError: An existing
> connection was forcibly closed by the remote host.
> 
> pls check this out: http://forums.netbeans.org/topic1307.html
> 
> 
> (In reply to comment #1)
> > Thanks for the report. Might be a JRuby issue, but I need to investigate more.
> > Could you please translate what does the error message say (roughly)? Also,
> > have you tried running the server from the command line, i.e. whether the same
> > error occurs then as well? Thanks.
Comment 4 Erno Mononen 2010-04-13 11:06:10 UTC
Sorry for the delay, but can you please try running the server from command line with the built-in JRuby, i.e.:

D:/DevHome/Tools/NetBeans/6.8/ruby2/jruby-1.4.0/bin/jruby script\server -p 8080 

Thanks.
Comment 5 Erno Mononen 2010-05-06 11:44:30 UTC
Marking as incomplete for now, please see the previous comment and reopen when you have the chance to try this again. Thanks.
Comment 6 xport 2010-05-06 12:27:02 UTC
Netbeans-bundled JRuby run no errors...
==========
D:\DevHome\Tools\NetBeans\6.8\ruby2\jruby-1.4.0\bin\jruby script\server -p 8080
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:8080
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-05-06 20:22:52] INFO  WEBrick 1.3.1
[2010-05-06 20:22:52] INFO  ruby 1.8.7 (2009-12-04) [java]
[2010-05-06 20:22:52] INFO  WEBrick::HTTPServer#start: pid=3112 port=8080
Comment 7 Erno Mononen 2010-05-06 12:44:34 UTC
Thanks, I guess the cause might be some of the switches the IDE passes to JRuby. Will need to investigate.