Skip to content

Instantly share code, notes, and snippets.

@bradrobertson
Created November 23, 2010 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradrobertson/712083 to your computer and use it in GitHub Desktop.
Save bradrobertson/712083 to your computer and use it in GitHub Desktop.
this works for trinidad server but not with migrations (stack trace below)
development:
adapter: jdbc
jndi: java:/comp/env/jdbc/VeloUl
database: velo_ultralite_development
username: root
password:
timeout: 5000
# When running rake db:migrate, I get the following:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
undefined method `close' for nil:NilClass
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activesupport-2.3.10/lib/active_support/whiny_nil.rb:52:in `method_missing'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-jdbc-adapter-1.0.2-java/lib/arjdbc/jdbc/adapter.rb:78:in `adapter_spec'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-jdbc-adapter-1.0.2-java/lib/arjdbc/jdbc/adapter.rb:57:in `times'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-jdbc-adapter-1.0.2-java/lib/arjdbc/jdbc/adapter.rb:57:in `adapter_spec'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-jdbc-adapter-1.0.2-java/lib/arjdbc/jdbc/adapter.rb:28:in `initialize'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-jdbc-adapter-1.0.2-java/lib/arjdbc/jdbc/connection_methods.rb:6:in `new'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-jdbc-adapter-1.0.2-java/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
/Users/bradrobertson/.rvm/rubies/jruby-1.5.3/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/migration.rb:440:in `initialize'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/migration.rb:401:in `new'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/migration.rb:401:in `up'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/activerecord-2.3.10/lib/active_record/migration.rb:383:in `migrate'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rails-2.3.10/lib/tasks/databases.rake:112
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/Users/bradrobertson/.rvm/rubies/jruby-1.5.3/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/bin/rake:31
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/gems/rake-0.8.7/bin/rake:19:in `load'
/Users/bradrobertson/.rvm/gems/jruby-1.5.3@jdbc/bin/rake:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment