Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "undefined method `accept' for nil:NilClass" after upgrading to rails 3.2 #4632

Closed
shyam-habarakada opened this issue Jan 23, 2012 · 29 comments

Comments

@shyam-habarakada
Copy link

@shyam-habarakada shyam-habarakada commented Jan 23, 2012

Getting the error undefined method accept' for nil:NilClass` in my controller. This is on the development environment running on OSX with mysql. Below is the full stack trace and also my bundle/gem setup information.

$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]

RAILS FRAMEWORK TRACE

activerecord (3.2.0) lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
activerecord (3.2.0) lib/active_record/querying.rb:38:in `block in find_by_sql'
activerecord (3.2.0) lib/active_record/explain.rb:38:in `logging_query_plan'
activerecord (3.2.0) lib/active_record/querying.rb:37:in `find_by_sql'
activerecord (3.2.0) lib/active_record/relation.rb:170:in `exec_queries'
activerecord (3.2.0) lib/active_record/relation.rb:159:in `block in to_a'
activerecord (3.2.0) lib/active_record/explain.rb:31:in `logging_query_plan'
activerecord (3.2.0) lib/active_record/relation.rb:158:in `to_a'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:377:in `find_first'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:122:in `first'
activerecord (3.2.0) lib/active_record/querying.rb:5:in `first'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `new'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:30:in `call'
journey (1.0.0) lib/journey/router.rb:60:in `block in call'
journey (1.0.0) lib/journey/router.rb:48:in `each'
journey (1.0.0) lib/journey/router.rb:48:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:570:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/cookies.rb:338:in `call'
activerecord (3.2.0) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `_run__359795530058627940__call__1911828153620681267__callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.0) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.0) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.0) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.2.0) lib/rails/engine.rb:479:in `call'
railties (3.2.0) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.0) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

Gemfile

source 'http://rubygems.org'

gem 'rails', '3.2.0'
gem 'mysql2', '0.2.6'

# Gems used only for assets and not required in production by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer'

  gem 'uglifier', '>= 1.0.3'
end

# Deploy with Capistrano
# gem 'capistrano'

gem 'rabl'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :development, :test do
  gem 'annotate'
  gem 'simplecov'
end

BUNDLE show

$ bundle show
Gems included by the bundle:
  * actionmailer (3.2.0)
  * actionpack (3.2.0)
  * activemodel (3.2.0)
  * activerecord (3.2.0)
  * activeresource (3.2.0)
  * activesupport (3.2.0)
  * annotate (2.4.0)
  * arel (3.0.0)
  * builder (3.0.0)
  * bundler (1.0.21)
  * coffee-rails (3.2.1)
  * coffee-script (2.2.0)
  * coffee-script-source (1.2.0)
  * erubis (2.7.0)
  * execjs (1.3.0)
  * hike (1.2.1)
  * i18n (0.6.0)
  * journey (1.0.0)
  * json (1.6.5)
  * mail (2.4.1)
  * mime-types (1.17.2)
  * multi_json (1.0.4)
  * mysql2 (0.2.6)
  * polyglot (0.3.3)
  * rabl (0.5.3)
  * rack (1.4.1)
  * rack-cache (1.1)
  * rack-ssl (1.3.2)
  * rack-test (0.6.1)
  * rails (3.2.0)
  * railties (3.2.0)
  * rake (0.9.2.2)
  * rdoc (3.12)
  * sass (3.1.12)
  * sass-rails (3.2.3)
  * simplecov (0.5.4)
  * simplecov-html (0.5.3)
  * sprockets (2.1.2)
  * thor (0.14.6)
  * tilt (1.3.3)
  * treetop (1.4.10)
  * tzinfo (0.3.31)
  * uglifier (1.2.2)
@shyam-habarakada

This comment has been minimized.

Copy link
Author

@shyam-habarakada shyam-habarakada commented Jan 23, 2012

More people running into the issue reported here http://www.ruby-forum.com/topic/3475933#1042208

@shyam-habarakada

This comment has been minimized.

Copy link
Author

@shyam-habarakada shyam-habarakada commented Jan 23, 2012

After reviewing this with davicelis on #rubyonrails IRC, I removed the specific version on the mysql gem. Updating bundle after this pulled in mysql2 (0.3.11) with native extensions, and the issue is gone now. So this is an issue with the older mysql2 gem I had.

@jodosha

This comment has been minimized.

Copy link

@jodosha jodosha commented Jan 24, 2012

I've got the same error with our Sybase. Now the point is that a bunch of people with different adapters are experiencing this problem. So I guess, it's AR.

@rafaelfranca

This comment has been minimized.

Copy link
Member

@rafaelfranca rafaelfranca commented Jan 24, 2012

I don't think that this is a Rails issue. Adapters maintainers need to update their code

@jodosha

This comment has been minimized.

Copy link

@jodosha jodosha commented Jan 25, 2012

@rafaelfranca after a debugging session I agree. The point is: if all the adapters suddenly fail, AR code isn't retro-compatible, and this is always a mistake for a minor release.

@mdemare

This comment has been minimized.

Copy link

@mdemare mdemare commented Jan 26, 2012

I have this issue with the activerecord-jdbc-adapter.

1 similar comment
@jingweno

This comment has been minimized.

Copy link
Contributor

@jingweno jingweno commented Jan 26, 2012

I have this issue with the activerecord-jdbc-adapter.

@vishalzinjade

This comment has been minimized.

Copy link

@vishalzinjade vishalzinjade commented Jan 26, 2012

Hi shyam,

I am facing same issue 'rake aborted! undefined method `accept' for nil:NilClass'

The details are as follows:

$>ruby --version
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]

RAILS FRAMEWORK TRACE:

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
rake aborted!
undefined method accept' for nil:NilClass C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:7:into_sql'
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:36:in select_values' C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:571:inget_all_versions'
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:729:in migrated' C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:652:incurrent_version'
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:669:in migrate' org/jruby/RubyEnumerable.java:552:indetect'
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:669:in migrate' C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:554:inup'
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/migration.rb:535:in migrate' C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-3.2.0/lib/active_record/railties/databases.rake:153:in(root)'
org/jruby/RubyProc.java:270:in call' org/jruby/RubyProc.java:220:incall'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in execute' org/jruby/RubyArray.java:1612:ineach'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in execute' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:ininvoke_with_call_chain'
C:/jruby-1.6.5.1/lib/ruby/1.8/monitor.rb:191:in mon_synchronize' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in invoke' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:ininvoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in top_level' org/jruby/RubyArray.java:1612:ineach'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in top_level' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:inrun'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33:in (root)' org/jruby/RubyKernel.java:1063:inload'
C:\jruby-1.6.5.1\bin\rake:19:in `(root)'
Tasks: TOP => db:migrate

GEMFILE:

source 'https://rubygems.org'

gem 'rails', '3.2.0'

gem 'activerecord-jdbcmysql-adapter'

gem 'jruby-openssl'
gem 'json'

group :assets do
gem 'sass-rails', '> 3.2.3'
gem 'coffee-rails', '
> 3.2.1'

See https://github.com/sstephenson/execjs#readme for more supported runtimes

gem 'therubyrhino'

gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

DATABASE.YML:

development:
adapter: jdbcmysql
database: LOGGGG_development
username: root
password: root
host: localhost

test:
adapter: jdbcmysql
database: LOGGGG_test
username: root
password: root
host: localhost

production:
adapter: jdbcmysql
database: LOGGGG_production
username: root
password: root
host: localhost

GEM LIST:

$>gem list

*** LOCAL GEMS ***

actionmailer (3.2.0, 3.2.0.rc2)
actionpack (3.2.0, 3.2.0.rc2)
activemodel (3.2.0, 3.2.0.rc2)
activerecord (3.2.0, 3.2.0.rc2)
activerecord-jdbc-adapter (1.2.1)
activerecord-jdbcmysql-adapter (1.2.1)
activeresource (3.2.0, 3.2.0.rc2)
activesupport (3.2.0, 3.2.0.rc2)
adapter (0.5.2)
arel (3.0.0)
bouncy-castle-java (1.5.0146.1)
builder (3.0.0)
bundler (1.0.21)
cgi_multipart_eof_fix (2.5.0)
coffee-rails (3.2.1)
coffee-script (2.2.0)
coffee-script-source (1.2.0)
cucumber (1.1.4)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.3.0)
gem_plugin (0.2.3)
gherkin (2.7.4 x86-mingw32)
hike (1.2.1)
i18n (0.6.0)
jdbc-mysql (5.1.13)
journey (1.0.0)
jquery-rails (2.0.0)
jruby-openssl (0.7.5)
json (1.6.5)
mail (2.4.1, 2.3.0)
mime-types (1.17.2)
mongrel (1.1.5 x86-mingw32)
multi_json (1.0.4)
mysql2 (0.3.11 x86-mingw32)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.0, 3.2.0.rc2)
railties (3.2.0, 3.2.0.rc2)
rake (0.9.2.2)
rdoc (3.12)
rspec (2.8.0)
rspec-core (2.8.0)
rspec-expectations (2.8.0)
rspec-mocks (2.8.0)
rubygems-update (1.8.15)
sass (3.1.12)
sass-rails (3.2.3)
slop (3.0.0, 2.4.3)
sprockets (2.3.0, 2.1.2)
term-ansicolor (1.0.7)
therubyrhino (1.73.1)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
uglifier (1.2.2)
update (0.2.4, 0.2.0)
win32-api (1.4.8 x86-mingw32)
win32-process (0.6.5)
windows-api (0.4.0)
windows-pr (1.2.1)
xml-simple (1.1.1)

****what should I modify in my gemfile, I am facing same isse from 2 days and now I am blocked on this issue:

@catalanska

This comment has been minimized.

Copy link

@catalanska catalanska commented Jan 26, 2012

I am also having this issue with the activerecord-jdbc-adapter.

@gautamkpai

This comment has been minimized.

Copy link

@gautamkpai gautamkpai commented Jan 26, 2012

facing the same issue with activerecord-jdbc-adapter

jruby version 1.6.5.1
rails version 3.2

@tamersalama

This comment has been minimized.

Copy link

@tamersalama tamersalama commented Jan 26, 2012

Same here - activerecord-oracle_enhanced-adapter

JRuby 1.6.3
Rails 3.2

For the mysql, postgresql, sqlite adapters; It looks like the @visitor variable is set with the corresponding visitor (during adapter initialization)

In oracle_enhanced_adapter.rb initialize I set the @visitor as follows:

@visitor = Arel::Visitors::Oracle.new self #seems to work

Looks like an adapter-related issues

@tamersalama

This comment has been minimized.

Copy link

@tamersalama tamersalama commented Jan 26, 2012

For oracle_enhanced_adapter (1.4.0) - This pull seems to resolve it.

The pull hasn't made it to new release yet.

@atambo

This comment has been minimized.

Copy link
Contributor

@atambo atambo commented Jan 26, 2012

For activerecord-jdbc-adapter there is a pull request (jruby/activerecord-jdbc-adapter#156) that will fix the issue when accepted.

@joegoggins

This comment has been minimized.

Copy link
Contributor

@joegoggins joegoggins commented Jan 26, 2012

on rake db:migrate I get the exact same error message.

I'm running:

  • jruby version 1.6.6.dev-head
  • rails 3.2
  • activerecord-jdbcmysql-adapter
@vishalzinjade

This comment has been minimized.

Copy link

@vishalzinjade vishalzinjade commented Jan 27, 2012

mysqljdbc_adapter.rb contains oly following line inside it:

require 'arjdbc/mysql'

I am using following versions:

Ruby-1.8.7
Rails-3.2.0
Gem-1.8.15
Glassfish-3.x
Ntebeans-7.0.1
Windows-7

Is all these versions are compatibe. Or I have to change any of these versions.

Also I got the following error when I run one simple app:

SEVERE: There is no installed container capable of handling this application Myapp:

(I am tryong to run the application which is given on site: http://netbeans.org/kb/68/ruby/rails-quickstart.html )

Please Help me; Or at least give me simple ruby on rails appn which run on Netbeans: I just want to see web-page displaying simple html table' ( No need to take values fron db: I just want to see web-page having simple html tags)

Thanks,
vishal

@cmrichards

This comment has been minimized.

Copy link

@cmrichards cmrichards commented Jan 27, 2012

I get the same problem with

Ruby 1.8.7
Rails 3.2.1
activerecord-oracle_enhanced-adapter 1.4.0

It worked with Rails 3.1

@jodosha

This comment has been minimized.

Copy link

@jodosha jodosha commented Jan 27, 2012

We've tried with our Sybase adapter the patch that @tamersalama has proposed, and it works.

@gautamkpai

This comment has been minimized.

Copy link

@gautamkpai gautamkpai commented Jan 28, 2012

jruby/activerecord-jdbc-adapter#156 seems to have fixed the issue

updated to activerecord-jdbc-adapter version 1.2.2

Works fine for me now

jruby 1.6.5.1
rails 1.2
activerecord-jdbc-adapter 1.2.2

@vishalzinjade

This comment has been minimized.

Copy link

@vishalzinjade vishalzinjade commented Jan 30, 2012

Hi,

The problem get solved.

copy libmysql.dll from C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt and paste it into C:\Ruby187\bin

Thanks

@josevalim josevalim closed this Feb 2, 2012
@amitkumarpatel

This comment has been minimized.

Copy link

@amitkumarpatel amitkumarpatel commented Feb 4, 2012

       hi,

vishalzinjade thank you sir ,
rails 3.2 is working fine with mysql2 with the given connector .
copy libmysql.dll from C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt and paste it into C:\Ruby187\bin

Thanks

@amitkumarpatel

This comment has been minimized.

Copy link

@amitkumarpatel amitkumarpatel commented Feb 6, 2012

     but if i  want to  install the gem mysql  it is not working  it  is showing some bug 

[2012-02-06 10:54:53] INFO going to shutdown ...
[2012-02-06 10:54:53] INFO WEBrick::HTTPServer#start done.
Exiting
script/rails: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

-- control frame ----------

c:0001 p:0000 s:0002 b:0002 l:0019c4 d:0019c4 TOP

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

@dmitry

This comment has been minimized.

Copy link
Contributor

@dmitry dmitry commented Feb 29, 2012

To resolve, just use bundle update mysql2 or even bundle update

@dougc84

This comment has been minimized.

Copy link

@dougc84 dougc84 commented Mar 11, 2012

I was just experiencing the same error. Basically, what was happening is the params[:id] attribute is being overwritten because a file was not found, so when I was looking up User.find(params[:id]), :id was returning "favicon." In my case, in my template file, the favicons were not pointing to the correct location.

It's worth checking that additionally in the future; however, I don't believe rails should be rewriting the ID values returned to the controller.

@shyam-habarakada

This comment has been minimized.

Copy link
Author

@shyam-habarakada shyam-habarakada commented Mar 11, 2012

@dougc84 The error message seen on this issue can appear on a number of different error scenarios. The stack trace is what describes the actual issue. If you think rails is incorrectly changing a value in the params collection, that could be a separate bug, so open an issue with more details.

@aliirz

This comment has been minimized.

Copy link

@aliirz aliirz commented Aug 12, 2012

I can also confirm that updating mysql2 gem to 0.3.11 fixes this issue with rails 3.2.x

@dei79

This comment has been minimized.

Copy link

@dei79 dei79 commented Aug 14, 2012

I did the same, updated to 0.3.11 but the issue is not fixed. I got the error on my development environment OSX and the staging environment on Ubuntu 12.04 LTS. My output when I'm calling: bundle exec rake db:migrate --trace

-->
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
rake aborted!
undefined method accept' for nil:NilClass /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:7:into_sql'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:38:in select_values' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:587:inget_all_versions'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:745:in migrated' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:668:incurrent_version'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:685:in block in migrate' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:685:ineach'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:685:in detect' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:685:inmigrate'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:570:in up' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/migration.rb:551:inmigrate'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/railties/databases.rake:153:in block (2 levels) in <top (required)>' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:205:incall'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:205:in block in execute' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:200:ineach'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:200:in execute' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:158:inblock in invoke_with_call_chain'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:151:ininvoke_with_call_chain'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/task.rb:144:in invoke' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:116:ininvoke_task'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in block (2 levels) in top_level' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:ineach'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:94:in block in top_level' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:instandard_exception_handling'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:88:in top_level' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:66:inblock in run'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:in standard_exception_handling' /Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:63:inrun'
/Users/dei79/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:32:in <top (required)>' /Users/dei79/.rbenv/versions/1.9.3-p194/bin/rake:23:inload'
/Users/dei79/.rbenv/versions/1.9.3-p194/bin/rake:23:in `

'
Tasks: TOP => db:migrate
<--

and the list of gems I'm using

Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.6)
Using builder (3.0.0)
Using activemodel (3.2.6)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.6)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.6)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.6)
Using mysql2 (0.3.11)
Using activerecord-mysql2-adapter (0.0.3)
Using activeresource (3.2.6)
Using addressable (2.3.2)
Using xml-simple (1.1.1)
Using aws-s3 (0.6.3)
Using multi_xml (0.5.1)
Using httparty (0.8.3)
Using json (1.7.4)
Using nokogiri (1.5.5)
Using uuidtools (2.1.3)
Using aws-sdk (1.6.3)
Using bcrypt-ruby (3.0.1)
Using fastercsv (1.5.5)
Using haml (3.1.7)
Using highline (1.6.13)
Using json_pure (1.7.4)
Using sexp_processor (3.2.0)
Using ruby_parser (2.3.1)
Using ruby2ruby (1.3.1)
Using sass (3.2.0)
Using terminal-table (1.4.5)
Using brakeman (1.7.1)
Using net-ssh (2.5.2)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.1.0)
Using capistrano (2.12.0)
Using capistrano-ext (1.2.1)
Using ffi (1.1.5)
Using childprocess (0.3.5)
Using libwebsocket (0.1.5)
Using rubyzip (0.9.9)
Using selenium-webdriver (2.25.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using bundler (1.1.4)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.6)
Using rails (3.2.6)
Using validates_email_format_of (1.5.3)
Using certify (0.0.1) from git://github.com/dei79/certify.git (at master)
Using chunky_png (1.2.6)
Using cocaine (0.2.1)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using coffee-rails (3.2.2)
Using fssm (0.2.9)
Using compass (0.12.2)
Using compass-rails (1.0.3)
Using country_select (1.0.1)
Using css_parser (1.2.6)
Using database_cleaner (0.8.0)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.1.2)
Using devise-async (0.3.0)
Using devise_invitable (1.0.3)
Using diff-lcs (1.1.3)
Using eventmachine (0.12.10)
Using factory_girl (4.0.0)
Using factory_girl_rails (4.0.0)
Using faye-websocket (0.4.6)
Using god (0.12.1)
Using gravatar-ultimate (1.0.3)
Using rb-fchange (0.0.5)
Using rb-fsevent (0.9.1)
Using rb-inotify (0.8.8)
Using listen (0.4.7)
Using guard (1.3.1)
Using guard-rspec (1.2.1)
Using htmlentities (4.3.1)
Using http_parser.rb (0.5.3)
Using jquery-rails (2.0.2)
Using jquery-ui-rails (1.1.0)
Using jquery-modal-rails (0.0.1) from git://github.com/dei79/jquery-modal-rails.git (at master)
Using jquery_mobile_rails (1.1.1.1)
Using launchy (2.1.2)
Using libv8 (3.3.10.4)
Using mobylette (3.1)
Using mysql (2.8.1)
Using newrelic_rpm (3.4.1)
Using open4 (1.3.0)
Using openssl-extensions (1.2.0)
Using paperclip (3.1.4)
Using plist (3.1.0)
Using poltergeist (0.7.0)
Using premailer (1.7.3)
Using premailer-rails3 (1.1.0) from git://github.com/dei79/premailer-rails3.git (at master)
Using rack-protection (1.2.0)
Using rapns (1.0.7) from git://github.com/dei79/rapns.git (at rapns_old_multi_cert)
Using redis (3.0.1)
Using redis-namespace (1.2.1)
Using sinatra (1.3.2)
Using vegas (0.1.11)
Using resque (1.21.0)
Using resque-ensure-connected (0.2.0)
Using rufus-scheduler (2.0.17)
Using resque-scheduler (2.0.0)
Using rspec-core (2.11.1)
Using rspec-expectations (2.11.2)
Using rspec-mocks (2.11.2)
Using rspec (2.11.0)
Using rspec-rails (2.11.0)
Using sass-rails (3.2.5)
Using simple_form (2.0.2)
Using sqlite3 (1.3.6)
Using test-unit (2.5.1)
Using therubyracer (0.10.2)
Using uglifier (1.2.7)
Using will_paginate (3.0.3)

@dei79

This comment has been minimized.

Copy link

@dei79 dei79 commented Aug 14, 2012

It's gone away when I removing that from my gemfile

gem 'activerecord-mysql2-adapter'

@JiaFeiX

This comment has been minimized.

Copy link

@JiaFeiX JiaFeiX commented Sep 4, 2012

remove that from my gemfile!!

gem 'activerecord-mysql2-adapter'

@bash123

This comment has been minimized.

Copy link

@bash123 bash123 commented Oct 1, 2012

I confirm removing => gem 'activerecord-mysql2-adapter' <= from my Gemfile fixed the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.