ekuseru
ekuseru copied to clipboard
ekuseru fails when using jruby
Hi there,
It seems that ekuseru is not jruby compatible:
I have created a test app that is set up so it can run on either ruby or jruby (see the app's gemfile):
https://github.com/veldtmana/ekuseru_jruby_test_app
I the app is able to generate a spreadsheet using ruby 1.92 but not jruby. I am not sure if you are very familiar with the jruby environment but it is really easy to swith between the two with rvm.
If you start the app and go to: localhost:3000/greeter/say_hello.xls you will get an error with jruby but not ruby.
Could you please look at this and see if it is something simple to fix... I have tried to see what causes the error but I am stumped.
hmm, I run your test app and get no errors in generation xls. Can you detail tell about your problem and environment.
Hi There,
Thanks for checking it out.
The stack that fails:
jruby: jruby 1.6.5 (ruby-1.9.2-p136) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java] note: ruby 1.9.2 is specified
rails: rails 3.0.11
other - see gemfile
The error:
Started GET "/greeter/say_hello.xls" for 0:0:0:0:0:0:0:1 at 2012-01-16 12:36:43 +0200 Processing by GreeterController#say_hello as XLS Rendered greeter/say_hello.xls.eku (75.0ms) Completed 500 Internal Server Error in 128ms
ActionView::Template::Error (private method 'select' called for "Hello World":String): app/views/greeter/say_hello.xls.eku:22:in '_app_views_greeter_say_hello_xls_eku___1180639306_4774_0'
Hey I am getting the sort of the same error when running on Jruby 1.6.5 on Ubuntu. Environment: Ubuntu 10.04 Jruby 1.6.5 Rails 3.0.10
Error: ActionView::Template::Error You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.select
please put all error trace
That is the problem, there is no error trace provided apart from what I've shown
And the error trace references a line in the template that does not exist
In my case, it only happens in production under tomcat (running prod with thin, it doesn't happen). And just like what @veldtmana gets, the error trace points to nowhere. I traced the error down to the raw source used for the template and turns out that this is a bug with an old spreadsheets
gem and updating it to 0.6.5.9
fixes it for me.
was really tricky