IOError when using jruby + soap4r

Hi,

we’re trying to connect to a web service over https. Most of the
requests
returns ok, but every once in a while we get a “IOError: Connection
reset by
peer”

This only occurs when using JRuby, when running MRI (ruby 1.8.7,
2009-06-12
patchlevel 174) we haven’t seen this problem.

We’re running jruby 1.5.1, jruby-openssl 0.7, soap4r 1.5.8

Any ideas?

IOError (Connection reset by peer):

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/jruby-openssl-0.7/lib/openssl/buffering.rb:178:in
`do_write’

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/jruby-openssl-0.7/lib/openssl/buffering.rb:192:in
write' httpclient (2.1.5.2) lib/httpclient/session.rb:302:in<<’
httpclient (2.1.5.2) lib/httpclient/http.rb:446:in dump' httpclient (2.1.5.2) lib/httpclient/http.rb:803:indump’
httpclient (2.1.5.2) lib/httpclient/session.rb:527:in query' httpclient (2.1.5.2) lib/httpclient/timeout.rb:128:intimeout’
httpclient (2.1.5.2) lib/httpclient/session.rb:525:in query' httpclient (2.1.5.2) lib/httpclient/session.rb:147:inquery’
httpclient (2.1.5.2) lib/httpclient.rb:953:in do_get_block' httpclient (2.1.5.2) lib/httpclient.rb:765:indo_request’
httpclient (2.1.5.2) lib/httpclient.rb:848:in
protect_keep_alive_disconnected' httpclient (2.1.5.2) lib/httpclient.rb:764:indo_request’
httpclient (2.1.5.2) lib/httpclient.rb:666:in request' httpclient (2.1.5.2) lib/httpclient.rb:596:inpost’

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/streamHandler.rb:238:in
`send_post’

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/streamHandler.rb:172:in
`send’

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:179:in
`route’

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:143:in
`call’

/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb:181:in
call' (eval):6:infindFolder’
app/models/event.rb:33:in calendar' app/models/event.rb:20:infetch_events’
app/controllers/events_controller.rb:7:in `index’

/Thor M.

Hi,

Sorry for not responding long time. I slipped this mail. Please file
a ticket at http://bugs.jruby.org/ .

On Wed, Jun 30, 2010 at 21:35, Thor Henrichsen
[email protected] wrote:

we’re trying to connect to a web service over https. Most of the requests
returns ok, but every once in a while we get a “IOError: Connection reset by
peer”

This only occurs when using JRuby, when running MRI (ruby 1.8.7, 2009-06-12
patchlevel 174) we haven’t seen this problem.

We’re running jruby 1.5.1, jruby-openssl 0.7, soap4r 1.5.8

Any ideas?

Does the error happens when you run it as a client? (not from Rails
controller)
Would you please run the client with ‘jruby
-J-Djruby.backtrace.style=raw’ client.rb’ and show us the result?

Regards,
// NaHi


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email