I’ve recently upgraded a JRuby/Rails application from JRuby 1.6.3 (1.8 compatibility mode) to 1.6.8 (1.9 mode). Everything was working out fine except for actions relying on internal CSV library (FasterCSV in 1.8 mode). The error can't convert Hash into String was thrown as CSV tries to generate the csv string.
This had the hallmarks that the application was still under the 1.8 mode (after a deploy to tomcat). The following XML entry in web.xml was essential to enforce the 1.9 mode:
|
1 2 3 4 |
<context-param>
<param-name>jruby.compat.version</param-name>
<param-value>1.9</param-value>
</context-param> |
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.