Db migration error

thanks to you all i was able to connect to the db at last but the driver
gives me an error i cant understand. It looks like this.

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
The driver encountered an error:
org.jruby.runtime.builtin.IRubyObject.setInstan
ceVariable(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/
runtime/builtin/IRubyObject;
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/ActiveRecord-JDBC-0.5/lib/active_record/co
nnection_adapters/jdbc_adapter.rb:265:in initialize' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/ActiveRecord-JDBC-0.5/lib/active_record/co nnection_adapters/jdbc_adapter.rb:41:innew’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/ActiveRecord-JDBC-0.5/lib/active_record/co
nnection_adapters/jdbc_adapter.rb:41:in jdbc_connection' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne ction_adapters/abstract/connection_pool.rb:223:innew_connection’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne
ction_adapters/abstract/connection_pool.rb:245:in
checkout_new_connection' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne ction_adapters/abstract/connection_pool.rb:188:incheckout’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne
ction_adapters/abstract/connection_pool.rb:184:in loop' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne ction_adapters/abstract/connection_pool.rb:184:incheckout’
c:/jruby-1.5.1/lib/ruby/1.8/monitor.rb:191:in mon_synchronize' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne ction_adapters/abstract/connection_pool.rb:183:incheckout’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne
ction_adapters/abstract/connection_pool.rb:98:in connection' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne ction_adapters/abstract/connection_pool.rb:326:inretrieve_connection’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne
ction_adapters/abstract/connection_specification.rb:123:in
`retrieve_connection’

c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/conne
ction_adapters/abstract/connection_specification.rb:115:in connection' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migra tion.rb:440:ininitialize’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migra
tion.rb:401:in new' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migra tion.rb:401:inup’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migra
tion.rb:383:in migrate' C:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/databases.rake:112 c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
execute' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
execute' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with
_call_chain’
c:/jruby-1.5.1/lib/ruby/1.8/monitor.rb:191:in mon_synchronize' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with
_call_chain’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
invoke' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_tas
k’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level’

c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level’

c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_e xception_handling' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level’

c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run' c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_e
xception_handling’
c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run' C:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 C:/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19:inload’
c:/jruby-1.5.1/bin/rake:19

pleas help.
Thank you in advance

On Wed, Aug 11, 2010 at 12:38 AM, Ahmed Mr [email protected] wrote:

thanks to you all i was able to connect to the db at last but the driver
gives me an error i cant understand. It looks like this.

c:/jruby-1.5.1/lib/ruby/gems/1.8/gems/ActiveRecord-JDBC-0.5/lib/active_record/co
nnection_adapters/jdbc_adapter.rb:265:in `initialize’

What I can’t understand is why you still haven’t updated the adapter
gem. From the history
http://github.com/nicksieger/activerecord-jdbc-adapter/blob/master/History.txt:

== 0.5

  • Release coincides with JRuby 1.0.1 release

You’re wasting your (and our) time trying to run something so out of
date.


Hassan S. ------------------------ [email protected]
twitter: @hassan


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs