jRuby下运行cucumber时出现java.lang.StackOverflowError

发布于 2025-01-02 13:14:11 字数 3214 浏览 1 评论 0 原文

我在 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)'  

I have following problem with using cucumber and jRuby under windows:

load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError)

It happens even on 'clear' rails project, before running any of my features.

I am using jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) and this is my bundle list https://gist.github.com/2bc58e136cb982fc9bae

Here is the full stack trace:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

信愁 2025-01-09 13:14:11

此错误存在于 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文