Bugs item #24444, was opened at 2009-03-10 15:41
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=24444&group_id=2014
Category: AR-JDBC
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Unable to run db:migrate in Derby database
Initial Comment:
Context:
java 6
JavaDb/Derby shipped with the java 6
jruby-1.2.0RC2
gems:
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
ActiveRecord-JDBC (0.5)
activeresource (2.2.2)
activesupport (2.2.2)
BlueCloth (1.0.0)
facets (2.5.1)
gem_plugin (0.2.3)
jruby-openssl (0.3)
mongrel (1.1.5)
rails (2.2.2)
rake (0.8.4)
RedCloth (4.1.9)
rspec (1.1.12)
sources (0.0.1)
Migrate script:20090310184809_create_product_types.rb
class CreateProductTypes < ActiveRecord::Migration
class ProductType < ActiveRecord::Base; end
def self.up
create_table :product_types do |t|
t.column :name, :string
end
data
end
def self.data
ProductType.create :name => 'Book'
ProductType.create :name => 'Music'
ProductType.create :name => 'Movie'
end
def self.down
drop_table :product_types
end
end
Command to run: jruby -S rake db:migrate
Error message:
JdbcAdapterInternalService.java:122:in `set_connection':
java.lang.NoSuchMethodError:
org.jruby.runtime.builtin.IRubyObject.setInstanceVariable(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
from null:-1:in `call'
from FastInvocationCallback.java:55:in `execute'
from SimpleCallbackMethod.java:67:in `call'
from DynamicMethod.java:243:in `call'
from DynamicMethod.java:152:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:112:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from VCallNode.java:85:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:114:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RescueNode.java:225:in `executeBody'
from RescueNode.java:147:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from InterpretedMethod.java:182:in `call'
from DefaultMethod.java:153:in `call'
from CachingCallSite.java:283:in `cacheAndCall'
from CachingCallSite.java:121:in `callBlock'
from CachingCallSite.java:126:in `call'
from RubyClass.java:555:in `call'
from DynamicMethod.java:152:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:112:in `call'
from CallOneArgNode.java:57:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:182:in `call'
from DefaultMethod.java:153:in `call'
from RubyClass.java:372:in `finvoke'
from RubyObject.java:1403:in `send'
from org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen:-1:in
`call'
from JavaMethod.java:276:in `call'
from CachingCallSite.java:293:in `cacheAndCall'
from CachingCallSite.java:152:in `call'
from CallTwoArgNode.java:59:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from VCallNode.java:85:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from VCallNode.java:85:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:112:in `interpret'
from IfNode.java:114:in `interpret'
from DAsgnNode.java:110:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from RubyKernel.java:1084:in `loop'
from org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop.gen:-1:in
`call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:96:in `callIter'
from FCallNoArgBlockNode.java:32:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from YieldNode.java:115:in `interpret'
from NewlineNode.java:104:in `interpret'
from EnsureNode.java:96:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:144:in `call'
from DefaultMethod.java:135:in `call'
from AliasMethod.java:81:in `call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:86:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from VCallNode.java:85:in `interpret'
from AttrAssignTwoArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:114:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from CallNoArgNode.java:61:in `interpret'
from AndNode.java:94:in `interpret'
from NewlineNode.java:104:in `interpret'
from OrNode.java:94:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:163:in `call'
from DefaultMethod.java:144:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:112:in `call'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from VCallNode.java:85:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from CallNoArgNode.java:61:in `interpret'
from CallNoArgNode.java:61:in `interpret'
from IfNode.java:106:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:259:in `call'
from DefaultMethod.java:189:in `call'
from CachingCallSite.java:323:in `cacheAndCall'
from CachingCallSite.java:201:in `callBlock'
from CachingCallSite.java:206:in `call'
from RubyClass.java:567:in `call'
from DynamicMethod.java:187:in `call'
from CachingCallSite.java:313:in `cacheAndCall'
from CachingCallSite.java:192:in `call'
from CallThreeArgNode.java:61:in `interpret'
from CallNoArgNode.java:61:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:201:in `call'
from DefaultMethod.java:162:in `call'
from CachingCallSite.java:293:in `cacheAndCall'
from CachingCallSite.java:152:in `call'
from FCallTwoArgNode.java:38:in `interpret'
from NewlineNode.java:104:in `interpret'
from WhenOneArgNode.java:27:in `whenNoTest'
from WhenOneArgNode.java:45:in `when'
from CaseNode.java:128:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:201:in `call'
from DefaultMethod.java:162:in `call'
from CachingCallSite.java:293:in `cacheAndCall'
from CachingCallSite.java:152:in `call'
from CallTwoArgNode.java:59:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:180:in `yield'
from BlockBody.java:65:in `call'
from BlockBody.java:71:in `call'
from Block.java:80:in `call'
from RubyProc.java:204:in `call'
from RubyProc.java:187:in `call'
from org/jruby/RubyProc$i_method_0_0$RUBYFRAMEDINVOKER$call.gen:-1:in
`call'
from JavaMethod.java:624:in `call'
from DynamicMethod.java:169:in `call'
from CachingCallSite.java:293:in `cacheAndCall'
from CachingCallSite.java:152:in `call'
from CallTwoArgNode.java:59:in `interpret'
from NewlineNode.java:104:in `interpret'
from CaseNode.java:133:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from RubyArray.java:1562:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in
`call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:86:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:163:in `call'
from DefaultMethod.java:144:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:112:in `call'
from FCallOneArgNode.java:36:in `interpret'
from IfNode.java:112:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from YieldNode.java:115:in `interpret'
from NewlineNode.java:104:in `interpret'
from EnsureNode.java:96:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:144:in `call'
from DefaultMethod.java:135:in `call'
from AliasMethod.java:81:in `call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:86:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:201:in `call'
from DefaultMethod.java:162:in `call'
from CachingCallSite.java:293:in `cacheAndCall'
from CachingCallSite.java:152:in `call'
from FCallTwoArgNode.java:38:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from CallSpecialArgNode.java:65:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:163:in `call'
from DefaultMethod.java:144:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:112:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from RubyArray.java:1562:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in
`call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:86:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:114:in `interpret'
from IfNode.java:114:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from YieldNode.java:115:in `interpret'
from NewlineNode.java:104:in `interpret'
from RescueNode.java:225:in `executeBody'
from RescueNode.java:147:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:144:in `call'
from DefaultMethod.java:135:in `call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:96:in `callIter'
from FCallNoArgBlockNode.java:32:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from VCallNode.java:85:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:192:in `evalBlockBody'
from InterpretedBlock.java:143:in `yield'
from Block.java:100:in `yield'
from YieldNode.java:115:in `interpret'
from NewlineNode.java:104:in `interpret'
from RescueNode.java:225:in `executeBody'
from RescueNode.java:147:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:144:in `call'
from DefaultMethod.java:135:in `call'
from CachingCallSite.java:263:in `cacheAndCall'
from CachingCallSite.java:81:in `callBlock'
from CachingCallSite.java:96:in `callIter'
from FCallNoArgBlockNode.java:32:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:125:in `call'
from DefaultMethod.java:126:in `call'
from CachingCallSite.java:253:in `cacheAndCall'
from CachingCallSite.java:72:in `call'
from CallNoArgNode.java:61:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RootNode.java:129:in `interpret'
from Ruby.java:2247:in `loadFile'
from ExternalScript.java:58:in `load'
from LoadService.java:250:in `load'
from RubyKernel.java:851:in `load'
from org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen:-1:in
`call'
from DynamicMethod.java:243:in `call'
from DynamicMethod.java:152:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:112:in `call'
from rake:19:in `__file__'
from rake:-1:in `load'
from Ruby.java:577:in `runScript'
from Ruby.java:480:in `runNormally'
from Ruby.java:354:in `runFromMain'
from Main.java:229:in `run'
from Main.java:110:in `run'
from Main.java:94:in `main'
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=24444&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel