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

java.io.IOException: Invalid keystore format #4883

Closed
wilsonp opened this Issue Dec 5, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@wilsonp

wilsonp commented Dec 5, 2017

Environment

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc)
jruby 9.1.13.0 (2.3.3) 2017-09-06 8e1c115 Java HotSpot(TM) 64-Bit Server VM 25.144-b01 on 1.8.0_144-b01 +jit [darwin-x86_64]
  • Operating system and platform (e.g. uname -a)
Darwin MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0: Sun Jun  4 21:43:07 PDT 2017; root:xnu-3248.70.3~1/RELEASE_X86_64 x86_64

error description:
My current problem is error on execute :

gem install xxx

and will get follow error:

gem install pry
java.io.IOException: Invalid keystore format
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:658)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
        at java.security.KeyStore.load(KeyStore.java:1445)
        at sun.security.util.AnchorCertificates$1.run(AnchorCertificates.java:61)
        at sun.security.util.AnchorCertificates$1.run(AnchorCertificates.java:52)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.util.AnchorCertificates.<clinit>(AnchorCertificates.java:52)
        at sun.security.provider.certpath.AlgorithmChecker.checkFingerprint(AlgorithmChecker.java:214)
        at sun.security.provider.certpath.AlgorithmChecker.<init>(AlgorithmChecker.java:164)
        at sun.security.provider.certpath.AlgorithmChecker.<init>(AlgorithmChecker.java:118)
        at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:157)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.validator.Validator.validate(Validator.java:236)
        at sun.security.validator.Validator.validate(Validator.java:205)
        at javax.crypto.JarVerifier.isTrusted(JarVerifier.java:608)
        at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:528)
        at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:361)
        at javax.crypto.JarVerifier.verify(JarVerifier.java:289)
        at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:159)
        at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:185)
        at javax.crypto.Cipher.getInstance(Cipher.java:653)
        at org.jruby.ext.openssl.SecurityHelper.getCipher(SecurityHelper.java:450)
        at org.jruby.ext.openssl.SecurityHelper.getCipher(SecurityHelper.java:419)
        at org.jruby.ext.openssl.Cipher.getCipherInstance(Cipher.java:696)
        at org.jruby.ext.openssl.Cipher.getCipherInstance(Cipher.java:975)
        at org.jruby.ext.openssl.Cipher.updateCipher(Cipher.java:970)
        at org.jruby.ext.openssl.Cipher.initializeImpl(Cipher.java:763)
        at org.jruby.ext.openssl.Cipher.initialize(Cipher.java:752)
        at org.jruby.ext.openssl.Cipher$INVOKER$i$1$0$initialize.call(Cipher$INVOKER$i$1$0$initialize.gen)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrN.call(JavaMethod.java:850)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:348)
        at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:173)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:177)
        at org.jruby.RubyClass.newInstance(RubyClass.java:1001)
        at org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:77)
        at org.jruby.internal.runtime.methods.InterpretedIRBodyMethod.interpretWithBacktrace(InterpretedIRBodyMethod.java:72)
        at org.jruby.internal.runtime.methods.InterpretedIRBodyMethod.INTERPRET_MODULE(InterpretedIRBodyMethod.java:62)
        at org.jruby.internal.runtime.methods.InterpretedIRBodyMethod.callInternal(InterpretedIRBodyMethod.java:47)
        at org.jruby.internal.runtime.methods.InterpretedIRBodyMethod.call(InterpretedIRBodyMethod.java:37)
        at org.jruby.ir.instructions.ProcessModuleBodyInstr.interpret(ProcessModuleBodyInstr.java:56)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:187)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:111)
        at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
        at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
        at org.jruby.Ruby.runInterpreter(Ruby.java:840)
        at org.jruby.Ruby.loadFile(Ruby.java:2877)
        at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
        at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
        at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:891)
        at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:531)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:402)
        at org.jruby.RubyKernel.requireCommon(RubyKernel.java:962)
        at org.jruby.RubyKernel.require19(RubyKernel.java:955)
        at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:384)
        at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.invokeOther30:gem_original_require(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.RUBY$method$require$0(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
        at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
        at org.jruby.Ruby.runInterpreter(Ruby.java:840)
        at org.jruby.Ruby.loadFile(Ruby.java:2877)
        at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
        at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
        at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:891)
        at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:531)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:402)
        at org.jruby.RubyKernel.requireCommon(RubyKernel.java:962)
        at org.jruby.RubyKernel.require19(RubyKernel.java:955)
        at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:384)
        at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.invokeOther30:gem_original_require(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.RUBY$method$require$0(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
        at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
        at org.jruby.Ruby.runInterpreter(Ruby.java:840)
        at org.jruby.Ruby.loadFile(Ruby.java:2877)
        at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
        at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
        at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:891)
        at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:531)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:402)
        at org.jruby.RubyKernel.requireCommon(RubyKernel.java:962)
        at org.jruby.RubyKernel.require19(RubyKernel.java:955)
        at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:384)
        at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.invokeOther30:gem_original_require(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.RUBY$method$require$0(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
        at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
        at org.jruby.Ruby.runInterpreter(Ruby.java:840)
        at org.jruby.Ruby.loadFile(Ruby.java:2877)
        at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
        at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
        at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:891)
        at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:531)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:402)
        at org.jruby.RubyKernel.requireCommon(RubyKernel.java:962)
        at org.jruby.RubyKernel.require19(RubyKernel.java:955)
        at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(RubyKernel$INVOKER$s$1$0$require19.gen)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:384)
        at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.invokeOther30:gem_original_require(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.lib.ruby.stdlib.rubygems.core_ext.kernel_require.RUBY$method$require$0(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:59)
        at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:103)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:163)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:89)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:214)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:200)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:89)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:214)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:200)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:358)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:323)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:179)
        at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)
        at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)
        at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:112)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:99)
        at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:35)
        at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42)
        at org.jruby.Ruby.runInterpreter(Ruby.java:840)
        at org.jruby.Ruby.loadFile(Ruby.java:2877)
        at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:243)
        at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34)
        at org.jruby.runtime.load.LoadService.load(LoadService.java:343)
        at org.jruby.RubyKernel.loadCommon(RubyKernel.java:981)
        at org.jruby.RubyKernel.load19(RubyKernel.java:973)
        at org.jruby.RubyKernel$INVOKER$s$0$1$load19.call(RubyKernel$INVOKER$s$0$1$load19.gen)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:204)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)
        at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:338)
        at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.bin.gem.invokeOther3:load(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/bin/gem:4)
        at Users.pengpeng.$_dot_rvm.rubies.jruby_minus_9_dot_1_dot_13_dot_0.bin.gem.RUBY$script(/Users/pengpeng/.rvm/rubies/jruby-9.1.13.0/bin/gem:4)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
        at org.jruby.ir.Compiler$1.load(Compiler.java:95)
        at org.jruby.Ruby.runScript(Ruby.java:828)
        at org.jruby.Ruby.runNormally(Ruby.java:747)
        at org.jruby.Ruby.runNormally(Ruby.java:765)
        at org.jruby.Ruby.runFromMain(Ruby.java:578)
        at org.jruby.Main.doRunFromMain(Main.java:417)
        at org.jruby.Main.internalRun(Main.java:305)
        at org.jruby.Main.run(Main.java:232)
        at org.jruby.Main.main(Main.java:204)
@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Dec 6, 2017

Member

Huh, it works fine for me. Can you try upgrading to JRuby 9.1.14 or latest jruby-openssl?

cc @kares @mkristian

Member

headius commented Dec 6, 2017

Huh, it works fine for me. Can you try upgrading to JRuby 9.1.14 or latest jruby-openssl?

cc @kares @mkristian

@mkristian

This comment has been minimized.

Show comment
Hide comment
@mkristian

mkristian Dec 8, 2017

Member

@wilsonp I am afraid there is not enough info to reproduce it. the code which fails is

javax.crypto.Cipher.getInstance(transformation, provider);

using the BouncyCastle security-provider. somehow it can not read the KeyStore, maybe locate the keystore and try to open it with the keytool. usual place for the cacerts is: $JAVA_HOME/jre/lib/security

keytool -list -keystore cacerts gives you the list of certificates in it.

Member

mkristian commented Dec 8, 2017

@wilsonp I am afraid there is not enough info to reproduce it. the code which fails is

javax.crypto.Cipher.getInstance(transformation, provider);

using the BouncyCastle security-provider. somehow it can not read the KeyStore, maybe locate the keystore and try to open it with the keytool. usual place for the cacerts is: $JAVA_HOME/jre/lib/security

keytool -list -keystore cacerts gives you the list of certificates in it.

@wilsonp

This comment has been minimized.

Show comment
Hide comment
@wilsonp

wilsonp Dec 14, 2017

The reason is that cacerts's format is invalide,it has nothing to do with JRuby. I replace the cacerts in $JAVA_HOME/jre/lib/security to resolve the error

wilsonp commented Dec 14, 2017

The reason is that cacerts's format is invalide,it has nothing to do with JRuby. I replace the cacerts in $JAVA_HOME/jre/lib/security to resolve the error

@wilsonp wilsonp closed this Dec 14, 2017

@kares kares added this to the Invalid or Duplicate milestone Dec 14, 2017

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Dec 15, 2017

Member

@wilsonp Do you know how that might have happened? I have seen this error reported before.

Member

headius commented Dec 15, 2017

@wilsonp Do you know how that might have happened? I have seen this error reported before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment