"Bad file descriptor" error when running jruby and rails + JA-SIG CAS ruby 
package
----------------------------------------------------------------------------------

                 Key: JRUBY-2206
                 URL: http://jira.codehaus.org/browse/JRUBY-2206
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1RC2
         Environment: Win XP pro, java 1.6_03, ruby 1.8.6 build 111 final, 
rails 2.0.2, postgressql 8.2, ruby-cas-client 2.0
            Reporter: Jin Lee
            Assignee: Thomas E Enebo


I created a stub RoR app, installing JA-SIG's ruby-cas (central authentication 
service) client. I set the appropriate settings for it to connect to our single 
sign on server. Using native ruby 1.8.6 final w/ rails 2.0.2, the SSO ticket 
was successfully granted/received. 

Under jruby, the following error occurs:

Errno::EBADF in PortalController#index 
Bad file descriptor - Bad file descriptor
RAILS_ROOT: C:/development/acp

Application Trace | Framework Trace | Full Trace 

C:/tools/java/jruby-1.1RC2/lib/ruby/1.8/net/protocol.rb:70:in `close'
C:/tools/java/jruby-1.1RC2/lib/ruby/1.8/net/http.rb:617:in `do_finish'
C:/tools/java/jruby-1.1RC2/lib/ruby/1.8/net/http.rb:549:in `start'
vendor/plugins/rubycas-client/lib/casclient/client.rb:175:in 
`request_cas_response'
vendor/plugins/rubycas-client/lib/casclient/client.rb:175:in 
`validate_service_ticket'
vendor/plugins/rubycas-client/lib/casclient/frameworks/rails/filter.rb:29:in 
`filter'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:497:in
 `call'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:441:in
 `run'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:716:in
 `run_before_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:695:in
 `call_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
 `perform_action_with_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `measure'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_rescue'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
 `perform_action_with_caching'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
 `cache'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
 `cache'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
 `perform_action_with_caching'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
 `process_with_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
 `process_with_session_management_support'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
 `handle_request'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
 `dispatch'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
 `dispatch_cgi'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
 `dispatch'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:76:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:74:in
 `synchronize'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:74:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:74:in
 `process_client'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:158:in
 `each'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:158:in
 `process_client'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:158:in
 `run'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:285:in
 `initialize'
C:/tools/java/jruby-1.1RC2/lib/ruby/1.8/net/protocol.rb:70:in `close'
C:/tools/java/jruby-1.1RC2/lib/ruby/1.8/net/http.rb:617:in `do_finish'
C:/tools/java/jruby-1.1RC2/lib/ruby/1.8/net/http.rb:549:in `start'
vendor/plugins/rubycas-client/lib/casclient/client.rb:175:in 
`request_cas_response'
vendor/plugins/rubycas-client/lib/casclient/client.rb:175:in 
`validate_service_ticket'
vendor/plugins/rubycas-client/lib/casclient/frameworks/rails/filter.rb:29:in 
`filter'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:497:in
 `call'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:441:in
 `run'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:716:in
 `run_before_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:695:in
 `call_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
 `perform_action_with_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `measure'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_benchmark'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
 `perform_action_with_rescue'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
 `perform_action_with_caching'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
 `cache'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
 `cache'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
 `perform_action_with_caching'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
 `process_with_filters'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
 `process_with_session_management_support'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
 `handle_request'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
 `dispatch'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
 `dispatch_cgi'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
 `dispatch'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:76:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:74:in
 `synchronize'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:74:in
 `process'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel/rails.rb:74:in
 `process_client'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:158:in
 `each'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:158:in
 `process_client'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:158:in
 `run'
C:/tools/java/jruby-1.1RC2/lib/ruby/gems/1.8/gems/mongrel-1.1.3-java/lib/mongrel.rb:285:in
 `initialize'
Request
Parameters: 

{"ticket"=>"ST-7-MiKqSKFjhfmHsQgHg2iU"}

Show session dump

--- 
flash: !map:ActionController::Flash::FlashHash {}
:cas_sent_to_gateway: false

Response
Headers: 

{"Cache-Control"=>"no-cache",
 "cookie"=>[]}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to