arton / rjb

Ruby Java Bridge
https://www.artonx.org/collabo/backyard/?RubyJavaBridge
GNU Lesser General Public License v2.1
117 stars 34 forks source link

RJB and Sidekiq #37

Closed thiagocifani closed 8 years ago

thiagocifani commented 9 years ago

Hi,

I am doing some reports with jasper in a rails application through your gem, but when I try to generate this reports with sidekiq I got a segfault error Any idea how I can fix this problem? Without sidekiq it is working fine, but the amount of data is to big to not use a background job. The log follows below:

[1] pry(#JasperOnRailsPdf::PdfGenerator)> jasper_compile_mananger = Rjb::import 'net.sf.jasperreports.engine.JasperCompileManager' (pry):1: [BUG] Segmentation fault at 0x00000200000088 ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]

arton commented 9 years ago

Sorry for late respond.

Can you import other jasper class other than JaspterCompileManager ?

thiagocifani commented 9 years ago

No, I dont. Any class using RJB is not being loaded or imported when I try to use with sidekiq. I have created a api to use the rjb as a standalone rails app. It worked for me, but didnt solve this issue.

arton commented 9 years ago

I wonder if you could run the standalone app with $debug=true and $verbose=true, and log standard output and show me it.