jRuby下运行cucumber时出现java.lang.StackOverflowError
我在 Windows 下使用 Cucumber 和 jRuby 时遇到以下问题:
load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError)
即使在“clear”rails 项目上,在运行我的任何功能之前也会发生这种情况。
我正在使用 jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572)
这是我的捆绑列表
https://gist.github.com/2bc58e136cb982fc9bae
这是完整的堆栈跟踪:
Using the default profile...
load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError)
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:138:in `definition'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:126:in `load'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/setup.rb:17:in `(root)'
org/jruby/RubyKernel.java:1027:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/setup.rb:6:in `(root)'
org/jruby/RubyKernel.java:1027:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
D:/users/tgieniusz/workspace/rails/config/boot.rb:1:in `(root)'
org/jruby/RubyKernel.java:1027:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
D:/users/tgieniusz/workspace/rails/config/application.rb:2:in `(root)'
org/jruby/RubyKernel.java:1027:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
D:/users/tgieniusz/workspace/rails/config/environment.rb:7:in `(root)'
org/jruby/RubyKernel.java:1027:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
c:/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-rails-1.2.1/lib/cucumber/rails.rb:7:in `(root)'
org/jruby/RubyKernel.java:1052:in `load'
D:/users/tgieniusz/workspace/rails/features/support/env.rb:129:in `load_code_file'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
org/jruby/RubyArray.java:1614:in `each'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/runtime.rb:174:in `load_step_definitions'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/runtime.rb:40:in `run!'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/../lib/cucumber/cli/main.rb:20:in `execute'
c:/jruby-1.6.6/lib/ruby/gems/1.8/gems/cucumber-1.1.4/bin/cucumber:14:in `(root)'
org/jruby/RubyKernel.java:1052:in `load'
C:\jruby-1.6.6\lib\ruby\gems\1.8\bin\cucumber:19:in `(root)'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误存在于 JRuby 1.6.6
这是一个快速修复,而不是解决方法而不是解决错误的实际原因。
黄瓜人已经意识到了这一点,并正在准备修复。
This bug exists in JRuby 1.6.6
Here's a quickfix, rather a workaround than fixing the actual cause of the bug.
Cucumber guys are already aware of this and are preparing fix.