Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> require 'c:/codigo/itracker/javalibs/mysql-connector-java-5.1.5-bin'
- => []
- >>d=com.mysql.jdbc.Driver.new
- => #<Java::ComMysqlJdbc::Driver:0x1803968 @java_object=com.mysql.jdbc.Driver@
- 139008b>
- >>java.sql.DriverManager.registerDriver d
- => nil
- >>connection = java.sql.DriverManager.getConnection('jdbc:mysql://127.0.0.1:3306/i
- trackersumolisprodrails','utilizador','palavra-passe')
- NativeException: java.sql.SQLException: No suitable driver found for jdbc:mysql:
- //127.0.0.1:3306/itrackersumolisprodrails
- from java/sql/DriverManager.java:602:in `getConnection'
- from java/sql/DriverManager.java:185:in `getConnection'
- from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
- from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
- from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
- from java/lang/reflect/Method.java:597:in `invoke'
- from org/jruby/javasupport/JavaMethod.java:208:in `invokeWithExceptionHa
- ndling'
- from org/jruby/javasupport/JavaMethod.java:194:in `invoke_static'
- from org/jruby/javasupport/JavaClass.java:357:in `execute'
- from org/jruby/internal/runtime/methods/SimpleCallbackMethod.java:67:in
- `call'
- from org/jruby/internal/runtime/methods/DynamicMethod.java:66:in `call'
- from org/jruby/runtime/CallSite.java:166:in `cacheAndCall'
- from org/jruby/runtime/CallSite.java:301:in `call'
- from org/jruby/evaluator/ASTInterpreter.java:657:in `callNode'
- from org/jruby/evaluator/ASTInterpreter.java:308:in `evalInternal'
- from org/jruby/evaluator/ASTInterpreter.java:858:in `dAsgnNode'
- ... 107 levels...
- from org/jruby/evaluator/ASTInterpreter.java:631:in `blockNode'
- from org/jruby/evaluator/ASTInterpreter.java:302:in `evalInternal'
- from org/jruby/evaluator/ASTInterpreter.java:168:in `eval'
- from org/jruby/internal/runtime/methods/DefaultMethod.java:176:in `call'
- from org/jruby/internal/runtime/methods/DynamicMethod.java:78:in `call'
- from org/jruby/runtime/CallSite.java:211:in `cacheAndCall'
- from org/jruby/runtime/CallSite.java:357:in `call'
- from ruby/C_3a_/codigo/jruby/bin/C:/codigo/jruby\bin\jirb:13:in `__file_
- _'
- from ruby/C_3a_/codigo/jruby/bin/C:/codigo/jruby\bin\jirb:-1:in `load'
- from org/jruby/Ruby.java:491:in `runScript'
- from org/jruby/Ruby.java:411:in `runNormally'
- from org/jruby/Ruby.java:291:in `runFromMain'
- from org/jruby/Main.java:142:in `run'
- from org/jruby/Main.java:88:in `run'
- from org/jruby/util/ShellLauncher.java:80:in `run'
- from java>> /lang/Thread.java:619:in `run'
Add Comment
Please, Sign In to add comment