2007-08-20
求助:We're sorry, but something went wrong.
我是ROR新手,在使用的过程中突然遇到了We're sorry, but something went wrong.的错误。
重启机器后就不再有这个错误,但只要停掉了WEB Server,再次启动后,打开任一页面都会出现这个错误:
Status: 500 Internal Server Error Content-Type: text/html
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
日志内容如下:
希望能得到各位大侠的帮助。
重启机器后就不再有这个错误,但只要停掉了WEB Server,再次启动后,打开任一页面都会出现这个错误:
Status: 500 Internal Server Error Content-Type: text/html
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
日志内容如下:
Session contains objects whose class definition isn't available. Remember to require the classes for all objects kept in the session. (Original exception: uninitialized constant Module::TTree [NameError]) C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_process.rb:161:in `stale_session_check!' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_process.rb:110:in `session' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1052:in `assign_shortcuts_without_flash' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/flash.rb:140:in `assign_shortcuts' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:424:in `process_without_filters' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:78:in `process' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in `synchronize' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in `process' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:618:in `process_client' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in `each' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in `process_client' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `initialize' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `new' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `initialize' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `new' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:271:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in `each' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:127:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/command.rb:211:in `run' C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:243 C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3
希望能得到各位大侠的帮助。
评论
shayf
2008-02-09
mysql 未启动也有可能报这个错
renyucai
2007-11-02
你好!我也是个出学者。我在做程序的时候也出现了你说的问题。能不能帮忙说的更详细一些啊。
bernieyoo
2007-08-22
终于找到原因了。。。。
我在session中保存了一个TTree对象,这个对象不是通过model来定义的,而是在运行时根据数据库描述动态生成的,这样在恢复一个session时就出现了找不到TTree对象的错误。
解决方法就简单了,要么不在session中保存这个对象,要么把需要的值转换为hash或array再保存到session中就可以了。
我在session中保存了一个TTree对象,这个对象不是通过model来定义的,而是在运行时根据数据库描述动态生成的,这样在恢复一个session时就出现了找不到TTree对象的错误。
解决方法就简单了,要么不在session中保存这个对象,要么把需要的值转换为hash或array再保存到session中就可以了。
bernieyoo
2007-08-21
没有人能帮忙吗?
我现在找到了个笨办法,那就是每次启动WEBrick之前,先把session下所有文件删掉就可以了。写了个批处理来做这事。
先将就着吧……
我现在找到了个笨办法,那就是每次启动WEBrick之前,先把session下所有文件删掉就可以了。写了个批处理来做这事。
先将就着吧……
- 浏览: 2105 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
Rails中运行时修改了表结 ...
bernieyoo 写道如题. 例如,我在Rails程序运行时,给一个表t1s添 ...
-- by sina2009 -
Rails中运行时修改了表结 ...
你得再从数据块取一遍。
-- by dazuiba -
求助:We're sorry, but s ...
mysql 未启动也有可能报这个错
-- by shayf -
求助:We're sorry, but s ...
你好!我也是个出学者。我在做程序的时候也出现了你说的问题。能不能帮忙说的更详细一 ...
-- by renyucai -
求助:We're sorry, but s ...
终于找到原因了。。。。我在session中保存了一个TTree对象,这个对象不是 ...
-- by bernieyoo






评论排行榜