Something wrong with 'require' handling or with ActiveSupport code 
interpretation (?)
-------------------------------------------------------------------------------------

                 Key: JRUBY-1213
                 URL: http://jira.codehaus.org/browse/JRUBY-1213
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0
         Environment: OS X ( jdk   1.5.0_07 ), Ubuntu Linux ( jdk 1.6.0 )
            Reporter: George Khromchenko
            Assignee: Thomas E Enebo
         Attachments: openuri.zip

Steps to reproduce

1) Extract testcase with dummy rails application
2) Change directory to testcase directory and run 'jruby  script/server'
3) You should request   'http://localhost:3000/rss/' 2-3 times. 

First request passes ok ( and I can see rss titles in WEBrick console ).  With  
second and later request I get following message in browser window

=====================================
ArgumentError in Rss syncController#index

A copy of OpenURI::OpenRead has been removed from the module tree but is still 
active!
RAILS_ROOT: script/../config/..

Application Trace | Framework Trace | Full Trace
/opt/jruby-1.0/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:237:in
 `load_missing_constant'
/opt/jruby-1.0/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
 `const_missing'
/opt/jruby-1.0/lib/ruby/1.8/open-uri.rb:528:in `open'
/opt/jruby-1.0/lib/ruby/1.8/open-uri.rb:30:in `open'
app/controllers/rss_sync_controller.rb:13:in `index'
===============================

I have tested this rails app with "C" implementation of Ruby, and it was ok.


-- 
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