[jruby-dev] [jira] (JRUBY-6938) OpenSSL error immediately at connect (trustAnchors)
Topper Bowers created JRUBY-6938 OpenSSL error immediately at connect (trustAnchors) Issue Type: Bug Affects Versions: JRuby 1.7.0.RC2 Assignee: Unassigned Components: OpenSSL Created: 15/Oct/12 9:26 AM Description: Anytime an outgoing SSL connection is made I'm getting the following error: OpenSSL::X509::StoreError: setting default path failed: the trustAnchors parameter must be non-empty Full stack trace: https://gist.github.com/dc5d66f37d8491de7f07 Minimal to reproduce: require 'open-uri'; open("https://google.com") I'm seeing this from bundle install, from running my specs... basically anywhere that an SSL connection is made. In fact, just doing this: jruby -r openssl -S irb Will cause the error (with a smaller stack trace: https://gist.github.com/44d9db6b98003d80618a ) Environment: OS X 10.7.4, rvm 1.16.11, jruby 1.7.0.RC2, gem 1.8.24, bundler 1.2.1, jruby-openssl 0.7.7, java openjdk version "1.7.0-u6-b01" Project: JRuby Priority: Major Reporter: Topper Bowers This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jruby-dev] [jira] (JRUBY-6939) Intermittent Errno::EBADF from RubyKernel.puts when using ScriptingContainer
Trejkaz created JRUBY-6939 Intermittent Errno::EBADF from RubyKernel.puts when using ScriptingContainer Issue Type: Bug Affects Versions: JRuby 1.7.0.RC2 Assignee: Unassigned Components: Embedding Created: 15/Oct/12 7:30 PM Description: We have various unit tests which instantiate a ScriptingContainer, run tests against it and then terminate it. Various other people report a similar issue of Errno::EBADF from JRuby when embedding it, but in their cases their issue was resolved by properly terminating the container. In our case, the test is already terminating the container during tearDown(). org.jruby.embed.EvalFailedException: (Errno::EBADF) Bad file descriptor at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1263) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1256) at com.acme.integration.vendor.jruby.TestScriptingContainer.runScriptlet(TestScriptingContainer.java:126) at com.acme.integration.vendor.jruby.TestScriptingContainer.testMiniTestAutoRun(TestScriptingContainer.java:60) [omitting test framework stuff] Caused by: org.jruby.exceptions.RaiseException: (Errno::EBADF) Bad file descriptor at org.jruby.RubyIO.write(org/jruby/RubyIO.java:1401) at org.jruby.RubyIO.write(org/jruby/RubyIO.java:2378) at org.jruby.RubyIO.puts(org/jruby/RubyIO.java:2333) at org.jruby.RubyKernel.puts(org/jruby/RubyKernel.java:552) at RUBY.(root)(
[jruby-dev] [jira] (JRUBY-6940) LocalJumpError should be raised when an RSpec spec returns from the top level
Hiro Asari created JRUBY-6940 LocalJumpError should be raised when an RSpec spec returns from the top level Issue Type: Bug Affects Versions: JRuby 1.7.0.RC2, JRuby 1.7.0 Assignee: Thomas E Enebo Created: 15/Oct/12 8:00 PM Description: Given: top_level_return_spec.rb require 'rspec' return MRI raises a LocalJumpError but JRuby does not. $ ruby -v -S rspec top_level_return_spec.rb ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0] /Users/asari/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rspec-core (>= 0) amongst [bundler-1.2.1, rake-0.9.2.2, rubygems-bundler-1.1.0, rvm-1.11.3.5] (Gem::LoadError) from /Users/asari/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Users/asari/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem' from /usr/bin/rspec:18:in `' $ jruby -v -S rspec top_level_return_spec.rb jruby 1.7.0.RC2 (1.9.3p203) 2012-10-15 bcdd858 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_07-b10 [darwin-x86_64] No examples found. Finished in 0.002 seconds 0 examples, 0 failures It is not clear to me, though, if this is an MRI bug or a JRuby bug yet. Environment: RSpec (2.x?) Project: JRuby Priority: Minor Reporter: Hiro Asari This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
[jruby-dev] [jira] (JRUBY-6941) Imported Java class becomes NotFound midway through execution - Imported fine by jruby -X+C but not jruby -X-C
André Allavena created JRUBY-6941 Imported Java class becomes NotFound midway through execution - Imported fine by jruby -X+C but not jruby -X-C Issue Type: Bug Affects Versions: JRuby 1.7.0.RC2, JRuby 1.6.8 Assignee: Unassigned Components: Java Integration Created: 15/Oct/12 9:22 PM Description: My code fails midway through identical iterations with a NativeException: java.lang.ClassNotFoundException. The code repeats the same thing over and over. Code works fine if all is in one file, however it fails towards the 50th iteration if it's included from another file (which iteration exactly changes each time, but so far in the range 48 to 56) Case 1: jruby ./integration-test.rb -> All fine [Prints out numbers from 1 to 100] Case 2: jruby ./integration-test-2files.rb -> NativeException: java.lang.ClassNotFoundException [Prints out numbers from 1 to 52, then spews out a java/lang/ClassLoader.java:373:in `findClass': java.lang.ClassNotFoundException: com.xxx.yyy.zzz.ttt.GGClassName (NativeException) from java/lang/ClassLoader.java:321:in `loadClass' from java/lang/ClassLoader.java:266:in `loadClass' from java/lang/Class.java:-2:in `forName0' from java/lang/Class.java:264:in `forName' from java/io/ObjectInputStream.java:621:in `resolveClass' from java/io/ObjectInputStream.java:1592:in `readNonProxyDesc' from java/io/ObjectInputStream.java:1513:in `readClassDesc' The error message is slightly different with jruby 1.7.0RC2 LoadError: load error: integration-test – java.lang.ClassNotFoundException: xxx.yyy.zzz.ttt.GGClassName require at org/jruby/RubyKernel.java:1019 As subsequent test: Note: jruby -X-C systematically fails, on both files [All 3 versions tested, error message varies, but always a ClassNotFound error] jruby -X+C always works, on both files. [All 3 versions tested] ./jruby-1.6.8/bin/jruby -X-C integration-test.rb NativeException: java.lang.ClassNotFoundException: xxx/yyy/zzz/ttt/GGClassNale ReadStuff at integration-test.rb:13 (root) at integration-test.rb:21 upto at org/jruby/RubyInteger.java:135 (root) at integration-test.rb:21 [1]373 exit 1 ./jruby-1.6.8/bin/jruby -X-C integration-test.rb -- #./integration-test-2files.rb require "java" require 'integration-test' -- #./integration-test.rb require "java" module JavaRead require 'myjar.jar' include_package 'com.xxx.yyy.zzz.ttt' end def JavaRead::ReadStuff(file) myin= java.io.ObjectInputStream.new(java.io.BufferedInputStream.new(java.io.FileInputStream.new(java.io.File.new(file begin while obj= myin.readObject end rescue java.io.EOFException # Don't know why Java is raising this one# Likely strange input files end end 1.upto(100) {|i| JavaRead::ReadStuff("import/12.dmp") ; puts i} Tested and reproduced with jruby jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2011-10-27 6586) (OpenJDK 64-Bit Server VM 1.6.0_24) [amd64-java] jruby 1.6.8 (ruby-1.8.7-p357) (2012-09-18 1772b40) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java] jruby 1.7.0.RC2 (1.9.3p203) 2012-10-09 142cc7b on OpenJDK 64-Bit Server VM 1.6.0_24-b24 [linux-amd64] on a Ubuntu Precise Pagolin Environment: Linux Ubuntu Precise Pagolin Project: JRuby Priority: Major Reporter: André Allavena This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For