-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
rails server or console wont start #3753
Comments
I had monkey patched mysql2_connection. Looks like What would be the alternative for |
What are you using Mysql2::Client for? We do not have a Java version of the mysql gem yet. |
It looks like you're just using Mysql2::Client to get some configuration parameters. Perhaps the mysql JDBC driver has an equivalent way to set these options? |
But since mysql2_connection is deprecated it can be ignored 😄
Solution:Instead of Both should give same results. jruby
cruby
This is great! ❤️ JRuby |
I still have this question though. Does this ActiveRecord MULTI_STATEMENTS with mysql2 even work? (Considering |
@swapnilabnave I found this SO post that describes a few ways to get multiple statement support when using JDBC: http://stackoverflow.com/questions/10797794/multiple-queries-executed-in-java-in-single-statement In any case there's no JRuby bug here so I'm closing this. |
Environment
JRuby version :
jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 Java HotSpot(TM) 64-Bit Server VM 25.65-b01 on 1.8.0_65-b17 +jit [linux-amd64]
Java version
➜ trunk java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Operating system and platform
➜ trunk
uname -a
Linux swapnil-Lenovo-Z50-70 4.2.0-27-generic fix [JRUBY-5765]: cext build fails if 10.4 sdk installed #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
➜ trunk
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Relevant info:
Expected Behavior
rails c
should start a rails consoleActual Behavior
Exception :
LoadError: load error: hpricot_scan -- java.lang.NoSuchMethodError: org.jruby.RubyClass.defineMethod(Ljava/lang/String;Lorg/jruby/runtime/callback/Callback;)V
The text was updated successfully, but these errors were encountered: