Skip to content

Bouncycastle 1.51 causes load error: jopenssl/load -- java.lang.VerifyError: Bad type on operand stack  #4

Closed
@cheister

Description

@cheister

The 1.51 Bouncy Castle release http://www.bouncycastle.org/releasenotes.html causes a load error.
From the release notes they claim "Some changes have affected the return values of some methods" which I suspect is to blame
The error is:

[WARNING] ERROR:  Loading command: install (LoadError)
[WARNING]   load error: jopenssl/load -- java.lang.VerifyError: Bad type on operand stack
[WARNING] Exception Details:
[WARNING]   Location:
[WARNING]     org/jruby/ext/openssl/X509Cert.sign(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; @140: invokevirtual
[WARNING]   Reason:
[WARNING]     Type 'org/bouncycastle/asn1/ASN1ObjectIdentifier' (current frame, stack[1]) is not assignable to 'org/bouncycastle/asn1/DERObjectIdentifier'
[WARNING]   Current Frame:
[WARNING]     bci: @140
[WARNING]     flags: { }
[WARNING]     locals: { 'org/jruby/ext/openssl/X509Cert', 'org/jruby/runtime/ThreadContext', 'org/jruby/runtime/builtin/IRubyObject', 'org/jruby/runtime/builtin/IRubyObject', 'org/jruby/Ruby', 'java/lang/String', 'java/lang/String', 'java/lang/String', 'java/util/Iterator', 'org/jruby/ext/openssl/X509Extensions$Extension', '[B' }
[WARNING]     stack: { 'org/bouncycastle/x509/X509V3CertificateGenerator', 'org/bouncycastle/asn1/ASN1ObjectIdentifier', integer, '[B' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions