-
-
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
Failure when loading a Sinatra page Java::JavaLang::NoSuchMethodError #3894
Comments
This is almost certainly fixed in 9.1. I'm really surprised to see it happen even in 9.0.5.0. There must be something wrong with that build; this code would not have compiled if that method were missing. Please update to 9.1 and let us know that it fixed the problem. |
@headius is this stack trace helpful? It is from the 9.0.5.0 upgrade that we are attempting. We aren't able to move to 9.1 at the moment and need 9.0.5.0 to get some SSL fixes.
|
@r6p That You must have another version of jcodings getting into your system, either from an old/stale JRuby, or via some other mechanism (maven oddity?) How are you getting JRuby and how are you packaging this application? There's also a small chance one of our published artifacts did not ship jcodings 1.0.17 but that seems really unlikely. |
That method is there (see below) for proof. It must be a dependency conflict on our side some how. I'll dig in further and report back. For the record, we are packaging our app in a single jar including jruby-complete and all the gems we need.
|
Yup, it looks like there is a jar conflict, we have a transitive dependency on org.jruby.jcodings:jcodings:jar:1.0.8 via another jar, jar:org.apache.hbase:hbase-client:jar:1.0.0, that is included on the classpath. Do you have a suggestion on the best way to handle this? |
@r6p you need to exclude the jcodings or use the org.jruby:jruby artifact which might already negotiate the right version or pick org.jruby.jcodings:jcodings:jar:1.0.17 manually |
Prepended jruby-complete as the first jar in the Class-Path entry of the manifest of our executable jar file and things started working. Thanks for the help. |
Environment
jruby-9.0.5.0
Linux + Mac
Other relevant info you may wish to add:
Sinatra running w/ RACK_ENV=production
Expected Behavior
No error should be raised.
Actual Behavior
Java::JavaLang::NoSuchMethodError at /
org.jcodings.Encoding.isUTF8()Z
file: org.jruby.util.StringSupport.dumpCommon(StringSupport.java location: nil line: 774
The text was updated successfully, but these errors were encountered: