if your DBIC schema is using Moose/MooseX::NonMoose, remove &#39;use MooseX::NonMoose&#39; from your base schema class. <div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class-Schema-Loader.git;a=commitdiff;h=49643e1dff62e16331c30f51953d548d94da1d30">http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class-Schema-Loader.git;a=commitdiff;h=49643e1dff62e16331c30f51953d548d94da1d30</a> addressed this and any release beyond 0.07003 should generate properly.<br>
<br></div><div>Justin</div><div><br><div class="gmail_quote">On Mon, Jan 31, 2011 at 1:36 PM, Oleg Kostyuk <span dir="ltr">&lt;<a href="mailto:cub.uanic@gmail.com">cub.uanic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Seems, I had same problem.<br>
If your db schema classe (GLR::Schema) use Moose and MooseX::NonMoose,<br>
try to convert your schema classes to use strict/warning/base.<br>
If your schema class what generated by DBIx::Class::Schema::Loader,<br>
then upgrade it to latest and re-generate your classes.<br>
<br>
<br>
2011/1/31 Eric Berg &lt;<a href="mailto:eberg@bergbrains.com">eberg@bergbrains.com</a>&gt;:<br>
&gt; All of a sudden my  application stopped working and started spewing these<br>
&gt; errors.   This same code has been running for many days, then kblam!<br>
&gt;  Suddenly died.<br>
&gt;<br>
&gt;  I&#39;ve been looking and I can&#39;t seem to figure out what&#39;s going on.<br>
&gt;<br>
&gt; I suspect that it was an underlying Perl module that somehow blew up, but<br>
&gt; I&#39;m not sure.<br>
&gt;<br>
&gt; Can anyone see anything in here that indicates what the problem is?<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Eric<br>
&gt;<br>
&gt; Couldn&#39;t load class (GLR) because: Couldn&#39;t instantiate component<br>
&gt; &quot;GLR::Model::DB&quot;, &quot;Couldn&#39;t load class (GLR::Schema) because: Can&#39;t call<br>
&gt; method &quot;isa&quot; on an undefined value at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/NonMoose/Meta/Role/Class.pm line 40.<br>
&gt; Compilation failed in require at /usr/local/lib/perl/5.10.0/Class/MOP.pm<br>
&gt; line 114.<br>
&gt;  at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 120<br>
&gt;    Class::MOP::__ANON__(&#39;Can\&#39;t call method &quot;isa&quot; on an undefined value at<br>
&gt; /usr/local/...&#39;) called at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 100<br>
&gt;    Try::Tiny::try(&#39;CODE(0xba03570)&#39;, &#39;Try::Tiny::Catch=REF(0xb9f52b8)&#39;)<br>
&gt; called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 125<br>
&gt;    Class::MOP::load_first_existing_class(&#39;GLR::Schema&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP.pm line 137<br>
&gt;    Class::MOP::load_class(&#39;GLR::Schema&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst/Model/DBIC/Schema/Types.pm line 21<br>
&gt;    Catalyst::Model::DBIC::Schema::Types::__ANON__(&#39;GLR::Schema&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Moose/Meta/TypeCoercion.pm line 63<br>
&gt;    Moose::Meta::TypeCoercion::__ANON__(&#39;GLR::Schema&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Moose/Meta/TypeCoercion.pm line 97<br>
&gt;<br>
&gt;  Moose::Meta::TypeCoercion::coerce(&#39;Moose::Meta::TypeCoercion=HASH(0xae9a500)&#39;,<br>
&gt; &#39;GLR::Schema&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Moose/Meta/TypeConstraint.pm line 90<br>
&gt;<br>
&gt;  Moose::Meta::TypeConstraint::coerce(&#39;Moose::Meta::TypeConstraint=HASH(0xae8fb38)&#39;,<br>
&gt; &#39;GLR::Schema&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/Types/TypeDecorator.pm line 206<br>
&gt;    eval {...} called at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/Types/TypeDecorator.pm line 205<br>
&gt;<br>
&gt;  MooseX::Types::TypeDecorator::AUTOLOAD(&#39;MooseX::Types::TypeDecorator=HASH(0xaea7520)&#39;,<br>
&gt; &#39;GLR::Schema&#39;) called at /usr/local/lib/perl/5.10.0/Moose/Meta/Attribute.pm<br>
&gt; line 880<br>
&gt;<br>
&gt;  Moose::Meta::Attribute::_coerce_and_verify(&#39;Moose::Meta::Attribute=HASH(0xaecb070)&#39;,<br>
&gt; &#39;GLR::Schema&#39;, &#39;GLR::Model::DB=HASH(0xb9b20a0)&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Moose/Meta/Attribute.pm line 483<br>
&gt;<br>
&gt;  Moose::Meta::Attribute::initialize_instance_slot(&#39;Moose::Meta::Attribute=HASH(0xaecb070)&#39;,<br>
&gt; &#39;Moose::Meta::Instance=HASH(0xba1d3d0)&#39;, &#39;GLR::Model::DB=HASH(0xb9b20a0)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Class/MOP/Class.pm<br>
&gt; line 603<br>
&gt;<br>
&gt;  Class::MOP::Class::_construct_instance(&#39;Moose::Meta::Class=HASH(0xadfb790)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Class/MOP/Class.pm<br>
&gt; line 576<br>
&gt;    Class::MOP::Class::new_object(&#39;Moose::Meta::Class=HASH(0xadfb790)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Moose/Meta/Class.pm<br>
&gt; line 256<br>
&gt;    Moose::Meta::Class::new_object(&#39;Moose::Meta::Class=HASH(0xadfb790)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Moose/Object.pm line<br>
&gt; 26<br>
&gt;    Moose::Object::new(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;, &#39;HASH(0xaebe148)&#39;) called at<br>
&gt; generated method (unknown origin) line 3<br>
&gt;    Catalyst::Model::DBIC::Schema::new(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xaebe148)&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/Traits/Pluggable.pm line 139<br>
&gt;    MooseX::Traits::Pluggable::_build_instance_with_traits(&#39;GLR::Model::DB&#39;,<br>
&gt; &#39;GLR::Model::DB&#39;, &#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/Traits/Pluggable.pm line 97<br>
&gt;    MooseX::Traits::Pluggable::new_with_traits(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4b60)&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/CatalystX/Component/Traits.pm line 145<br>
&gt;    CatalystX::Component::Traits::COMPONENT(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4900)&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP/Method/Wrapped.pm line 48<br>
&gt;    Class::MOP::Method::Wrapped::__ANON__(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4900)&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP/Method/Wrapped.pm line 89<br>
&gt;    Catalyst::Model::DBIC::Schema::COMPONENT(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4900)&#39;) called at /usr/local/share/perl/5.10.0/Catalyst.pm line<br>
&gt; 2523<br>
&gt;    eval {...} called at /usr/local/share/perl/5.10.0/Catalyst.pm line 2523<br>
&gt;    Catalyst::setup_component(&#39;GLR&#39;, &#39;GLR::Model::DB&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst.pm line 2450<br>
&gt;    Catalyst::setup_components(&#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst.pm line 1179<br>
&gt;    Catalyst::setup(&#39;GLR&#39;) called at<br>
&gt; /var/www/sites/<a href="http://gordonlegalresearch.com/GLR-0.01/script/../lib/GLR.pm" target="_blank">gordonlegalresearch.com/GLR-0.01/script/../lib/GLR.pm</a> line<br>
&gt; 120<br>
&gt;    require GLR.pm called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 114<br>
&gt;    Class::MOP::__ANON__() called at /usr/local/share/perl/5.10.0/Try/Tiny.pm<br>
&gt; line 71<br>
&gt;    eval {...} called at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 67<br>
&gt;    Try::Tiny::try(&#39;CODE(0x9b450e0)&#39;, &#39;Try::Tiny::Catch=REF(0xa52b128)&#39;)<br>
&gt; called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 125<br>
&gt;    Class::MOP::load_first_existing_class(&#39;GLR&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP.pm line 137<br>
&gt;    Class::MOP::load_class(&#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst/ScriptRole.pm line 48<br>
&gt;<br>
&gt;  Catalyst::ScriptRole::_run_application(&#39;Catalyst::Script::Server=HASH(0xa54c678)&#39;)<br>
&gt; called at /usr/local/share/perl/5.10.0/Catalyst/Script/Server.pm line 179<br>
&gt;    Catalyst::Script::Server::run(&#39;Catalyst::Script::Server=HASH(0xa54c678)&#39;)<br>
&gt; called at /usr/local/share/perl/5.10.0/Catalyst/ScriptRunner.pm line 20<br>
&gt;    Catalyst::ScriptRunner::run(&#39;Catalyst::ScriptRunner&#39;, &#39;GLR&#39;, &#39;Server&#39;)<br>
&gt; called at script/<a href="http://glr_server.pl" target="_blank">glr_server.pl</a> line 8<br>
&gt;  at /usr/local/share/perl/5.10.0/MooseX/Types/TypeDecorator.pm line 208<br>
&gt;<br>
&gt;  MooseX::Types::TypeDecorator::AUTOLOAD(&#39;MooseX::Types::TypeDecorator=HASH(0xaea7520)&#39;,<br>
&gt; &#39;GLR::Schema&#39;) called at /usr/local/lib/perl/5.10.0/Moose/Meta/Attribute.pm<br>
&gt; line 880<br>
&gt;<br>
&gt;  Moose::Meta::Attribute::_coerce_and_verify(&#39;Moose::Meta::Attribute=HASH(0xaecb070)&#39;,<br>
&gt; &#39;GLR::Schema&#39;, &#39;GLR::Model::DB=HASH(0xb9b20a0)&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Moose/Meta/Attribute.pm line 483<br>
&gt;<br>
&gt;  Moose::Meta::Attribute::initialize_instance_slot(&#39;Moose::Meta::Attribute=HASH(0xaecb070)&#39;,<br>
&gt; &#39;Moose::Meta::Instance=HASH(0xba1d3d0)&#39;, &#39;GLR::Model::DB=HASH(0xb9b20a0)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Class/MOP/Class.pm<br>
&gt; line 603<br>
&gt;<br>
&gt;  Class::MOP::Class::_construct_instance(&#39;Moose::Meta::Class=HASH(0xadfb790)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Class/MOP/Class.pm<br>
&gt; line 576<br>
&gt;    Class::MOP::Class::new_object(&#39;Moose::Meta::Class=HASH(0xadfb790)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Moose/Meta/Class.pm<br>
&gt; line 256<br>
&gt;    Moose::Meta::Class::new_object(&#39;Moose::Meta::Class=HASH(0xadfb790)&#39;,<br>
&gt; &#39;HASH(0xb9a4a90)&#39;) called at /usr/local/lib/perl/5.10.0/Moose/Object.pm line<br>
&gt; 26<br>
&gt;    Moose::Object::new(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;, &#39;HASH(0xaebe148)&#39;) called at<br>
&gt; generated method (unknown origin) line 3<br>
&gt;    Catalyst::Model::DBIC::Schema::new(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xaebe148)&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/Traits/Pluggable.pm line 139<br>
&gt;    MooseX::Traits::Pluggable::_build_instance_with_traits(&#39;GLR::Model::DB&#39;,<br>
&gt; &#39;GLR::Model::DB&#39;, &#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/MooseX/Traits/Pluggable.pm line 97<br>
&gt;    MooseX::Traits::Pluggable::new_with_traits(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4b60)&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/CatalystX/Component/Traits.pm line 145<br>
&gt;    CatalystX::Component::Traits::COMPONENT(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4900)&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP/Method/Wrapped.pm line 48<br>
&gt;    Class::MOP::Method::Wrapped::__ANON__(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4900)&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP/Method/Wrapped.pm line 89<br>
&gt;    Catalyst::Model::DBIC::Schema::COMPONENT(&#39;GLR::Model::DB&#39;, &#39;GLR&#39;,<br>
&gt; &#39;HASH(0xb9a4900)&#39;) called at /usr/local/share/perl/5.10.0/Catalyst.pm line<br>
&gt; 2523<br>
&gt;    eval {...} called at /usr/local/share/perl/5.10.0/Catalyst.pm line 2523<br>
&gt;    Catalyst::setup_component(&#39;GLR&#39;, &#39;GLR::Model::DB&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst.pm line 2450<br>
&gt;    Catalyst::setup_components(&#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst.pm line 1179<br>
&gt;    Catalyst::setup(&#39;GLR&#39;) called at<br>
&gt; /var/www/sites/<a href="http://gordonlegalresearch.com/GLR-0.01/script/../lib/GLR.pm" target="_blank">gordonlegalresearch.com/GLR-0.01/script/../lib/GLR.pm</a> line<br>
&gt; 120<br>
&gt;    require GLR.pm called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 114<br>
&gt;    Class::MOP::__ANON__() called at /usr/local/share/perl/5.10.0/Try/Tiny.pm<br>
&gt; line 71<br>
&gt;    eval {...} called at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 67<br>
&gt;    Try::Tiny::try(&#39;CODE(0x9b450e0)&#39;, &#39;Try::Tiny::Catch=REF(0xa52b128)&#39;)<br>
&gt; called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 125<br>
&gt;    Class::MOP::load_first_existing_class(&#39;GLR&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP.pm line 137<br>
&gt;    Class::MOP::load_class(&#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst/ScriptRole.pm line 48<br>
&gt;<br>
&gt;  Catalyst::ScriptRole::_run_application(&#39;Catalyst::Script::Server=HASH(0xa54c678)&#39;)<br>
&gt; called at /usr/local/share/perl/5.10.0/Catalyst/Script/Server.pm line 179<br>
&gt;    Catalyst::Script::Server::run(&#39;Catalyst::Script::Server=HASH(0xa54c678)&#39;)<br>
&gt; called at /usr/local/share/perl/5.10.0/Catalyst/ScriptRunner.pm line 20<br>
&gt;    Catalyst::ScriptRunner::run(&#39;Catalyst::ScriptRunner&#39;, &#39;GLR&#39;, &#39;Server&#39;)<br>
&gt; called at script/<a href="http://glr_server.pl" target="_blank">glr_server.pl</a> line 8&quot;Compilation failed in require at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP.pm line 114.<br>
&gt;  at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 120<br>
&gt;    Class::MOP::__ANON__(&#39;Couldn\&#39;t instantiate component &quot;GLR::Model::DB&quot;,<br>
&gt; &quot;Couldn\&#39;t ...&#39;) called at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 100<br>
&gt;    Try::Tiny::try(&#39;CODE(0x9b450e0)&#39;, &#39;Try::Tiny::Catch=REF(0xa52b128)&#39;)<br>
&gt; called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 125<br>
&gt;    Class::MOP::load_first_existing_class(&#39;GLR&#39;) called at<br>
&gt; /usr/local/lib/perl/5.10.0/Class/MOP.pm line 137<br>
&gt;    Class::MOP::load_class(&#39;GLR&#39;) called at<br>
&gt; /usr/local/share/perl/5.10.0/Catalyst/ScriptRole.pm line 48<br>
&gt;<br>
&gt;  Catalyst::ScriptRole::_run_application(&#39;Catalyst::Script::Server=HASH(0xa54c678)&#39;)<br>
&gt; called at /usr/local/share/perl/5.10.0/Catalyst/Script/Server.pm line 179<br>
&gt;    Catalyst::Script::Server::run(&#39;Catalyst::Script::Server=HASH(0xa54c678)&#39;)<br>
&gt; called at /usr/local/share/perl/5.10.0/Catalyst/ScriptRunner.pm line 20<br>
&gt;    Catalyst::ScriptRunner::run(&#39;Catalyst::ScriptRunner&#39;, &#39;GLR&#39;, &#39;Server&#39;)<br>
&gt; called at script/<a href="http://glr_server.pl" target="_blank">glr_server.pl</a> line 8<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
&gt; Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
&gt; Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
&gt; Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Sincerely yours,<br>
Oleg Kostyuk (CUB-UANIC)<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br></div>