Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby-OpenSSL 0.6
-
Fix Version/s: JRuby-OpenSSL 0.6
-
Component/s: OpenSSL
-
Labels:None
-
Environment:AIX 3.5
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr4ifx-20090409_33254 (JIT enabled, AOT enabled)
-
Number of attachments :
Description
Tried using HTTPClient, which is needed for SOAP4r to use HTTPS.
Got following backtrace ( paste also at http://pastie.org/private/n8zga6awmj4fn4uw14irpa )
jruby -e 'require "rubygems"; require "httpclient"; HTTPClient.new'
EVP.java:101:in `type': java.lang.NullPointerException
from PKCS7.java:254:in `signatureVerify'
from PKCS7.java:390:in `verify'
from PKCS7.java:486:in `verify'
from org/jruby/ext/openssl/PKCS7$i_method_0_0$RUBYINVOKER$verify.gen:-1:in `call'
from CachingCallSite.java:280:in `cacheAndCall'
from CachingCallSite.java:69:in `call'
from CallManyArgsNode.java:59:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:111:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from IfNode.java:117:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:317:in `evalBlockBody'
from InterpretedBlock.java:268:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:1635:in `eachCommon'
from RubyArray.java:1642:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:-1:in `call'
from CachingCallSite.java:300:in `cacheAndCall'
from CachingCallSite.java:118:in `callBlock'
from CachingCallSite.java:123:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:136:in `call'
from DefaultMethod.java:153:in `call'
from CachingCallSite.java:290:in `cacheAndCall'
from CachingCallSite.java:109:in `call'
from VCallNode.java:85:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:192:in `call'
from DefaultMethod.java:177:in `call'
from CachingCallSite.java:320:in `cacheAndCall'
from CachingCallSite.java:158:in `callBlock'
from CachingCallSite.java:163:in `call'
from RubyClass.java:709:in `call'
from DynamicMethod.java:176:in `call'
from CachingCallSite.java:310:in `cacheAndCall'
from CachingCallSite.java:149:in `call'
from CallOneArgNode.java:57:in `interpret'
from InstAsgnNode.java:95:in `interpret'
from AttrAssignOneArgNode.java:33:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:155:in `call'
from DefaultMethod.java:161:in `call'
from CachingCallSite.java:300:in `cacheAndCall'
from CachingCallSite.java:118:in `callBlock'
from CachingCallSite.java:123:in `call'
from RubyClass.java:698:in `call'
from DynamicMethod.java:168:in `call'
from CachingCallSite.java:290:in `cacheAndCall'
from CachingCallSite.java:109:in `call'
from -e:1:in `_file_'
from -e:-1:in `load'
from Ruby.java:628:in `runScript'
from Ruby.java:550:in `runNormally'
from Ruby.java:396:in `runFromMain'
from Main.java:272:in `run'
from Main.java:117:in `run'
from Main.java:97:in `main'
Issue Links
- is superceded by
-
JRUBY-5316
jruby-openssl with IBM jvm 1.6.0
-
jruby/1.4 + jruby-openssl/0.6 + httpclient/2.1.5.2 should work.
% /home/nahi/java/jruby-1.4.0/bin/jruby -ve 'require "rubygems"; require "httpclient"; puts HTTPClient.get_content("https://www.amazon.com/")'
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_16) [i386-java]
[snip]
jruby-openssl/0.6 contains soem signature verification fixes.
Can you try again and let me know if it works for you (especially on AIX + IBM JVM) ?