Skip to content

JRuby throws java.lang.ArrayIndexOutOfBoundsException  #3781

@dennis-d

Description

@dennis-d

Exception in thread "Ruby-0-Thread-38: /Users/dennis/.rvm/gems/jruby-1.7.24/gems/puma-3.2.0-java/lib/puma/thread_pool.rb:67" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:479)
at org.jruby.runtime.ThreadContext.getFrameName(ThreadContext.java:606)
at org.jruby.exceptions.RaiseException.doCallEventHook(RaiseException.java:235)
at org.jruby.exceptions.RaiseException.preRaise(RaiseException.java:212)
at org.jruby.exceptions.RaiseException.preRaise(RaiseException.java:196)
at org.jruby.exceptions.RaiseException.(RaiseException.java:141)
at org.jruby.Ruby.newLocalJumpError(Ruby.java:3766)
at org.jruby.exceptions.JumpException$FlowControlException.buildException(JumpException.java:72)
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104)
at java.lang.Thread.run(Thread.java:745)

Tried it on webrick same results:

Exception in thread "Ruby-0-Thread-12: /Users/dennis/.rvm/rubies/jruby-1.7.24/lib/ruby/1.9/webrick/server.rb:180" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:479)
at org.jruby.runtime.ThreadContext.getFrameName(ThreadContext.java:606)
at org.jruby.exceptions.RaiseException.doCallEventHook(RaiseException.java:235)
at org.jruby.exceptions.RaiseException.preRaise(RaiseException.java:212)
at org.jruby.exceptions.RaiseException.preRaise(RaiseException.java:196)
at org.jruby.exceptions.RaiseException.(RaiseException.java:141)
at org.jruby.Ruby.newLocalJumpError(Ruby.java:3766)
at org.jruby.exceptions.JumpException$FlowControlException.buildException(JumpException.java:72)
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104)
at java.lang.Thread.run(Thread.java:745)

Environment

Provide at least:

  • jruby 1.7.24, JRUBY_OPTS just to use ruby 1.9 '--1.9'
  • OSX 10.10.4 - Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
    java version "1.8.0_77"
    Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Other relevant info you may wish to add:
Gemfile:
ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.24'
gem "rails", "= 4.1.15"

gem "sequel", "4.24.0.6369d34f70988ff5e2d4489b876d1cc303accdc9"
gem 'fortitude', "0.9.5.831bd40aa5a5256194d782fac9b79b0967b400fc"
gem "formtastic", "> 3.1.3"
gem "rufus-scheduler", "
> 3.1.2"
gem 'nokogiri', "1.6.8.rc3"
gem "ri_cal", "0.8.8.2d8b47fc4faf589b10d7ec1a090a78267384eab9"
gem "mail", :require => nil
gem "inherited_resources", "1.3.1.e4eb89595d1c58f2f7457c5dfb138398beedb8b8"
gem "bcrypt"
gem "uuidtools"
gem "jruby-openssl", "0.9.15"
gem "json"
gem "http_accept_language", "1.0.1.1.a75d7431d8bba418294b29d43dd8f546ebbffe23"
gem "excon"
gem "rest-client", "1.6.8.9fd53c1e063d89cf84db461d14ddf019f6a94628" # Remove CC-licensed master_shake.jpg
gem "tem-server-api", "> 2.0.8"
gem "activeresource-response"
gem "rubyzip", "1.1.7.72e98a666eab510dbb7f32d8a6094a80f02a0c8e"
gem "time_diff"
gem "json-schema", "
> 2.5.1"
gem "tzinfo-data"
gem "activesupport-json_encoder"
gem "abstract", "1.0.0.d86eb2255aefb5c0ce4dd2351dbbf4b9e22264ad"
gem "erubis", "2.7.0.1.ed3659f9fdc6659f69fce047e9f57f0289d903d8"
gem "uglifier", "> 2.7.1"
gem "sass-rails"
gem "i18n-js", "
> 2.1.2"
gem "compass-rails", "> 2.0.0"
gem "compass-blueprint", "
> 1.0.0"
gem "therubyrhino"

Expected Behavior

We run a simple validation were sequel need to check for a require field , email in this case and gives and error messages attached to an associated object.

Actual Behavior

Instead of returning an error message or any backtrace in the rails log , I getting this exception above

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions