NoMethodError:#<Bundler :: RubygemsIntegration的未定义方法`plain_specs'

时间:2019-12-17 19:13:59

标签: ruby sinatra jruby

我是新手,实际上是新手。我正在尝试用jruby运行sinatra,下面是我尝试遵循的tutorail,

http://www.ioncannon.net/programming/1325/getting-started-with-jruby-webapps-using-rack-and-sinatra/

我已经相应地安装了所有组件,但下面出现异常。

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of org.jruby.util.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
NoMethodError: undefined method `plain_specs' for #<Bundler::RubygemsIntegration:0x55b62629 @replaced_methods={}>
    setup at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:84
    check at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:124
   <main> at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:131
  require at org/jruby/RubyKernel.java:984
   (root) at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
  require at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:135
   <main> at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/rubygems-bundler-1.4.5/lib/rubygems_executable_plugin.rb:4
     each at org/jruby/RubyArray.java:1792
      run at /home/jahanzeb/.rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/executable-hooks-1.6.0/lib/executable-hooks/hooks.rb:50
   <main> at /home/jahanzeb/.rvm/gems/jruby-9.2.6.0/bin/jruby_executable_hooks:10

我已经解决了相关问题,但没有结果。 请帮助

0 个答案:

没有答案