Ruby on rails 使用jruby运行rails命令时出现TypeError

Ruby on rails 使用jruby运行rails命令时出现TypeError,ruby-on-rails,jruby,puma,jrubyonrails,Ruby On Rails,Jruby,Puma,Jrubyonrails,我从MRI切换到JRuby,现在rails+puma启动时出现了一个错误: $ jruby -S rails s puma TypeError: no implicit conversion of Regexp into String join at org/jruby/RubyArray.java:1760 <top> at /Users/z/bin/spring:11 load at org/jruby/RubyKernel.java:955 <top&

我从MRI切换到JRuby,现在rails+puma启动时出现了一个错误:

$ jruby -S rails s puma
TypeError: no implicit conversion of Regexp into String
   join at org/jruby/RubyArray.java:1760
  <top> at /Users/z/bin/spring:11
   load at org/jruby/RubyKernel.java:955
  <top> at /Users/z/bin/rails:3
想知道社区是否也看到过类似的情况。我也尝试过使用bundle-exec-rails-s-puma,同样的问题


在中提到的RubyGems修复没有帮助。

不确定spring在JRuby上应该做什么-可能不起作用,不要使用它


另外
gem'activerecord jdbcpostgresql adapter'
还不支持AR 5.x

感谢PG-I上的提示切换到
gem'activerecord jdbcmysql adapter',“~>5.0.pre1”
。我不知道如何处理
spring
,因为它与Rails一起提供。修复结果更简单-我从Gemfile中删除了
spring
spring-watcher-listen
,并且没有修改
Rails
脚本。
$ rvm list

rvm rubies

=* jruby-9.1.12.0 [ x86_64 ]
   ruby-2.3.3 [ x86_64 ]


# => - current
# =* - current && default
#  * - default

$ jruby -v
jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) 64-Bit Server VM 25.141-b15 on 1.8.0_141-b15 +jit [darwin-x86_64]

$ gem -v
2.6.11

$ java -version
java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)

$ head Gemfile
source 'https://rubygems.org'
ruby '2.3.3', engine: 'jruby', engine_version: '9.1.12.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
gem 'active_model_serializers'
# Use Postgres as database
# gem 'pg'
# gem 'pg', '0.17.1', :platform => :jruby, :git => 'git://github.com/headius/jruby-pg.git', :branch => :master
gem 'activerecord-jdbcmysql-adapter', '~> 5.0.pre1'
gem 'puma'