nirvdrum has joined #jruby
ur5us has quit [Ping timeout: 260 seconds]
<fzakaria[m]> Hey headius
<fzakaria[m]> Is there a way to convert a Ruby exception to a Throwable ?
<fzakaria[m]> I would like to rescue all exceptions (Ruby Exceptions or Throwables); and pass them to a Java function that expects a throwable
ur5us has joined #jruby
<headius[m]> Hmmm
<headius[m]> to_java(java.lang.Throwable) might work
<headius[m]> If not we should add that
<headius[m]> The back door way would be JRuby.ref(exc).to_throwable
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #jruby
<headius[m]> Just to_java might do it too, not sure if we set up Throwable as a default
<fzakaria[m]> I saw this really old issue of yours -- https://github.com/jruby/jruby/issues/4781
<fzakaria[m]> I don't seem to have `JRuby.ref` on my version either hmm; the digging continues
<fzakaria[m]> I'm sure this is cause i'm on an old version; I'll hack around this :D
<headius[m]> Yeah, that has changed somewhat over the past few versions
<fzakaria[m]> we are finally upgrading to 9.2 so it will glorious
nirvdrum has quit [Ping timeout: 258 seconds]
nirvdrum has joined #jruby
ur5us has quit [Ping timeout: 260 seconds]
nirvdrum has quit [Ping timeout: 260 seconds]
ilbelkyr has quit [*.net *.split]
ilbelkyr has joined #jruby
nirvdrum has joined #jruby
ur5us has joined #jruby
havenwood has quit [Ping timeout: 246 seconds]
havenwood has joined #jruby
havenwood has quit [Changing host]
havenwood has joined #jruby
lanceball has quit [Ping timeout: 264 seconds]
lanceball has joined #jruby
ur5us has quit [Ping timeout: 244 seconds]
<venkatkms[m]> @headius: On the Indy and Rails issue, do you think it is a losing battle because it is a older ar-jdbc version (which may be Indy unfriendly)?
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
subbu is now known as subbu|lunch
<headius[m]> howdy howdy
<headius[m]> venkatkms: no that shouldn't be a problem
<headius[m]> fzakaria: oh right not even 9.2
<headius[m]> it looks like 9.2 was the first version that had the work on Ruby exceptions and throwables
<headius[m]> so I think if you update to 9.2 you'll be able to just `to_java` and get the throwable for the exception
<headius[m]> it will be the same one always because it's cached
<headius[m]> I mean same throwable for a given Exception
<venkatkms[m]> headius: oh ok. Thanks. Will await your investigation. Hopefully the two exceptions are caused by a simpler underlying root case
<venkatkms[m]> headius: Migration of this large Rails app to JRuby 9.2 / JDK 14 (non indy) is going fine till now
<venkatkms[m]> We do plan to put this in production in a few days baring any last minute surprises. I am quite happy that 9.2 is quite stable
<headius[m]> yeah thank you for pushing on indy and reporting issues... I have mostly committed myself to making always-on-indy possible for 9.3 so we won't diverge compatibility anymore
<venkatkms[m]> We found that 9.2 needs to be used with latest jruby-openssl. Oldish version of jruby-openssl in Gemfile.lock fails with a confusing error.
<venkatkms[m]> btw, I also plan to do a benchmark in AWS for similar comparison (what I shared earlier is laptop based run)
subbu|lunch is now known as subbu
lucasb has joined #jruby
<headius[m]> venkatkms: good idea anyway but that's interesting to know
<headius[m]> jruby-openssl is a really tough library to maintain
<headius[m]> venkatkms: looking into the ArgumentError now
<headius[m]> huh
<headius[m]> the method it calls is pretty simple
<headius[m]> venkatkms: this might be a bug in ar-jdbc
<headius[m]> I will update bug
<headius[m]> probably should get refiled as ar-jdbc bug and I should file a JRuby bug for better handling of these mismatched `required` rigs
sagax has quit [Ping timeout: 260 seconds]
ur5us has joined #jruby
lucasb has quit [Quit: Connection closed for inactivity]
<headius[m]> wow this k77ch7 guy is kicking ass on encoding failures
<headius[m]> lopex: I see you merged his stuff... did you do any releases yet?
<lopex> headius[m]: no
<headius[m]> ok
<headius[m]> I'm going to ask him if he's got anything else in the pipeline since releasing is a PITA