-
-
Save cheald/1495c387b683c0dff5e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> crt = OpenSSL::X509::Certificate.new File.read(File.expand_path('../spec/ssl/host.crt', __FILE__)) | |
=> #<OpenSSL::X509::Certificate:0x5cbe877d subject=/C=US/ST=The Internet/L=The Internet/O=Manticore Host/OU=Manticore/CN=localhost, issuer=/C=US/ST=The Internet/L=The Internet/O=Manticore CA/OU=Manticore/CN=localhost, serial=11159131363382283847, not_before=2015-04-06 07:59:46 UTC, not_after=2015-04-07 07:59:46 UTC> | |
> crt.to_text | |
Java::JavaLang::NullPointerException: | |
from org.jruby.RubyNumeric.other2long(RubyNumeric.java:214) | |
from org.jruby.RubyNumeric.num2long(RubyNumeric.java:209) | |
from org.jruby.RubyNumeric.fix2int(RubyNumeric.java:275) | |
from org.jruby.ext.openssl.X509Cert.to_text(X509Cert.java:294) | |
from org.jruby.ext.openssl.X509Cert$INVOKER$i$0$0$to_text.call(X509Cert$INVOKER$i$0$0$to_text.gen) | |
from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:293) | |
from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:131) | |
from org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:304) | |
from org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:74) | |
from org.jruby.ir.interpreter.Interpreter.INTERPRET_EVAL(Interpreter.java:127) | |
from org.jruby.ir.interpreter.Interpreter.evalCommon(Interpreter.java:182) | |
from org.jruby.ir.interpreter.Interpreter.evalWithBinding(Interpreter.java:207) | |
from org.jruby.RubyKernel.evalCommon(RubyKernel.java:1038) | |
from org.jruby.RubyKernel.eval19(RubyKernel.java:1005) | |
from org.jruby.RubyKernel$INVOKER$s$0$3$eval19.call(RubyKernel$INVOKER$s$0$3$eval19.gen) | |
from org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77) | |
... 101 levels... | |
from org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:192) | |
from org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:206) | |
from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:313) | |
from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163) | |
from usr.local.rvm.rubies.jruby_minus_head.bin.irb.invokeOther4:start(/usr/local/rvm/rubies/jruby-head/bin/irb) | |
from usr.local.rvm.rubies.jruby_minus_head.bin.irb.RUBY$script(/usr/local/rvm/rubies/jruby-head/bin/irb:13) | |
from java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636) | |
from org.jruby.ir.Compiler$1.load(Compiler.java:111) | |
from org.jruby.Ruby.runScript(Ruby.java:828) | |
from org.jruby.Ruby.runScript(Ruby.java:821) | |
from org.jruby.Ruby.runNormally(Ruby.java:751) | |
from org.jruby.Ruby.runFromMain(Ruby.java:573) | |
from org.jruby.Main.doRunFromMain(Main.java:404) | |
from org.jruby.Main.internalRun(Main.java:299) | |
from org.jruby.Main.run(Main.java:226) | |
from org.jruby.Main.main(Main.java:198)jruby-head :007 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment