Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

ekuseru fails when using jruby #3

Open
veldtmana opened this issue Jan 12, 2012 · 7 comments · Fixed by #4
Open

ekuseru fails when using jruby #3

veldtmana opened this issue Jan 12, 2012 · 7 comments · Fixed by #4

Comments

@veldtmana
Copy link

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.

@jalkoby
Copy link
Collaborator

jalkoby commented Jan 13, 2012

hmm, I run your test app and get no errors in generation xls. Can you detail tell about your problem and environment.

@veldtmana
Copy link
Author

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'

@veldtmana veldtmana reopened this Jan 16, 2012
@Gerhardk
Copy link

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

@jalkoby
Copy link
Collaborator

jalkoby commented Jan 26, 2012

please put all error trace

@veldtmana
Copy link
Author

That is the problem, there is no error trace provided apart from what I've shown

@veldtmana
Copy link
Author

And the error trace references a line in the template that does not exist

@keikun17
Copy link
Contributor

keikun17 commented Jan 3, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants