jruby 1.5.1 include Java issue with jruby-openssl-0.7
-----------------------------------------------------

                 Key: JRUBY-4971
                 URL: http://jira.codehaus.org/browse/JRUBY-4971
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 1.5
            Reporter: Sanel Z.
            Priority: Critical
         Attachments: trace.txt.gz

We recently upgraded JRuby 1.4.0, used by a bit larger Rails application to 
1.5.1 and after installing jruby-openssl-0.7 gem, Rails app refused to start, 
with this trace:

Java package `java' does not have a method `append_features'
/.../jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:50:in
`method_missing'
...
/.../jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in
`load_file'
/.../jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/.../jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:379:in
`load_file'
/.../jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:259:in

Full trace is provided as attachment.

Removing jruby-openssl would solve the problem and is always reproducible.

So, after investigating it a bit, we found how placing 'include Java' outside 
the module would solve the issue. On other hand, this wasn't the issue with 
JRuby 1.4.0.

Also, the strangest thing is how 'include Java' inside module will work for 
some ruby classes and for some will not. I'm not sure how jruby-openssl is 
related to this.

Thanks :)

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