<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Phil for replying.<div><br class="webkit-block-placeholder"></div><div>We are using &nbsp;tzinfo_timezone plugin for changing dates before displaying or storing it the database.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>This is the exception stack trace</div><div><br><i>A ActionView::TemplateError occurred in groups#load_app:<br><br>can't modify frozen object<br>On line #7 of app/views/groups/_groups_smslist.haml<br><br>&nbsp;&nbsp;4: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- c = 0<br>&nbsp;&nbsp;5: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- for post in recent_posts<br>&nbsp;&nbsp;6: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%div{:class=&gt;'smslist_' + (c % 2).to_s}<br>&nbsp;&nbsp;7: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= post.text + &nbsp;' by ' + b(post.author.login) + ' on ' + b(post.channel.name) + i(' (' + post.created_at.to_human_label + ')')<br>&nbsp;&nbsp;8: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- c = c+1<br>&nbsp;&nbsp;9: &nbsp;&nbsp;- else<br>&nbsp;&nbsp;10: &nbsp;&nbsp;&nbsp;&nbsp;%i There are no posts yet!<br>&nbsp;&nbsp;#{RAILS_ROOT}/app/views/groups/_groups_smslist.haml:7<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/tzinfo_timezone/lib/tzinfo_timezone.rb:215:in `tzinfo'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/tzinfo_timezone/lib/tzinfo_timezone.rb:189:in `utc_to_local'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/tztime/lib/tz_time_helpers/active_record_methods.rb:16:in `created_at'<br>&nbsp;&nbsp;(eval):22:in `_render_haml_11'<br>&nbsp;&nbsp;(eval):18:in `each'<br>&nbsp;&nbsp;(eval):18:in `_render_haml_11'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:431:in `send'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:431:in `compile'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:183:in `to_html'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/template.rb:69:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:416:in `delegate_render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:299:in `render_template_old'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/template.rb:96:in `render_template'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:275:in `render_without_haml'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:59:in `render_partial'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:58:in `render_partial'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:287:in `render_without_haml'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'<br>&nbsp;&nbsp;(eval):11:in `_render_haml_35'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:431:in `send'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:431:in `compile'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:183:in `to_html'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/template.rb:69:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:416:in `delegate_render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:299:in `render_template_old'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/template.rb:96:in `render_template'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:275:in `render_without_haml'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:59:in `render_partial'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:58:in `render_partial'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:287:in `render_without_haml'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'<br>&nbsp;&nbsp;(eval):24:in `_render_haml_32'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:431:in `send'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:431:in `compile'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/engine.rb:183:in `to_html'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/template.rb:69:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:416:in `delegate_render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:299:in `render_template_old'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/template.rb:96:in `render_template'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:275:in `render_without_haml'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:59:in `render_partial'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:58:in `render_partial'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:287:in `render_without_haml'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb:17:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:597:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:459:in `replace_html'<br>&nbsp;&nbsp;#{RAILS_ROOT}/app/controllers/application.rb:90:in `render_application'<br>&nbsp;&nbsp;#{RAILS_ROOT}/app/controllers/application.rb:17:in `__bind_1201115799_598358'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb:44:in `[]'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb:44:in `instance_exec'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:313:in `initialize'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:769:in `new'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:769:in `render_with_no_layout'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:256:in `render_without_benchmark'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'<br>&nbsp;&nbsp;/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'<br>&nbsp;&nbsp;#{RAILS_ROOT}/app/controllers/application.rb:16:in `load_app'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `send'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `perform_action_without_filters'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/app/controllers/application.rb:111:in `set_timezone'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:456:in `send'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:456:in `call'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:449:in `call'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'<br>&nbsp;&nbsp;/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `send'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `process_without_filters'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in `process_without_session_management_support'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `sass_old_process'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/plugins/haml/lib/sass/plugin.rb:124:in `process'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'<br>&nbsp;&nbsp;#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:76:in `process'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `synchronize'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in `process'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:159:in `process_client'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `each'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `process_client'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `initialize'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `new'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `initialize'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `new'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:282:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `each'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/command.rb:212:in `run'<br>&nbsp;&nbsp;/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281<br>&nbsp;&nbsp;/usr/bin/mongrel_rails:16:in `load'<br>&nbsp;&nbsp;/usr/bin/mongrel_rails:16</i></div><div><br class="webkit-block-placeholder"></div><div>The exception is happening in that plugin. I am not sure what is happening. Has anybody else have come across this problem?</div><div><br class="webkit-block-placeholder"></div><div>Rgds,</div><div><br></div><div>--Siva Jagadeesan</div><div><br class="webkit-block-placeholder"></div><div><div><div>On Jan 23, 2008, at 2:21 PM, Philip Ross wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 23/01/2008, Siva Jagadeesan &lt;<a href="mailto:siva@yewoh.com">siva@yewoh.com</a>&gt; wrote:<br><blockquote type="cite">Hi all<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">At yewoh.com , we keep randomly getting "can't modify frozen object" error.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any idea?<br></blockquote><br>Hi Siva,<br><br>It's a bit difficult to work out what is going on from just that error<br>message alone. It may not be anything to do with TZInfo. If you've got<br>a stack trace for the error in your logs, it should tell you what is<br>causing the problems.<br><br>TZInfo does use the freeze method to protect some of the arrays that<br>are returned. If you are accessing these methods and then attempting<br>to modify the results, then this may be the cause of the problem.<br><br>Regards,<br><br>Phil<br><br>-- <br>Phil Ross<br><a href="http://tzinfo.rubyforge.org/">http://tzinfo.rubyforge.org/</a> -- DST-aware timezone library for Ruby<br>_______________________________________________<br>TZInfo-users mailing list<br><a href="mailto:TZInfo-users@rubyforge.org">TZInfo-users@rubyforge.org</a><br>http://rubyforge.org/mailman/listinfo/tzinfo-users<br></blockquote></div><br></div></body></html>