Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rails: After migration from ruby to jruby, app is not booting #6310

@kushthedude

Description

@kushthedude

Environment Information

Provide at least:

  • JRuby version : 9.2.12.0
  • Operating system and platform: MacOS Cataline, rails 6.0.3

Other relevant info you may wish to add:

  • Installed or activated gems
  • Application/framework version (e.g. Rails, Sinatra)
  • Environment variables

Expected Behavior
I have migrated my app from ruby to JRuby, I replaced my pg adapter with activerecord-jdbc-adapter & when I start my application using rails server & visit the app, the application crashes with error :-

=> Booting Puma
=> Rails 6.0.3.2 application starting in development
=> Run `rails server --help` for more startup options
The signal INFO is in use by the JVM and will not work correctly on this platform
Puma starting in single mode...
* Version 4.3.5 (jruby 9.2.12.0 - ruby 2.5.7), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://[::1]:8080
* Listening on tcp://127.0.0.1:8080
Use Ctrl-C to stop
   (2.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
  User Load (30.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?  [["id", 2], ["LIMIT", 1]]
  ↳ app/controllers/welcome_controller.rb:5:in `home'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/Users/kush/.rvm/rubies/jruby-9.2.12.0/lib/ruby/stdlib/jopenssl.jar) to field java.security.MessageDigest.provider
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.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
java(19877,0x700008f3b000) malloc: *** error for object 0x7fb3213cf000: pointer being freed was not allocated
java(19877,0x700008f3b000) malloc: *** set a breakpoint in malloc_error_break to debug
[1]    19877 abort      rails server

Actual Behavior

App should work fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions