Skip to content

Instantly share code, notes, and snippets.

@aetherknight
Created June 11, 2014 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aetherknight/ad03ecb9dec02f1da674 to your computer and use it in GitHub Desktop.
Save aetherknight/ad03ecb9dec02f1da674 to your computer and use it in GitHub Desktop.
jruby master (43885543e) error after installing bcprov-jdk15on-150.jar in JAVA_HOME/jre/lib/ext
$ bin/jruby -S bin/jirb
#<LoadError: no such file to load -- irbtools/configure>
#<LoadError: no such file to load -- wirble>
irb(main):001:0> require 'openssl'
java.lang.ClassCastException: org.bouncycastle.jcajce.provider.symmetric.IDEA$Mappings cannot be cast to org.bouncycastle.jcajce.provider.util.AlgorithmProvider
at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at org.jruby.ext.openssl.SecurityHelper.newBouncyCastleProvider(SecurityHelper.java:109)
at org.jruby.ext.openssl.SecurityHelper.setBouncyCastleProvider(SecurityHelper.java:104)
at org.jruby.ext.openssl.SecurityHelper.getSecurityProvider(SecurityHelper.java:91)
at org.jruby.ext.openssl.SecurityHelper.getSecureRandom(SecurityHelper.java:273)
at org.jruby.ext.openssl.Random.createRandom(Random.java:75)
at org.jruby.ext.openssl.OpenSSLReal.createOpenSSL(OpenSSLReal.java:135)
at org.jruby.ext.openssl.OSSLLibrary.load(OSSLLibrary.java:10)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:425)
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:292)
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44)
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:100)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:375)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:647)
at org.jruby.ir.IRScriptBody.interpret(IRScriptBody.java:113)
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:183)
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:82)
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:41)
at org.jruby.Ruby.runInterpreter(Ruby.java:843)
at org.jruby.Ruby.loadFile(Ruby.java:2851)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:934)
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:548)
at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:432)
at org.jruby.runtime.load.LoadService.require(LoadService.java:396)
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:853)
at org.jruby.RubyKernel.require19(RubyKernel.java:847)
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:350)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:356)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:206)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:356)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:647)
at org.jruby.ir.IRScriptBody.interpret(IRScriptBody.java:113)
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:183)
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:82)
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:41)
at org.jruby.Ruby.runInterpreter(Ruby.java:843)
at org.jruby.Ruby.loadFile(Ruby.java:2851)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:934)
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:548)
at org.jruby.runtime.load.LoadService.requireCommon(LoadService.java:432)
at org.jruby.runtime.load.LoadService.require(LoadService.java:396)
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:853)
at org.jruby.RubyKernel.require19(RubyKernel.java:847)
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:350)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:356)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:206)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:356)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_EVAL(Interpreter.java:657)
at org.jruby.ir.IREvalScript.call(IREvalScript.java:98)
at org.jruby.ir.interpreter.Interpreter.interpretCommonEval(Interpreter.java:154)
at org.jruby.ir.interpreter.Interpreter.interpretBindingEval(Interpreter.java:167)
at org.jruby.ir.interpreter.Interpreter.evalWithBinding(Interpreter.java:773)
at org.jruby.RubyKernel.evalCommon(RubyKernel.java:917)
at org.jruby.RubyKernel.eval19(RubyKernel.java:881)
at org.jruby.RubyKernel$INVOKER$s$0$3$eval19.call(RubyKernel$INVOKER$s$0$3$eval19.gen)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:375)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:667)
at org.jruby.runtime.InterpretedIRBlockBody.commonYieldPath(InterpretedIRBlockBody.java:39)
at org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:71)
at org.jruby.runtime.Block.yieldSpecific(Block.java:112)
at org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:395)
at org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:90)
at org.jruby.ir.interpreter.Interpreter.processOtherOp(Interpreter.java:535)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:622)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:667)
at org.jruby.runtime.InterpretedIRBlockBody.commonYieldPath(InterpretedIRBlockBody.java:39)
at org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:142)
at org.jruby.runtime.BlockBody.yield(BlockBody.java:84)
at org.jruby.runtime.Block.yieldArray(Block.java:159)
at org.jruby.ir.runtime.IRRuntimeHelpers.yield(IRRuntimeHelpers.java:388)
at org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:93)
at org.jruby.ir.interpreter.Interpreter.processOtherOp(Interpreter.java:535)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:622)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:667)
at org.jruby.runtime.InterpretedIRBlockBody.commonYieldPath(InterpretedIRBlockBody.java:39)
at org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:71)
at org.jruby.runtime.Block.yieldSpecific(Block.java:112)
at org.jruby.RubyKernel.loop(RubyKernel.java:1201)
at org.jruby.RubyKernel$INVOKER$s$0$0$loop.call(RubyKernel$INVOKER$s$0$0$loop.gen)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:458)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:667)
at org.jruby.runtime.InterpretedIRBlockBody.commonYieldPath(InterpretedIRBlockBody.java:39)
at org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:133)
at org.jruby.runtime.BlockBody.yield(BlockBody.java:78)
at org.jruby.runtime.Block.yield(Block.java:143)
at org.jruby.RubyContinuation.enter(RubyContinuation.java:107)
at org.jruby.RubyKernel.rbCatch19Common(RubyKernel.java:1018)
at org.jruby.RubyKernel.rbCatch19(RubyKernel.java:1011)
at org.jruby.RubyKernel$INVOKER$s$rbCatch19.call(RubyKernel$INVOKER$s$rbCatch19.gen)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneBlock.call(JavaMethod.java:475)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:202)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:198)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:363)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:667)
at org.jruby.runtime.InterpretedIRBlockBody.commonYieldPath(InterpretedIRBlockBody.java:39)
at org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:133)
at org.jruby.runtime.BlockBody.yield(BlockBody.java:78)
at org.jruby.runtime.Block.yield(Block.java:143)
at org.jruby.RubyContinuation.enter(RubyContinuation.java:107)
at org.jruby.RubyKernel.rbCatch19Common(RubyKernel.java:1018)
at org.jruby.RubyKernel.rbCatch19(RubyKernel.java:1011)
at org.jruby.RubyKernel$INVOKER$s$rbCatch19.call(RubyKernel$INVOKER$s$rbCatch19.gen)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneBlock.call(JavaMethod.java:475)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:286)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:394)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:379)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_METHOD(Interpreter.java:684)
at org.jruby.internal.runtime.methods.InterpretedIRMethod.call(InterpretedIRMethod.java:115)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:210)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:206)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ir.interpreter.Interpreter.processCall(Interpreter.java:356)
at org.jruby.ir.interpreter.Interpreter.interpret(Interpreter.java:592)
at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:647)
at org.jruby.ir.IRScriptBody.interpret(IRScriptBody.java:113)
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:183)
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:82)
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:41)
at org.jruby.Ruby.runInterpreter(Ruby.java:859)
at org.jruby.Ruby.runInterpreter(Ruby.java:866)
at org.jruby.Ruby.runNormally(Ruby.java:717)
at org.jruby.Ruby.runFromMain(Ruby.java:552)
at org.jruby.Main.doRunFromMain(Main.java:397)
at org.jruby.Main.internalRun(Main.java:292)
at org.jruby.Main.run(Main.java:219)
at org.jruby.Main.main(Main.java:199)
@aetherknight
Copy link
Author

Additionally, the bouncy castle JCE provider was the top priority provider in JAVA_HOME/jre/lib/security/java.security

@salayea28
Copy link

Were you able to resolve this issue? I am having a similar issue.
Thanks..

Caused by: java.lang.InternalError: cannot create instance of org.bouncycastle.jcajce.provider.symmetric.IDEA$Mappings : java.lang.ClassCastException: org.bouncycastle.jcajce.provider.symmetric.IDEA$Mappings cannot be cast to org.bouncycastle.jcajce.provider.util.AlgorithmProvider
at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.bouncycastle.jce.provider.BouncyCastleProvider.(Unknown Source)

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