config.cache_classes = true causes errors when running migrations
-----------------------------------------------------------------

                 Key: JRUBY-3486
                 URL: http://jira.codehaus.org/browse/JRUBY-3486
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.6, JRuby 1.2
         Environment: OS X and linux
            Reporter: Miika Leppänen
            Assignee: Thomas E Enebo
            Priority: Blocker


First I had this issue:
[http://archive.codehaus.org/lists/org.codehaus.jruby.user/msg/[email protected]]

Now I tried with JRuby 1.2.0RC2 and I get this error when running migrate with 
production environment:
{code}
** Invoke environment (first_time)
** Execute environment
** has_many_polymorphs: rails environment detected
rake aborted!
can't convert Class into String
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2421:in 
`load_imports'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2366:in 
`raw_load_rakefile'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1993:in 
`load_rakefile'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in 
`standard_exception_handling'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1992:in 
`load_rakefile'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1976:in 
`run'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in 
`standard_exception_handling'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in 
`run'
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31
/usr/local/jruby-1.2.0RC2/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:19:in 
`load'
/usr/local/jruby/bin/rake:19
{code}

(when importing java classes I use java_import)
Common for these issues are config.cache_classes, when set to false migration 
runs ok, but when true, it fails.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to