Rake db:migrate failes with java.lang.NoSuchMethodError
-------------------------------------------------------
Key: JRUBY-1698
URL: http://jira.codehaus.org/browse/JRUBY-1698
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: JRuby 1.1b1
Environment: Windows XP Pro SP2
Java 1.6.0_03
AMD X2 6000+, 2GB RAM
JRuby from trunk (5203)
Rails 2.0.1
activerecord-jdbc-adapter 0.6
activerecord-jdbcmysql-adapter 0.6
jruby-openssl 0.0.5
gem 0.9.4
Reporter: William Gannon
Priority: Blocker
under JRUBY_HOME\lib is mysql-connector-java-5.1.5-bin.jar
database.yml:
development:
host: localhost
adapter: jdbcmysql
database: rails_development
username: xxxxx
password: yyyyy
Migration file contains:
class CreatePosts < ActiveRecord::Migration
def self.up
create_table :posts do |t|
t.string :title
t.text :body
t.boolean :published
t.timestamps
end
end
def self.down
drop_table :posts
end
end
Ran jruby -S rake db:migrate and get the following:
(in C:/wwwroot/test/t4)
Exception in thread "main" java.lang.NoSuchMethodError:
org.jruby.runtime.builtin.IRubyObject.setInstanceVariable(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
at
JdbcAdapterInternalService.set_connection(JdbcAdapterInternalService.java:234)
at JdbcAdapterInternalServiceInvoker$set_connection_FS1.call(Unknown
Source)
at
org.jruby.runtime.callback.FastInvocationCallback.execute(FastInvocationCallback.java:55)
at
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:70)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1103)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:76)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1752)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:475)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1517)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:443)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at org.jruby.RubyClass.invoke(RubyClass.java:239)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:347)
at org.jruby.RubyObject.callMethod(RubyObject.java:468)
at org.jruby.RubyClass.newInstance(RubyClass.java:248)
at org.jruby.RubyClassInvoker$newInstance_method_0_0.call(Unknown
Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1249)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:379)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1103)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
at org.jruby.RubyObject.send(RubyObject.java:1159)
at org.jruby.RubyObjectInvoker$send_method_1_0.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at
org.jruby.evaluator.ASTInterpreter.setupArgs(ASTInterpreter.java:2158)
at
org.jruby.evaluator.ASTInterpreter.attrAssignNode(ASTInterpreter.java:573)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:285)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.evaluator.ASTInterpreter.attrAssignNode(ASTInterpreter.java:590)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:285)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:76)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1752)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:475)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1249)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:379)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:644)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:129)
at org.jruby.runtime.Block.call(Block.java:106)
at org.jruby.RubyProc.call(RubyProc.java:193)
at org.jruby.RubyProc.call(RubyProc.java:177)
at org.jruby.RubyProcInvoker$call_method_0_0.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:144)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.dAsgnNode(ASTInterpreter.java:851)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:320)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:141)
at org.jruby.runtime.Block.yield(Block.java:110)
at org.jruby.RubyArray.each(RubyArray.java:1181)
at org.jruby.RubyArrayInvoker$each_method_0_0.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:144)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:658)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:144)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:76)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1752)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:475)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:141)
at org.jruby.runtime.Block.yield(Block.java:110)
at
org.jruby.libraries.ThreadLibrary$Mutex.synchronize(ThreadLibrary.java:140)
at
org.jruby.libraries.ThreadLibrary$MutexInvoker$synchronize_0.call(Unknown
Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:67)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMethod.java:73)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:658)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:141)
at org.jruby.runtime.Block.yield(Block.java:110)
at org.jruby.RubyArray.each(RubyArray.java:1181)
at org.jruby.RubyArrayInvoker$each_method_0_0.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:658)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
at org.jruby.runtime.Block.yield(Block.java:115)
at
org.jruby.evaluator.ASTInterpreter.yieldNode(ASTInterpreter.java:1821)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:484)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1517)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:443)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1108)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:76)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1752)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:475)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:176)
at org.jruby.runtime.Block.yield(Block.java:115)
at
org.jruby.evaluator.ASTInterpreter.yieldNode(ASTInterpreter.java:1821)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:484)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1517)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:443)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1108)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:346)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:147)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:653)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:300)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:627)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1619)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:449)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.Ruby.loadFile(Ruby.java:1794)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:52)
at org.jruby.runtime.load.LoadService.load(LoadService.java:214)
at org.jruby.RubyKernel.load(RubyKernel.java:679)
at org.jruby.RubyKernelInvoker$load_method_1_0.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:158)
at
org.jruby.runtime.CallSite$ArgumentBoxingCallSite.call(CallSite.java:103)
at C:.JRuby.HEAD.bin.rake.__file__(C:\JRuby\HEAD\bin\rake:16)
at C:.JRuby.HEAD.bin.rake.load(C:\JRuby\HEAD\bin\rake)
at org.jruby.Ruby.runScript(Ruby.java:574)
at org.jruby.Ruby.runNormally(Ruby.java:504)
at org.jruby.Ruby.runFromMain(Ruby.java:427)
at org.jruby.Main.runInterpreter(Main.java:214)
at org.jruby.Main.runInterpreter(Main.java:170)
at org.jruby.Main.run(Main.java:119)
at org.jruby.Main.run(Main.java:93)
at org.jruby.Main.main(Main.java:84)
--
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