Broken rake

I’m attempting to run some migrations on an empty database and I’m
getting an error from rake.

This is reported as a Warbler problem
(http://kenai.com/jira/browse/WARBLER-4), but I’ve uninstalled it and
I still have this error. (Neither the gem nor plugin exist on my
system).

Slim:rails_code jim$ jruby -S rake db:schema:load --trace
(in /Users/jim/SCM/cvs/IRIS2/rails_code)
rake aborted!
can’t convert Module into String
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2449:in
load_imports' /Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2390:in raw_load_rakefile’
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in
load_rakefile' /Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling’
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in
load_rakefile' /Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in run’
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run’
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19:in
`load’
/Users/jim/Library/jruby-1.3.1/bin/rake:19

A suggestion from the Warbler issue page suggests that it will work
after removing vendor/plugins/warbler-0.9.12/tasks/warbler.rake, but
that’s obviously no solution since I have no trace of Warbler.

JRuby 1.3.1
Rake 0.8.7
Rails 2.3.4

Any suggestions of where to look?


Jim G.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Just want to bump this thread up. Has anyone seen this error while
trying to run rake?

On Wed, Sep 23, 2009 at 4:10 PM, Jim G. [email protected] wrote:

rake aborted!
`load_rakefile’


Jim G.
http://www.saturnflyer.com


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Sep 23, 2009 at 3:10 PM, Jim G. [email protected] wrote:

rake aborted!
`load_rakefile’

A suggestion from the Warbler issue page suggests that it will work
after removing vendor/plugins/warbler-0.9.12/tasks/warbler.rake, but
that’s obviously no solution since I have no trace of Warbler.

JRuby 1.3.1
Rake 0.8.7
Rails 2.3.4

Any suggestions of where to look?

So based on the stack trace, it appears that somewhere some JRuby java
integration code is running in the context of Rake that is using the
“import” method to import a java class, and that’s colliding with
Rake’s own “import”. By chance do you have any code like that lying
around? If you do, try changing it to use “java_import”.

Now that I realized that this is the problem, I’m not sure what
Warbler has to do with it since Warbler doesn’t use import anywhere.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, Sep 25, 2009 at 4:10 PM, Nick S. [email protected]
wrote:

(in /Users/jim/SCM/cvs/IRIS2/rails_code)
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in
/Users/jim/Library/jruby-1.3.1/bin/rake:19

So based on the stack trace, it appears that somewhere some JRuby java
integration code is running in the context of Rake that is using the
“import” method to import a java class, and that’s colliding with
Rake’s own “import”. By chance do you have any code like that lying
around? If you do, try changing it to use “java_import”.

Now that I realized that this is the problem, I’m not sure what
Warbler has to do with it since Warbler doesn’t use import anywhere.

/Nick

YES! Thank you. I had one import of a java class and changing it to
java_import saved it!


Jim G.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email