[Catalyst] CATALYST_DEBUG is broken?

Alex Povolotsky tarkhil at over.ru
Thu Jan 7 13:31:49 GMT 2010


Hello!

Catalyst::Runtime 5.80016, freshly generated script, nearly empty 
application.

Running with CATALYST_DEBUG=1, on every incoming request

[error] Caught exception in engine "Attribute (_static_debug_message) 
does not pass the type constraint because: Validation failed for 'Str' 
failed with value ARRAY(0x9a75488) at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/Static/Simple.pm 
line 245
     
Catalyst::Plugin::Static::Simple::_debug_msg('Hosting=HASH(0x9a72050)') 
called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/Static/Simple.pm 
line 82
     Class::MOP::Class:::before('Hosting=HASH(0x9a72050)') called at 
/usr/local/lib/perl5/site_perl/5.10.1/mach/Class/MOP/Method/Wrapped.pm 
line 47
     Class::MOP::Method::Wrapped::__ANON__('Hosting=HASH(0x9a72050)') 
called at 
/usr/local/lib/perl5/site_perl/5.10.1/mach/Class/MOP/Method/Wrapped.pm 
line 89
     Hosting::finalize('Hosting=HASH(0x9a72050)') called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1871
     eval {...} called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1861
     Catalyst::handle_request('Hosting', 'env', 'HASH(0x9a720dc)') 
called at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Engine/HTTP.pm 
line 394
     
Catalyst::Engine::HTTP::_handler('Catalyst::Engine::HTTP=HASH(0x90e3e24)', 
'Hosting', 3000, 'GET', '/', 'HTTP/1.0') called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Engine/HTTP.pm line 291
     
Catalyst::Engine::HTTP::run('Catalyst::Engine::HTTP=HASH(0x90e3e24)', 
'Hosting', 3000, undef, 'HASH(0x8fef474)') called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 2163
     Catalyst::run('Hosting', 3000, undef, 'HASH(0x8fef474)') called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/ScriptRole.pm line 62
     
Catalyst::ScriptRole::_run_application('Catalyst::Script::Server=HASH(0x860b3c0)') 
called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Script/Server.pm line 144
     Catalyst::Script::Server::__ANON__() called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Restarter/Forking.pm line 20
     
Catalyst::Restarter::Forking::_fork_and_start('Catalyst::Restarter::Forking=HASH(0x8fef410)') 
called at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Restarter.pm 
line 80
     
Catalyst::Restarter::run_and_watch('Catalyst::Restarter::Forking=HASH(0x8fef410)') 
called at 
/usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Script/Server.pm line 178
     
Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0x860b3c0)') called 
at 
/usr/local/lib/perl5/site_perl/5.10.1/mach/Class/MOP/Method/Wrapped.pm 
line 48
     
Class::MOP::Method::Wrapped::__ANON__('Catalyst::Script::Server=HASH(0x860b3c0)') 
called at 
/usr/local/lib/perl5/site_perl/5.10.1/mach/Class/MOP/Method/Wrapped.pm 
line 89
     
Catalyst::Script::Server::run('Catalyst::Script::Server=HASH(0x860b3c0)') called 
at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/ScriptRunner.pm line 20
     Catalyst::ScriptRunner::run('Catalyst::ScriptRunner', 'Hosting', 
'Server') called at ./script/hosting_server.pl line 8"

Seems to be a bug in runtime? Or some change with DEBUG I've missed?

Alex.




More information about the Catalyst mailing list