System error

error:  Can't locate object method "pretty" via package "" (perhaps you forgot to load ""?) at /home/martink/svn/colorsummarizer/release/0.70/lib/imagereport.pm line 156, <F> line 8352.
context: 
... 
152:  }
153: 
154:  #my $xml_text = join("\n",map {join(" ",@$_)} @xml);
155:  #my $dataXML = XMLin($xml_text);
156:  my $jsonString = JSON::XS->new->pretty(1)->encode($json);
157:  my $jsonString_basic = JSON::XS->new->pretty(1)->canonical(1)->encode($json_basic);
158: 
159:  push @xml, ["</imgdata>"];
160:  return (\@lines,\@xml,$jsonString,$jsonString_basic);
... 
code stack:  /home/martink/svn/colorsummarizer/release/0.70/lib/imagereport.pm:156
/home/martink/www/htdocs/color-summarizer/index.mhtml:147
/home/martink/www/htdocs/color-summarizer/autohandler:29
/usr/local/share/perl5/5.32/HTML/Mason/Request.pm:948
/etc/httpd/mason/mk/obj/2535643978/public/color-summarizer/autohandler.obj:145
raw error






























Can't locate object method "pretty" via package "" (perhaps you forgot to load ""?) at /home/martink/svn/colorsummarizer/release/0.70/lib/imagereport.pm line 156, <F> line 8352.


Trace begun at /usr/local/share/perl5/5.32/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "pretty" via package "" (perhaps you forgot to load ""?) at /home/martink/svn/colorsummarizer/release/0.70/lib/imagereport.pm line 156, <F> line 8352.^J') called at /home/martink/svn/colorsummarizer/release/0.70/lib/imagereport.pm line 156
imagereport::text_report('-img_data', 'HASH(0x7f1aff2ecae0)', '-histogram', 1, '-cluster_data', 'HASH(0x7f1aa89afc18)', '-histogram_data', 'HASH(0x7f1affd326d0)', '-pixel', undef, '-filename', 0) called at /home/martink/www/htdocs/color-summarizer/index.mhtml line 147
HTML::Mason::Commands::__ANON__('pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg', 'conf', 'HASH(0x7f1aa839af80)') called at /usr/local/share/perl5/5.32/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1aa9c0bc20)', 'pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg', 'conf', 'HASH(0x7f1aa839af80)') called at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg', 'conf', 'HASH(0x7f1aa839af80)') called at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f1aff33b188)', 'conf', 'HASH(0x7f1aa839af80)') called at /home/martink/www/htdocs/color-summarizer/autohandler line 29
HTML::Mason::Commands::__ANON__('pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg') called at /usr/local/share/perl5/5.32/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7f1aa8ed1878)', 'main', 'pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg') called at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 948
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7f1aff33b188)', 'main', 'pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg') called at /etc/httpd/mason/mk/obj/2535643978/public/color-summarizer/autohandler.obj line 145
HTML::Mason::Commands::__ANON__('pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg') called at /usr/local/share/perl5/5.32/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1aa8ed1878)', 'pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg') called at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'pixel', 1, 'histogram', 1, 'text', 1, 'precision', 'low', 'url', 'mkweb.bcgsc.ca/color-summarizer/img/tucan.jpg') called at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f1aff33b188)') called at /usr/local/share/perl5/5.32/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f1aff33b188)') called at /usr/local/share/perl5/5.32/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f1b38deedf0)', 'Apache2::RequestRec=SCALAR(0x7f1aa82e98b8)') called at (eval 25) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7f1aa82e98b8)') called at -e line 0
eval {...} at -e line 0