FFI fails to load from jirb
---------------------------

                 Key: JRUBY-5551
                 URL: http://jira.codehaus.org/browse/JRUBY-5551
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: JRuby 1.6RC2
         Environment: OpenSuSE Linux x86_64
java version "1.6.0_20"                                                         
                                                                                
                                                                           
OpenJDK Runtime Environment (IcedTea6 1.9.5) (suse-1.2.1-x86_64)                
                                                                                
                                                                           
OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)
            Reporter: Martin Corino
             Fix For: JRuby 1.6RC3


Executing "require 'ffi'" from jirb results in the following error message:

irb(main):001:0> require 'ffi'
LoadError: Could not load FFI Provider: (NotImplementedError) FFI not 
available: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
 See http://jira.codehaus.org/browse/JRUBY-4583
        from org/jruby/RubyKernel.java:1038:in `require'
        from 
/home/martin/develop/jruby-1.6.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:69:in 
(root)'
        from org/jruby/RubyKernel.java:1038:in `require'
        from 
/home/martin/develop/jruby-1.6.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:1:in 
`(root)'
        from org/jruby/RubyKernel.java:1038:in `require'
        from 
/home/martin/develop/jruby-1.6.0/lib/ruby/site_ruby/shared/ffi.rb:1:in 
`evaluate'
        from org/jruby/RubyKernel.java:1088:in `eval'
        from /home/martin/develop/jruby-1.6.0/lib/ruby/1.8/irb.rb:158:in 
`eval_input'
        from /home/martin/develop/jruby-1.6.0/lib/ruby/1.8/irb.rb:271:in 
`signal_status'
        from /home/martin/develop/jruby-1.6.0/lib/ruby/1.8/irb.rb:155:in 
`eval_input'
        from org/jruby/RubyKernel.java:1418:in `loop'
        from org/jruby/RubyKernel.java:1191:in `rbCatch'
        from /home/martin/develop/jruby-1.6.0/lib/ruby/1.8/irb.rb:154:in 
`eval_input'
        from /home/martin/develop/jruby-1.6.0/lib/ruby/1.8/irb.rb:71:in `start'
        from org/jruby/RubyKernel.java:1191:in `rbCatch'
        from /home/martin/develop/jruby-1.6.0/lib/ruby/1.8/irb.rb:70:in `start'
        from /home/martin/develop/jruby-1.6.0/bin/jirb:13:in `(root)'
irb(main):002:0>                                                                
                                                              

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