vile/redmine_loader — Issue #6: Exporting results in error "NoMethodError (undefined method `to_time' for nil:NilClass)"
Author: cforce
Created: 2011-10-19 13:19:26+00:00
State: open

I, [2011-10-19T15:17:12.535035 #4200] INFO -- :

Processing LoaderController#export (for 172.25.252.11 at 2011-10-19 15:17:12) [POST]
I, [2011-10-19T15:17:12.535182 #4200] INFO -- : Parameters: {"project_id"=>"105", "action"=>"export", "authenticity_token"=>"ZwyelCuZL2eqMe0uAgGAVjDAyGok7RtwA60uTUJOmjQ=", "controller"=>"loader", "export"=>"Export Issue"}
D, [2011-10-19T15:17:12.536731 #4200] DEBUG -- : [4;36;1mSQL (0.6ms)[0m [0;1mSELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` [0m
D, [2011-10-19T15:17:12.537958 #4200] DEBUG -- : [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM `users` WHERE (`users`.`id` = 3) AND (users.status = 1) AND ( (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) ) [0m
D, [2011-10-19T15:17:12.539045 #4200] DEBUG -- : [4;36;1mProject Load (0.3ms)[0m [0;1mSELECT * FROM `projects` WHERE (`projects`.`id` = 105) [0m
D, [2011-10-19T15:17:12.540792 #4200] DEBUG -- : [4;35;1mIssue Load (0.9ms)[0m [0mSELECT * FROM `issues` WHERE (`issues`.project_id = 105) ORDER BY id, issues.created_on DESC[0m
D, [2011-10-19T15:17:12.545138 #4200] DEBUG -- : [4;36;1mIssueStatus Load (0.5ms)[0m [0;1mSELECT * FROM `issue_statuses` WHERE (`issue_statuses`.`id` IN (14,9,1,5)) [0m
D, [2011-10-19T15:17:12.547021 #4200] DEBUG -- : [4;35;1mTracker Load (0.3ms)[0m [0mSELECT * FROM `trackers` WHERE (`trackers`.`id` IN (1,2,3,4)) [0m
D, [2011-10-19T15:17:12.552330 #4200] DEBUG -- : [4;36;1mIssue Load (3.8ms)[0m [0;1mSELECT * FROM `issues` WHERE (parent_id=872) LIMIT 1[0m
D, [2011-10-19T15:17:12.553178 #4200] DEBUG -- : [4;35;1mIssueRelation Load (0.3ms)[0m [0mSELECT * FROM `issue_relations` WHERE (issue_to_id =872 AND relation_type = 'precedes') [0m
D, [2011-10-19T15:17:12.557940 #4200] DEBUG -- : [4;36;1mIssue Load (3.8ms)[0m [0;1mSELECT * FROM `issues` WHERE (parent_id=874) LIMIT 1[0m
D, [2011-10-19T15:17:12.558893 #4200] DEBUG -- : [4;35;1mIssueRelation Load (0.3ms)[0m [0mSELECT * FROM `issue_relations` WHERE (issue_to_id =874 AND relation_type = 'precedes') [0m
F, [2011-10-19T15:17:12.562664 #4200] FATAL -- :
NoMethodError (undefined method `to_time' for nil:NilClass):
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:365:in `generate_xml'
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:357:in `generate_xml'
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:356:in `each'
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:356:in `generate_xml'
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:345:in `generate_xml'
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:344:in `generate_xml'
vendor/plugins/redmine_loader/app/controllers/loader_controller.rb:328:in `export'
passenger (3.0.8) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.8) helper-scripts/passenger-spawn-server:99

I, [2011-10-19T15:17:12.564301 #4200] INFO -- : Rendering /opt/redmine-1.2.1d2/public/500.html (500 Internal Server Error)