Guest User

Untitled

a guest
Mar 8th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. environment.rb:
  2.  
  3. require File.join(File.dirname(__FILE__), 'boot')
  4. if RUBY_PLATFORM =~ /java/
  5. require 'rubygems'
  6. gem 'ActiveRecord-JDBC'
  7. require 'jdbc_adapter'
  8. end
  9.  
  10. production.log:
  11.  
  12.  
  13.  
  14. TypeError (can't convert nil into String):
  15. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in `real_connect'
  16. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in `connect'
  17. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:152:in `initialize'
  18. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `new'
  19. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `mysql_connection'
  20. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send'
  21. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `connection='
  22. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in `connection='
  23. /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'
  24. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'
  25. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in `columns'
  26. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in `column_names'
  27. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:796:in `column_methods_hash'
  28. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1261:in `all_attributes_exists?'
  29. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1197:in `all?'
  30. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `each'
  31. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all?'
  32. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all_attributes_exists?'
  33. /opt/tomcat6/webapps/TestAS/WEB-INF/gems/gems/activerecord-1.15.3/lib/active_record/base.rb:1197:in `method_missing'
  34. /app/models/user.rb:18:in `authenticate'
  35.  
  36. production:
  37. adapter: mysql
  38. database: testas_production
  39. username: xxxxx
  40. password: xxxxxx
Add Comment
Please, Sign In to add comment