System error

error:  nothing with which to lookup league. at /home/ec2-user/DABackend/Exchange.pm line 6217.
context: 
... 
6213:  $league_hnd = $db->select("select league_hnd from league where name=?",$key);
6214:  $league_hnd = $league_hnd->[0]->{league_hnd} || die "No league found for $key, $self->{params}{type}";
6215: 
6216:  } elsif (not $league_hnd) {
6217:  die "nothing with which to lookup league.";
6218:  }
6219: 
6220: 
6221:  # get a League object (sportrunner/lib/League.pm):
... 
code stack:  /home/ec2-user/DABackend/Exchange.pm:6217
/home/ec2-user/DAFrontEnd/Modules/BackendConnector.pm:53
/home/ec2-user/DAFrontEnd/Modules/Getter.pm:293
/home/ec2-user/DAFrontEnd/Modules/Getter.pm:264
/home/ec2-user/DAFrontEnd/comps/LeaguePage:123
/home/ec2-user/DAFrontEnd/leagues/dhandler:2
/home/ec2-user/DAFrontEnd/autohandler:101
raw error






























nothing with which to lookup league. at /home/ec2-user/DABackend/Exchange.pm line 6217.


Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('nothing with which to lookup league. at /home/ec2-user/DABackend/Exchange.pm line 6217.^J') called at /home/ec2-user/DABackend/Exchange.pm line 6217
Exchange::get_league('Exchange', 'BackendEnvelope=HASH(0xd3838d8)') called at /home/ec2-user/DAFrontEnd/Modules/BackendConnector.pm line 53
BackendConnector::raw_connect_da('BackendConnector', 'Exchange', 'get_league', 'sport', 'track', 'league_hnd', 0, 'include_teams', 1) called at /home/ec2-user/DAFrontEnd/Modules/Getter.pm line 293
Getter::get_attribute('Getter=HASH(0xd048470)', 'get_league', 'sport', 'track', 'league_hnd', 0, 'include_teams', 1) called at /home/ec2-user/DAFrontEnd/Modules/Getter.pm line 264
Getter::AUTOLOAD('Getter=HASH(0xd048470)', 'sport', 'track', 'league_hnd', 0, 'include_teams', 1) called at /home/ec2-user/DAFrontEnd/comps/LeaguePage line 123
HTML::Mason::Commands::__ANON__('sport', 'track', 'league_hnd', 0) called at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xcc3cf08)', 'sport', 'track', 'league_hnd', 0) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'sport', 'track', 'league_hnd', 0) called at /home/ec2-user/DAFrontEnd/leagues/dhandler line 2
HTML::Mason::Commands::__ANON__('error_message', '', 'autohandler_cache', 'CHI::Driver::Memcached__WITH__CHI::Driver::Role::Universal=HASH(0xd2dcbf8)') called at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd3e0498)', 'error_message', '', 'autohandler_cache', 'CHI::Driver::Memcached__WITH__CHI::Driver::Role::Universal=HASH(0xd2dcbf8)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'error_message', '', 'autohandler_cache', 'CHI::Driver::Memcached__WITH__CHI::Driver::Role::Universal=HASH(0xd2dcbf8)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::PSGI=HASH(0xd15cf70)', 'error_message', '', 'autohandler_cache', 'CHI::Driver::Memcached__WITH__CHI::Driver::Role::Universal=HASH(0xd2dcbf8)') called at /home/ec2-user/DAFrontEnd/autohandler line 101
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xafda078)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::PSGI=HASH(0xd15cf70)') called at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 96
eval {...} at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 96
HTML::Mason::Request::PSGI::exec('HTML::Mason::Request::PSGI=HASH(0xd15cf70)') called at /usr/local/share/perl5/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 59
eval {...} at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 59
HTML::Mason::PSGIHandler::invoke_mason('HTML::Mason::PSGIHandler=HASH(0x184e318)', 'HASH(0x18132e0)', 'HASH(0xd29fe58)') called at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 48
HTML::Mason::PSGIHandler::handle_psgi('HTML::Mason::PSGIHandler=HASH(0x184e318)', 'HASH(0xd31d670)') called at /da-front-app.psgi line 34
Plack::Sandbox::_2fda_2dfront_2dapp_2epsgi::__ANON__('HASH(0xd31d670)') called at /usr/local/share/perl5/Plack/Util.pm line 145
eval {...} at /usr/local/share/perl5/Plack/Util.pm line 145
Plack::Util::run_app('CODE(0x10d9528)', 'HASH(0xd31d670)') called at /usr/local/share/perl5/Starman/Server.pm line 195
Starman::Server::dispatch_request('Starman::Server=HASH(0x1836798)', 'HASH(0xd31d670)') called at /usr/local/share/perl5/Starman/Server.pm line 298
Starman::Server::process_request('Starman::Server=HASH(0x1836798)', 'Net::Server::Proto::TCP=GLOB(0xcc4a858)') called at /usr/local/share/perl5/Net/Server.pm line 72
Net::Server::run_client_connection('Starman::Server=HASH(0x1836798)') called at /usr/local/share/perl5/Net/Server/PreFork.pm line 225
eval {...} at /usr/local/share/perl5/Net/Server/PreFork.pm line 225
Net::Server::PreFork::run_child('Starman::Server=HASH(0x1836798)') called at /usr/local/share/perl5/Net/Server/PreFork.pm line 183
Net::Server::PreFork::run_n_children('Starman::Server=HASH(0x1836798)', 1) called at /usr/local/share/perl5/Net/Server/PreFork.pm line 373
Net::Server::PreFork::coordinate_children('Starman::Server=HASH(0x1836798)') called at /usr/local/share/perl5/Net/Server/PreFork.pm line 327
Net::Server::PreFork::run_parent('Starman::Server=HASH(0x1836798)') called at /usr/local/share/perl5/Starman/Server.pm line 164
Starman::Server::run_parent('Starman::Server=HASH(0x1836798)') called at /usr/local/share/perl5/Net/Server/PreFork.pm line 109
Net::Server::PreFork::loop('Starman::Server=HASH(0x1836798)') called at /usr/local/share/perl5/Net/Server.pm line 58
Net::Server::run('Starman::Server=HASH(0x1836798)', 'port', 'ARRAY(0x1e430b0)', 'host', '*', 'proto', 'tcp', 'serialize', 'none', 'min_servers', 4, 'min_spare_servers', 3, 'max_spare_servers', 3, 'max_servers', 4, 'max_requests', 1000, 'user', 0, 'group', '0 0 0', 'listen', 1024, 'check_for_waiting', 1, 'no_client_stdout', 1, 'log_file', '/home/ec2-user/starman_errors.log') called at /usr/local/share/perl5/Starman/Server.pm line 94
Starman::Server::run('Starman::Server=HASH(0x1836798)', 'CODE(0x10d9528)', 'HASH(0x1ee0428)') called at /usr/local/share/perl5/Plack/Handler/Starman.pm line 25
Plack::Handler::Starman::run('Plack::Handler::Starman=HASH(0x10d5710)', 'CODE(0x10d9528)') called at /usr/local/share/perl5/Plack/Loader.pm line 84
Plack::Loader::run('Plack::Loader=HASH(0xe7ddd8)', 'Plack::Handler::Starman=HASH(0x10d5710)') called at /usr/local/share/perl5/Plack/Runner.pm line 277
Plack::Runner::run('Plack::Runner=HASH(0xe60c20)') called at /usr/local/bin/starman line 38