Has anyone managed to run redmine-1.0.4 with jruby-1.5.6?

Hi,

I’ve tried with both jdbc sqlite3 and mysql configurations, but at the
first ‘rake db:migrate’, I get this error message:

rake aborted!
undefined method `has_key?’ for nil:NilClass

Here’s the full trace:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method has_key?' for nil:NilClass C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/whiny_nil.rb:52:inmethod_missing’
C:/j/redmine-1.0.4/lib/redmine/menu_manager.rb:77:in add' C:/j/redmine-1.0.4/lib/redmine/menu_manager.rb:371:inpush’
C:/j/redmine-1.0.4/lib/redmine.rb:148
C:/j/redmine-1.0.4/lib/redmine/menu_manager.rb:301:in map' C:/j/redmine-1.0.4/lib/redmine.rb:147 C:/j/redmine-1.0.4/lib/redmine.rb:156:inrequire’
C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in’
C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
require' C:/j/redmine-1.0.4/config/initializers/30-redmine.rb:3 C:/j/redmine-1.0.4/config/initializers/30-redmine.rb:145:inload’
C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
load_with_new_constant_marking' C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in’
C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
load_with_new_constant_marking' C:/j/redmine-1.0.4/vendor/rails/railties/lib/initializer.rb:622:inload_application_initializers’
C:/j/redmine-1.0.4/vendor/rails/railties/lib/initializer.rb:621:in
each' C:/j/redmine-1.0.4/vendor/rails/railties/lib/initializer.rb:621:inload_application_initializers’
C:/j/redmine-1.0.4/vendor/rails/railties/lib/initializer.rb:176:in
process' C:/j/redmine-1.0.4/vendor/rails/railties/lib/initializer.rb:113:inrun’
C:/j/redmine-1.0.4/config/environment.rb:20
C:/j/redmine-1.0.4/config/environment.rb:156:in require' C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire’
C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
new_constants_in' C:/j/redmine-1.0.4/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire’
C:/j/redmine-1.0.4/vendor/rails/railties/lib/tasks/misc.rake:4
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain' c:/jruby/lib/ruby/1.8/monitor.rb:191:inmon_synchronize’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:ininvoke_prerequisites’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in each' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ininvoke_prerequisites’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
invoke_with_call_chain' c:/jruby/lib/ruby/1.8/monitor.rb:191:inmon_synchronize’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling’
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' C:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 C:/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19:inload’
c:\jruby\bin\rake:19

Has anyone else seen this and managed to make it work with jruby-1.5.6 ?

Thanks in advance


Christian

Confirmed just now that it runs fine with ruby 1.8.7 windows MRI with
sqlite3…

It seems I won’t be able to make a nice war for tomcat6 out of redmine
then :frowning:

Christian

On Thu, Dec 16, 2010 at 12:09 AM, Christian MICHON

Have you tried contacting the redmine folks? I have been able to get
recent masters of redmine to work just fine, but I haven’t looked at
released versions. Sounds like it should be a simple configuration
issue. What version of Rails and AR-JDBC are you using with Redmine?

/Nick

On Thu, Dec 16, 2010 at 11:48 AM, Christian MICHON

Hi Nick,

On Thu, Dec 16, 2010 at 6:53 PM, Nick S. [email protected]
wrote:

Have you tried contacting the redmine folks?

No, since apparently this seems to happen only with rails on jruby. I
did not manage to reproduce the issue with windows ruby MRI, so unless
someone from redmine’s community actively knows how to make it work
with jruby & recent versions, our case is slim…

I have been able to get
recent masters of redmine to work just fine, but I haven’t looked at
released versions.

I have not tried recent masters of redmine, but redmine-1.0.4 being
quite recent (28th november) I believe what I observed can be
reproduced with the git master branch…

Sounds like it should be a simple configuration
issue. What version of Rails and AR-JDBC are you using with Redmine?

redmine requests rails-2.3.5, and I used the following gems (latest
releases):

  • activerecord-jdbc-adapter-1.1.0
  • jdbc-mysql-5.1.13
  • activerecord-jdbcmysql-adapter-1.1.0

I’ll try with older releases…

Thx
Christian

On Thu, Dec 16, 2010 at 11:58 PM, Christian MICHON
[email protected] wrote:

Hi Nick,

On Thu, Dec 16, 2010 at 6:53 PM, Nick S. [email protected] wrote:

Have you tried contacting the redmine folks?

No, since apparently this seems to happen only with rails on jruby. I
did not manage to reproduce the issue with windows ruby MRI, so unless
someone from redmine’s community actively knows how to make it work
with jruby & recent versions, our case is slim…

Ah… Nailed it down. I was trying to use the bundler/Gemfile trick
with rails-2.3.5.

Without using bundler, redmine works fine. With bundler in rails
boot.rb, the issue occurs…

Maybe I’ll drop bundler on this on then. Thanks

Christian