Hanami, ROM and JRuby


#1

I’m trying to use ROM from Hanami with JRuby and I’m getting some problems:

** Invoke environment (first_time)
** Execute environment
rake aborted!
NoMethodError: undefined method `to_sym' for nil:NilClass
Did you mean?  to_s
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-sql-0.9.1/lib/rom/sql/gateway.rb:188:in `load_extensions'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-sql-0.9.1/lib/rom/sql/gateway.rb:63:in `initialize'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-2.0.2/lib/rom/gateway.rb:62:in `setup'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-2.0.2/lib/rom/environment.rb:51:in `block in normalize_gateways'
org/jruby/RubyHash.java:1344:in `each'
org/jruby/RubyEnumerable.java:1079:in `each_with_object'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-2.0.2/lib/rom/environment.rb:45:in `normalize_gateways'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-2.0.2/lib/rom/environment.rb:25:in `configure_gateways'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-2.0.2/lib/rom/environment.rb:18:in `initialize'
/usr/local/var/rbenv/versions/jruby-9.1.5.0/lib/ruby/gems/shared/gems/rom-2.0.2/lib/rom/configuration.rb:22:in `initialize'```

Did anybody got all these to work?

#2

Just for the record, we figured out that there’s a difference between jdbc:postgres and jdbc:postgresql where the latter works, so please use it instead. It could be considered as a bug in sequel.