System error

error:  Can't call method "prepare" on an undefined value at /usr/local/lib/site_perl/SJG/Configuration/DB.pm line 117.
context: 
... 
113:  my $self = shift(@_);
114:  my $query_nickname = shift(@_);
115:  my $query = shift(@_);
116: 
117:  $self->{"queries"}->{$query_nickname} = $self->{"db"}->prepare($query);
118: 
119:  return 1;
120:  }
121: 
... 
code stack:  /usr/local/lib/site_perl/SJG/Configuration/DB.pm:117
/usr/local/lib/site_perl/SJG/Configuration/DB.pm:89
/usr/local/lib/site_perl/SJG/NewsqOO.pm:37
/home/www/secure/ill/index.html:12
/home/www/secure/ill/archive/dhandler:3
raw error






























Can't call method "prepare" on an undefined value at /usr/local/lib/site_perl/SJG/Configuration/DB.pm line 117.


Trace begun at /usr/local/share/perl/5.14.2/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "prepare" on an undefined value at /usr/local/lib/site_perl/SJG/Configuration/DB.pm line 117.^J') called at /usr/local/lib/site_perl/SJG/Configuration/DB.pm line 117
SJG::Configuration::DB::prepare('SJG::Configuration::DB=HASH(0x7faf88fd5c20)', 'RESERVED', 'select * from queues where name=?') called at /usr/local/lib/site_perl/SJG/Configuration/DB.pm line 89
SJG::Configuration::DB::sql('SJG::Configuration::DB=HASH(0x7faf88fd5c20)', 'select * from queues where name=?', 'illq') called at /usr/local/lib/site_perl/SJG/NewsqOO.pm line 37
SJG::NewsqOO::get('SJG::NewsqOO', 'illq') called at /home/www/secure/ill/index.html line 12
HTML::Mason::Commands::__ANON__('month', 'June', 'day', 03, 'year', 2016, 'u', 'Announcements_For_August.html') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7faf8ad34a40)', 'month', 'June', 'day', 03, 'year', 2016, 'u', 'Announcements_For_August.html') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'month', 'June', 'day', 03, 'year', 2016, 'u', 'Announcements_For_August.html') called at /home/www/secure/ill/archive/dhandler line 3
HTML::Mason::Commands::__ANON__('u', 'Announcements_For_August.html') called at /usr/local/share/perl/5.14.2/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7faf8908cf98)', 'u', 'Announcements_For_August.html') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'u', 'Announcements_For_August.html') called at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.14.2/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7faf88fd6868)') called at /usr/local/share/perl/5.14.2/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7faf88fd6868)') called at /usr/local/share/perl/5.14.2/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7faf88fd5c50)', 'Apache2::RequestRec=SCALAR(0x7faf88349300)') called at (eval 29) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7faf88349300)') called at -e line 0
eval {...} at -e line 0