[Catalyst] Catalyst::Controller::DBIC::API test failures

Leandro Hermida softdev at leandrohermida.com
Mon Dec 27 14:11:07 GMT 2010


Hello,

I get them same test errors when trying to install
Catalyst::Controller::DBIC::API with the latest versions of Moose and
dependencies, etc.

-L

> On Tue, Dec 21, 2010 at 2:01 AM, Seth Daniel <catalyst at sethdaniel.org>wro=
te:

> Hi,
>
> I am attempting to use Catalyst::Controller::DBIC::API.  When I use the
> prefetch_allow configuration option my Catalyst server fails to start.  I
> then
> noticed that the C::C::DBIC::API tests have the same issue.
>
> Here is the test failure I am seeing (version 2.002003):
>
> t/rest/create.t ............. Couldn't instantiate component
> "RestTest::Controller::API::RPC::CD", "Attribute (prefetch_validator_clas=
s)
> does not pass the type constraint because: Validation failed for '__ANON_=
_'
> with value undef at
> /opt/perl/5.10/lib/site_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/=
Method/Delegation.pm
> line 90
>  Catalyst::Controller::DBIC::API::create_prefetch_validator('RestTest::Co=
ntroller::API::RPC::CD=3DHASH(0x638d240)')
> called at /opt/perl/5.10/lib/site_perl/5.10.1/MooseX/Role/BuildInstanceOf=
.pm
> line 157
>  Moose::Meta::Role::__ANON__::SERIAL::3::_build_prefetch_validator('RestT=
est::Controller::API::RPC::CD=3DHASH(0x638d240)')
> called at generated method (unknown origin) line 0
>  Catalyst::Controller::DBIC::API::prefetch_validator('RestTest::Controlle=
r::API::RPC::CD=3DHASH(0x638d240)')
> called at
> /home/sdaniel/src/trunk/build_tools/rpm/BUILD/Catalyst-Controller-DBIC-AP=
I-2.002003/blib/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm
> line 168
>  Catalyst::Controller::DBIC::API::RequestArguments::_check_rel('RestTest:=
:Controller::API::RPC::CD=3DHASH(0x638d240)',
> 'tracks', 1) called at
> /home/sdaniel/src/trunk/build_tools/rpm/BUILD/Catalyst-Controller-DBIC-AP=
I-2.002003/blib/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm
> line 154
>  Catalyst::Controller::DBIC::API::RequestArguments::_check_rel('RestTest:=
:Controller::API::RPC::CD=3DHASH(0x638d240)',
> 'ARRAY(0x5430aa0)', 1) called at
> /home/sdaniel/src/trunk/build_tools/rpm/BUILD/Catalyst-Controller-DBIC-AP=
I-2.002003/blib/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm
> line 174
>  Catalyst::Controller::DBIC::API::RequestArguments::__ANON__('RestTest::C=
ontroller::API::RPC::CD=3DHASH(0x638d240)',
> 'ARRAY(0x5430a88)') called at
> /opt/perl/5.10/lib/site_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/=
Class.pm
> line 255
>  Moose::Meta::Class::new_object('Class::MOP::Class::__ANON__::SERIAL::5=
=3DHASH(0x55819b8)',
> 'HASH(0x6394578)') called at
> /opt/perl/5.10/lib/site_perl/5.10.1/x86_64-linux-thread-multi/Moose/Objec=
t.pm
> line 25
>  Moose::Object::new('RestTest::Controller::API::RPC::CD', 'RestTest',
> 'HASH(0x638d120)') called at generated method (unknown origin) line 3
>  Catalyst::Controller::new('RestTest::Controller::API::RPC::CD',
> 'RestTest', 'HASH(0x638d120)') called at
> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Component.pm line 110
>  Catalyst::Component::COMPONENT('RestTest::Controller::API::RPC::CD',
> 'RestTest', 'HASH(0x638d120)') called at
> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 2515
>  eval {...} called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line
> 2515
>  Catalyst::setup_component('RestTest',
> 'RestTest::Controller::API::RPC::CD') called at
> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 2442
>  Catalyst::setup_components('RestTest') called at
> /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 1171
>  Catalyst::setup('RestTest') called at t/lib/RestTest.pm line 32
>  require RestTest.pm called at t/rest/create.t line 10
>  main::BEGIN() called at t/lib/RestTest.pm line 0
>  eval {...} called at t/lib/RestTest.pm line 0"Compilation failed in
> require at t/rest/create.t line 10.
> BEGIN failed--compilation aborted at t/rest/create.t line 10.
>
>
>
> Does anyone know what is going on?  I'm still working through it.  It's
> using
> a number of Moose modules I am unfamiliar with so it is taking some time.
>
> My initial thought is that I have a too old / too new version of some
> module,
> but I have no idea what that module could be.  During installation the
> build
> process didn't complain about missing or out-dated modules.
>
> --
> seth /\ sethdaniel.org
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101227/40289=
0e0/attachment.htm


More information about the Catalyst mailing list