Guest User

Untitled

a guest
Mar 12th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1.  
  2. >> require 'c:/codigo/itracker/javalibs/mysql-connector-java-5.1.5-bin'
  3. => []
  4. >>d=com.mysql.jdbc.Driver.new
  5. => #<Java::ComMysqlJdbc::Driver:0x1803968 @java_object=com.mysql.jdbc.Driver@
  6. 139008b>
  7. >>java.sql.DriverManager.registerDriver d
  8. => nil
  9. >>connection = java.sql.DriverManager.getConnection('jdbc:mysql://127.0.0.1:3306/i
  10. trackersumolisprodrails','utilizador','palavra-passe')
  11. NativeException: java.sql.SQLException: No suitable driver found for jdbc:mysql:
  12. //127.0.0.1:3306/itrackersumolisprodrails
  13. from java/sql/DriverManager.java:602:in `getConnection'
  14. from java/sql/DriverManager.java:185:in `getConnection'
  15. from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
  16. from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
  17. from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
  18. from java/lang/reflect/Method.java:597:in `invoke'
  19. from org/jruby/javasupport/JavaMethod.java:208:in `invokeWithExceptionHa
  20. ndling'
  21. from org/jruby/javasupport/JavaMethod.java:194:in `invoke_static'
  22. from org/jruby/javasupport/JavaClass.java:357:in `execute'
  23. from org/jruby/internal/runtime/methods/SimpleCallbackMethod.java:67:in
  24. `call'
  25. from org/jruby/internal/runtime/methods/DynamicMethod.java:66:in `call'
  26. from org/jruby/runtime/CallSite.java:166:in `cacheAndCall'
  27. from org/jruby/runtime/CallSite.java:301:in `call'
  28. from org/jruby/evaluator/ASTInterpreter.java:657:in `callNode'
  29. from org/jruby/evaluator/ASTInterpreter.java:308:in `evalInternal'
  30. from org/jruby/evaluator/ASTInterpreter.java:858:in `dAsgnNode'
  31. ... 107 levels...
  32. from org/jruby/evaluator/ASTInterpreter.java:631:in `blockNode'
  33. from org/jruby/evaluator/ASTInterpreter.java:302:in `evalInternal'
  34. from org/jruby/evaluator/ASTInterpreter.java:168:in `eval'
  35. from org/jruby/internal/runtime/methods/DefaultMethod.java:176:in `call'
  36.  
  37. from org/jruby/internal/runtime/methods/DynamicMethod.java:78:in `call'
  38. from org/jruby/runtime/CallSite.java:211:in `cacheAndCall'
  39. from org/jruby/runtime/CallSite.java:357:in `call'
  40. from ruby/C_3a_/codigo/jruby/bin/C:/codigo/jruby\bin\jirb:13:in `__file_
  41. _'
  42. from ruby/C_3a_/codigo/jruby/bin/C:/codigo/jruby\bin\jirb:-1:in `load'
  43. from org/jruby/Ruby.java:491:in `runScript'
  44. from org/jruby/Ruby.java:411:in `runNormally'
  45. from org/jruby/Ruby.java:291:in `runFromMain'
  46. from org/jruby/Main.java:142:in `run'
  47. from org/jruby/Main.java:88:in `run'
  48. from org/jruby/util/ShellLauncher.java:80:in `run'
  49. from java>> /lang/Thread.java:619:in `run'
Add Comment
Please, Sign In to add comment