Discussion:
JRuby JCE issue
Michael Ni
2013-08-30 09:42:29 UTC
Permalink
I have been having issues with Fog / Excon with JRuby 1.7.4, well i tried
1.7.2 and 1.7.3 as well, and I still have the issue.

Basically there is a issue where you have

Illegal key size: possibly you need to install Java Cryptography Extension
(JCE) Unlimited Strength Jurisdiction Policy Files for your JRE

So I do what I am supposed to do and replace
local_policy.jar
US_export_policy.jar

from the JCE lib from oracle
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

The illegal key size issue goes away however

When I use carrierwave, that uses fog, that uses excon, I get

#<Excon::Errors::SocketError: problem creating X509 Aux certificate:
java.io.IOException: problem parsing cert:
java.security.cert.CertificateParsingException: java.io.IOException:
Duplicate extensions not allowed (OpenSSL::SSL::SSLError)>
problem creating X509 Aux certificate: java.io.IOException: problem parsing
cert: java.security.cert.CertificateParsingException: java.io.IOException:
Duplicate extensions not allowed (OpenSSL::SSL::SSLError)
Excon::Errors::SocketError: problem creating X509 Aux certificate:
java.io.IOException: problem parsing cert:
java.security.cert.CertificateParsingException: java.io.IOException:
Duplicate extensions not allowed (OpenSSL::SSL::SSLError)
from org/jruby/ext/openssl/SSLContext.java:230:in `setup'
from org/jruby/ext/openssl/SSLSocket.java:145:in `initialize'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/ssl_socket.rb:64:in
`initialize'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/connection.rb:361:in
`socket'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/connection.rb:105:in
`request_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/mock.rb:42:in
`request_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/instrumentor.rb:22:in
`request_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/base.rb:15:in
`request_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/base.rb:15:in
`request_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/base.rb:15:in
`request_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/connection.rb:244:in
`request'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/idempotent.rb:12:in
`error_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/base.rb:10:in
`error_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/base.rb:10:in
`error_call'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/connection.rb:260:in
`request'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/excon-0.25.3/lib/excon/middlewares/idempotent.rb:12:in
`error_call'
... 34 levels...
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/activerecord-4.0.0/lib/active_record/transactions.rb:323:in
`with_transaction_returning_status'
from
/Users/mike/.rvm/gems/jruby-1.7.4/gems/activerecord-4.0.0/lib/active_record/transactions.rb:275:in
`save!'
from
/Users/mike/Documents/development3/projects/vision_nexus/2012-01-01-portal/p-2013-08-12-portal_reporting2_rails4-git/app/models/logical/arb/inbound/google_adwords/api/v201306/services/report_definition_services/keywords_performance_report_for_report.rb:117:in
`validate_gzip_file'
from
/Users/mike/Documents/development3/projects/vision_nexus/2012-01-01-portal/p-2013-08-12-portal_reporting2_rails4-git/app/models/logical/arb/inbound/google_adwords/reports/keywords_performance_report_for_report_manager.rb:62:in
`get_valid_report'
from /Users/mike/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/tmpdir.rb:96:in
`mktmpdir'
from
/Users/mike/Documents/development3/projects/vision_nexus/2012-01-01-portal/p-2013-08-12-portal_reporting2_rails4-git/app/models/logical/arb/inbound/google_adwords/reports/keywords_performance_report_for_report_manager.rb:50:in
`get_valid_report'
from (irb):4:in `evaluate'
from org/jruby/RubyKernel.java:1093:in `eval'
from org/jruby/RubyKernel.java:1489:in `loop'
from org/jruby/RubyKernel.java:1254:in `catch'



does anyone know how to resolve this?

Mike
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...