Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined subroutine &Mouse::Util::is_a_type_constraint called at ... #75

Open
KES777 opened this issue Apr 21, 2017 · 1 comment
Open

Comments

@KES777
Copy link

KES777 commented Apr 21, 2017

when I use this module with debugger Devel::DebugHooks I got this error:

Undefined subroutine &Mouse::Util::is_a_type_constraint called at /home/kes/work/projects/crypto/crypto/local/lib/perl5/x86_64-linux/Mouse/Util/TypeConstraints.pm line 383, <STDIN> line 2.

Stack trace:

T

-1  Mouse::Util::TypeConstraints::find_type_constraint
    $ (Data::Validator)
    <--  /home/kes/work/projects/app/local/lib/perl5/x86_64-linux/Mouse.pm:143

-2  Mouse::init_meta
    $ (Mouse, for_class, Data::Validator)
    <--  /home/kes/work/projects/app/local/lib/perl5/x86_64-linux/Mouse/Exporter.pm:167

-3  Mouse::Exporter::do_import
    ; (Mouse)
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-4  Data::Validator::BEGIN
    ; ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-5  (eval)
    ; 
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-6  (eval)
    $ 
    <--  /home/kes/work/projects/app/local/lib/perl5/Amazon/CloudFront/SignedURL.pm:6

-7  Amazon::CloudFront::SignedURL::BEGIN
    ; ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-8  (eval)
    ; 
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-9  (eval)
    $ 
    <--  /home/kes/work/projects/app/lib/App/Model/File/Private.pm:5

-10  App::Model::File::Private::BEGIN
    ; ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-11  (eval)
    ; 
    <--  /home/kes/work/projects/app/local/lib/perl5/Data/Validator.pm:3

-12  (eval)
    $ 
    <--  (eval 476)[/home/kes/work/projects/app/local/lib/perl5/Mojo/Loader.pm:47]:1

-13  (eval)
    $ 
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Loader.pm:47

-14  Mojo::Loader::load_class
    $ (App::Model::File::Private)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugin/Model.pm:49

-15  Mojolicious::Plugin::Model::_load_class
    $ (App::Model::File::Private)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugin/Model.pm:27

-16  Mojolicious::Plugin::Model::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugin/Model.pm:42]
    $ (App::Controller::UserFile=HASH(0x99ef388), File::Private)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Controller.pm:33

-17  Mojolicious::Controller::AUTOLOAD
    $ (App::Controller::UserFile=HASH(0x99ef388), File::Private)
    <--  /home/kes/work/projects/app/lib/App/Controller/UserFile.pm:10

-18  App::Controller::UserFile::list
    $ (App::Controller::UserFile=HASH(0x99ef388))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:138

-19  Mojolicious::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:138]
    $ (&undef, App::Controller::UserFile=HASH(0x99ef388), CODE(0x99c4b98), 1)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15

-20  Mojolicious::Plugins::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15]
    $ ()
    <--  /home/kes/work/projects/app/lib/Mojolicious/Plugin/Wizard.pm:25

-21  Mojolicious::Plugin::Wizard::init_wizard
    $ (CODE(0x99b5290), App::Controller::UserFile=HASH(0x99ef388), CODE(0x99c4b98), 1)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15

-22  Mojolicious::Plugins::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15]
    $ ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:18

-23  Mojolicious::Plugins::emit_chain
    $ (Mojolicious::Plugins=HASH(0x64491e0), around_action, App::Controller::UserFile=HASH(0x99ef388), CODE(0x99c4b98), 1)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:87

-24  Mojolicious::Routes::_action
    $ (App=HASH(0x4967550), App::Controller::UserFile=HASH(0x99ef388), CODE(0x99c4b98), 1)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:166

-25  Mojolicious::Routes::_controller
    $ (Mojolicious::Routes=HASH(0x64491b0), App::Controller=HASH(0x91e9d58), HASH(0x99c5360), 1)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:36

-26  Mojolicious::Routes::continue
    ; (Mojolicious::Routes=HASH(0x64491b0), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:38

-27  Mojolicious::Routes::continue
    ; (Mojolicious::Routes=HASH(0x64491b0), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:38

-28  Mojolicious::Routes::continue
    ; (Mojolicious::Routes=HASH(0x64491b0), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:38

-29  Mojolicious::Routes::continue
    ; (Mojolicious::Routes=HASH(0x64491b0), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Routes.pm:44

-30  Mojolicious::Routes::dispatch
    $ (Mojolicious::Routes=HASH(0x64491b0), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:129

-31  Mojolicious::dispatch
    ; (App=HASH(0x4967550), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:139

-32  Mojolicious::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:139]
    ; (&undef, App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15

-33  Mojolicious::Plugins::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15]
    ; ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:201

-34  (eval)
    $ 
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:201

-35  Mojolicious::_exception
    ; (CODE(0x91e96c8), App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15

-36  Mojolicious::Plugins::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:15]
    ; ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious/Plugins.pm:18

-37  Mojolicious::Plugins::emit_chain
    ; (Mojolicious::Plugins=HASH(0x64491e0), around_dispatch, App::Controller=HASH(0x91e9d58))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojolicious.pm:145

-38  Mojolicious::handler
    ; (App=HASH(0x4967550), Mojo::Transaction::HTTP=HASH(0x967e800))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Server.pm:68

-39  Mojo::Server::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojo/Server.pm:68]
    ; (Mojo::Server::Daemon=HASH(0x918a720), Mojo::Transaction::HTTP=HASH(0x967e800))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/EventEmitter.pm:15

-40  Mojo::EventEmitter::emit
    ; (Mojo::Server::Daemon=HASH(0x918a720), request, Mojo::Transaction::HTTP=HASH(0x967e800))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Server/Daemon.pm:107

-41  Mojo::Server::Daemon::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojo/Server/Daemon.pm:116]
    ; (Mojo::Transaction::HTTP=HASH(0x967e800))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/EventEmitter.pm:15

-42  Mojo::EventEmitter::emit
    ; (Mojo::Transaction::HTTP=HASH(0x967e800), request)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Transaction/HTTP.pm:60

-43  Mojo::Transaction::HTTP::server_read
    ; (Mojo::Transaction::HTTP=HASH(0x967e800), GET /api/v1/users/8aa9e8a7-ff37-4a5f-9336-dc37c39a1259/files HTTP/1.1
Content-Length: 0
Host: 127.0.0.1:37161
Accept-Encoding: gzip
User-Agent: Mojolicious (Perl)
Cookie: App=eydleHBpcmVzIjoxNDkyODc3NTI5LCJ1c2VyX3dhcyI6IjhhYTllOGE3LWZmMzctNGE1Zi05MzM2LWRjMzdjMzlhMTI1OSIsInV1aWQiOiI4YWE5ZThhNy1mZjM3LTRhNWYtOTMzNi1kYzM3YzM5YTEyNTkiLCJ3aXzIjp7fX0---97c38c0f95sdfdsd489924bbab09b7c7b97a7461

)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Server/Daemon.pm:225

-44  Mojo::Server::Daemon::_read
    ; (Mojo::Server::Daemon=HASH(0x918a720), 78a63297e68c41be1ba897499a9e2b35, GET /api/v1/users/8aa9e8a7-ff37-4a5f-9336-dc37c39a1259/files HTTP/1.1
Content-Length: 0
Host: 127.0.0.1:37161
Accept-Encoding: gzip
User-Agent: Mojolicious (Perl)
Cookie: App=eydleHBpcmVzIjoxNDkyODc3NTI5LCJ1c2VyX3dhcyI6IjhhYTllOGE3LWZmMzctNGE1Zi05MzM2LWRjMzdjMzlhMTI1OSIsInV1aWQiOiI4YWE5ZThhNy1mZjM3LTRhNWYtOTMzNi1kYzM3YzM5YTEyNTkiLCJ3aXzIjp7fX0---97c38c0f95sdfdsd489924bbab09b7c7b97a7461

)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Server/Daemon.pm:206

-45  Mojo::Server::Daemon::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojo/Server/Daemon.pm:206]
    ; (Mojo::IOLoop::Stream=HASH(0x9190de8))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/EventEmitter.pm:15

-46  Mojo::EventEmitter::emit
    $ (Mojo::IOLoop::Stream=HASH(0x9190de8), read, GET /api/v1/users/8aa9e8a7-ff37-4a5f-9336-dc37c39a1259/files HTTP/1.1
Content-Length: 0
Host: 127.0.0.1:37161
Accept-Encoding: gzip
User-Agent: Mojolicious (Perl)
Cookie: App=eydleHBpcmVzIjoxNDkyODc3NTI5LCJ1c2VyX3dhcyI6IjhhYTllOGE3LWZmMzctNGE1Zi05MzM2LWRjMzdjMzlhMTI1OSIsInV1aWQiOiI4YWE5ZThhNy1mZjM3LTRhNWYtOTMzNi1kYzM3YzM5YTEyNTkiLCJ3aXzIjp7fX0---97c38c0f95sdfdsd489924bbab09b7c7b97a7461

)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/IOLoop/Stream.pm:99

-47  Mojo::IOLoop::Stream::_read
    ; (Mojo::IOLoop::Stream=HASH(0x9190de8))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/IOLoop/Stream.pm:48

-48  Mojo::IOLoop::Stream::__ANON__[/home/kes/work/projects/app/local/lib/perl5/Mojo/IOLoop/Stream.pm:48]
    ; (Mojo::Reactor::Poll=HASH(0x3f24d80))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Reactor/Poll.pm:143

-49  (eval)
    $ 
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Reactor/Poll.pm:143

-50  Mojo::Reactor::Poll::_try
    ; (Mojo::Reactor::Poll=HASH(0x3f24d80), I/O watcher, CODE(0x919bc00), 0)
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Reactor/Poll.pm:58

-51  Mojo::Reactor::Poll::one_tick
    ; (Mojo::Reactor::Poll=HASH(0x3f24d80))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/Reactor/Poll.pm:99

-52  Mojo::Reactor::Poll::start
    ; (Mojo::Reactor::Poll=HASH(0x3f24d80))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/IOLoop.pm:136

-53  Mojo::IOLoop::start
    ; (Mojo::IOLoop=HASH(0x40ab1b0))
    <--  /home/kes/work/projects/app/local/lib/perl5/Mojo/UserAgent.pm:59

-54  Mojo::UserAgent::start
    @ (Mojo::UserAgent=HASH(0x4a53278), Mojo::Transaction::HTTP=HASH(0x919bdf8))
    <--  /home/kes/work/projects/app/local/lib/perl5/Test/Mojo.pm:380

-55  Test::Mojo::_request_ok
    $ (Test::Mojo=HASH(0x494eea0), Mojo::Transaction::HTTP=HASH(0x919bdf8), /api/v1/users/8aa9e8a7-ff37-4a5f-9336-dc37c39a1259/files)
    <--  /home/kes/work/projects/app/local/lib/perl5/Test/Mojo.pm:327

-56  Test::Mojo::_build_ok
    $ (Test::Mojo=HASH(0x494eea0), GET, /api/v1/users/8aa9e8a7-ff37-4a5f-9336-dc37c39a1259/files)
    <--  /home/kes/work/projects/app/local/lib/perl5/Test/Mojo.pm:120

-57  Test::Mojo::get_ok
    $ (Test::Mojo=HASH(0x494eea0), /api/v1/users/8aa9e8a7-ff37-4a5f-9336-dc37c39a1259/files)
    <--  t/user_files.t:72

-58  main::__ANON__[t/user_files.t:79]
    ; ()
    <--  /home/kes/work/projects/app/local/lib/perl5/Test/Builder.pm:309

-59  (eval)
    $ 
    <--  /home/kes/work/projects/app/local/lib/perl5/Test/Builder.pm:309

-60  Test::Builder::subtest
    ; (Test::Builder=HASH(0x29df8e0), List files, CODE(0x919c4d0))
    <--  /home/kes/work/projects/app/local/lib/perl5/Test/More.pm:807

-61  Test::More::subtest
    ; (List files, CODE(0x919c4d0))
    <--  t/user_files.t:79
@KES777
Copy link
Author

KES777 commented Apr 21, 2017

The XS code sees the DB namespace instead of origin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant