Skip to content

JRuby master OpenSSL fails to install gems #2034

@headius

Description

@headius

We are using jruby-openssl 0.9.5 on master. However it just recently started failing because some code tries to access ChannelDescriptor, a class removed on JRuby master.

Attempting to install a gem with a clean build produces errors like this:

Caused by:
URLClassLoader.java:372:in `run': java.lang.ClassNotFoundException: org.jruby.util.io.ChannelDescriptor
    from URLClassLoader.java:361:in `run'
    from AccessController.java:-2:in `doPrivileged'
    from URLClassLoader.java:360:in `findClass'
    from JRubyClassLoader.java:196:in `findClass'
    from ClassLoader.java:424:in `loadClass'
    from JRubyClassLoader.java:144:in `loadClass'
    from ClassLoader.java:357:in `loadClass'
    from Lookup.java:299:in `wrapJRubyNormalizedInputStream'
    from Lookup.java:246:in `loadCertificateOrCRLFile'
    from Lookup.java:435:in `call'
    from Lookup.java:411:in `call'
    from Lookup.java:123:in `control'
    from Lookup.java:92:in `loadFile'
    from Store.java:308:in `loadLocations'
    from X509Store.java:149:in `add_file'
    from X509Store$INVOKER$i$1$0$add_file.gen:-1:in `call'

If I try to use 0.9.6.dev-SNAPSHOT I get an error indicating a bug in 0.9.6:

ERROR:  Could not find a valid gem 'rspec' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - hostname "api.rubygems.org" does not match the server certificate (https://api.rubygems.org/latest_specs.4.8.gz)

JRuby master is currently broken for gem installs and anything using OpenSSL as a result.

Pinging @mkristian and @kares since they have been working on OpenSSL lately.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions