Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- environment.rb:
- require File.join(File.dirname(__FILE__), 'boot')
- if RUBY_PLATFORM =~ /java/
- require 'rubygems'
- gem 'ActiveRecord-JDBC'
- require 'jdbc_adapter'
- end
- production.log:
- TypeError (can't convert nil into String):
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in `real_connect'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in `connect'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:152:in `initialize'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `new'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `mysql_connection'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `connection='
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in `connection='
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in `retrieve_connection'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in `columns'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in `column_names'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:796:in `column_methods_hash'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1261:in `all_attributes_exists?'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1197:in `all?'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `each'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all?'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all_attributes_exists?'
- /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1197:in `method_missing'
- /app/models/user.rb:18:in `authenticate'
- production:
- adapter: mysql
- database: testas_production
- username: xxxxx
- password: xxxxxx
Add Comment
Please, Sign In to add comment