You are overwriting a locally defined function (type)

154 views
Skip to first unread message

Maxim Gurets

unread,
Jul 25, 2011, 7:35:27 AM7/25/11
to Xslate
Hi!

Im using: Catalyst + Catalyst::View::Xslate

catalyst: 5.80032
catalyst::view::xslate: 0.00012
text::xslate: 1.1005
moose: 2.0002

After restarting apache and remove cached templates i get once
stacktrace in error log:

You are overwriting a locally defined function (type) with an accessor
at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/Moose/
Meta/Attribute.pm line 939

Moose::Meta::Attribute::_process_accessors('Moose::Meta::Attribute=HASH(0x2164bd30)',
'accessor', 'type', undef) called at /usr/lib64/perl5/site_perl/5.12.3/
x86_64-linux-thread-multi/Class/MOP/Attribute.pm line 421

Class::MOP::Attribute::install_accessors('Moose::Meta::Attribute=HASH(0x2164bd30)')
called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/
Moose/Meta/Attribute.pm line 887

Moose::Meta::Attribute::install_accessors('Moose::Meta::Attribute=HASH(0x2164bd30)')
called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/
Class/MOP/Class.pm line 878
Class::MOP::Class::__ANON__() called at /usr/lib64/perl5/site_perl/
5.12.2/Try/Tiny.pm line 76
eval {...} called at /usr/lib64/perl5/site_perl/5.12.2/Try/Tiny.pm
line 67
Try::Tiny::try('CODE(0x21653ef8)',
'Try::Tiny::Catch=REF(0x216541e0)') called at /usr/lib64/perl5/
site_perl/5.12.3/x86_64-linux-thread-multi/Class/MOP/Class.pm line 883

Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HASH(0x21118f40)',
'Moose::Meta::Attribute=HASH(0x2164bd30)') called at /usr/lib64/perl5/
site_perl/5.12.3/x86_64-linux-thread-multi/Class/MOP/Mixin/
HasAttributes.pm line 44

Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta::Class=HASH(0x21118f40)',
'Moose::Meta::Attribute=HASH(0x2164bd30)') called at /usr/lib64/perl5/
site_perl/5.12.3/x86_64-linux-thread-multi/Moose/Meta/Class.pm line
506

Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x21118f40)',
'type', 'default', 'html', 'is', 'rw', 'isa',
'Moose::Meta::TypeConstraint::Enum=HASH(0x2142d8c0)',
'definition_context', ...) called at /usr/lib64/perl5/site_perl/5.12.3/
x86_64-linux-thread-multi/Moose.pm line 77
Moose::has('Moose::Meta::Class=HASH(0x21118f40)', 'type', 'is', 'rw',
'isa', 'Moose::Meta::TypeConstraint::Enum=HASH(0x2142d8c0)',
'default', 'html') called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-
linux-thread-multi/Moose/Exporter.pm line 356
Moose::has('type', 'is', 'rw', 'isa',
'Moose::Meta::TypeConstraint::Enum=HASH(0x2142d8c0)', 'default',
'html') called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-
thread-multi/Text/Xslate/Compiler.pm line 170
require Text/Xslate/Compiler.pm called at /usr/lib64/perl5/site_perl/
5.12.3/x86_64-linux-thread-multi/Class/MOP.pm line 117
Class::MOP::__ANON__() called at /usr/lib64/perl5/site_perl/5.12.2/
Try/Tiny.pm line 71
eval {...} called at /usr/lib64/perl5/site_perl/5.12.2/Try/Tiny.pm
line 67
Try::Tiny::try('CODE(0x214088b0)',
'Try::Tiny::Catch=REF(0x2142fc00)') called at /usr/lib64/perl5/
site_perl/5.12.3/x86_64-linux-thread-multi/Class/MOP.pm line 128
Class::MOP::load_first_existing_class('Text::Xslate::Compiler')
called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/
Class/MOP.pm line 140
Class::MOP::load_class('Text::Xslate::Compiler') called at /usr/lib64/
perl5/site_perl/5.12.3/x86_64-linux-thread-multi/Text/Xslate.pm line
528

.... skipped .....



Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x13d7a9a8)',
'VKino=HASH(0x2143a018)') called at /usr/lib64/perl5/site_perl/5.12.3/
Catalyst.pm line 1611
Catalyst::dispatch('VKino=HASH(0x2143a018)') called at /usr/lib64/
perl5/site_perl/5.12.3/Catalyst/Plugin/Static/Simple.pm line 76
Class::MOP::Class:::around('CODE(0x85480b0)',
'VKino=HASH(0x2143a018)') called at /usr/lib64/perl5/site_perl/5.12.3/
x86_64-linux-thread-multi/Class/MOP/Method/Wrapped.pm line 161
Class::MOP::Method::Wrapped::__ANON__('VKino=HASH(0x2143a018)')
called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/
Class/MOP/Method/Wrapped.pm line 91
VKino::dispatch('VKino=HASH(0x2143a018)') called at /usr/lib64/perl5/
site_perl/5.12.3/Catalyst.pm line 1952
eval {...} called at /usr/lib64/perl5/site_perl/5.12.3/Catalyst.pm
line 1943
Catalyst::handle_request('VKino',
'Apache2::RequestRec=SCALAR(0x213a49f8)') called at /usr/lib64/perl5/
site_perl/5.12.3/Catalyst.pm line 2629
Catalyst::__ANON__('VKino', 'Apache2::RequestRec=SCALAR(0x213a49f8)')
called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/
Text/Xslate/Compiler.pm line 0
eval {...} called at /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-
thread-multi/Text/Xslate/Compiler.pm line 0

Fuji, Goro

unread,
Jul 25, 2011, 11:41:05 AM7/25/11
to xsl...@googlegroups.com
Hi,

The warnings might come from Xslate (Xlsate compiler), the information
is not enough to show your problem clearly.

What does "restart" mean? reloading the process or restarting httpd?
What is the environment? mod_perl, fastcgi, or starman?
Does the warnings only occur after restarting?

> --
> You received this message because you are subscribed to the Google
> Groups "Xslate" group.
> To post to this group, send email to xsl...@googlegroups.com
> To unsubscribe from this group, send email to
> xslate+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/xslate
>

--
Fuji, Goro (@__gfx__)

Maxim Gurets

unread,
Jul 26, 2011, 5:52:08 AM7/26/11
to Xslate
Hi.
restart - restart httpd (apache 2.2)
Catalyst running under mod_perl
Warning occurs only after restart.

Fuji, Goro

unread,
Jul 26, 2011, 10:02:05 PM7/26/11
to xsl...@googlegroups.com
Hi,

According to mod_perl experts "restart" with mod_perl is broken.
Try "stop & start" instead of "restart".

Maxim Gurets

unread,
Aug 9, 2011, 9:33:17 AM8/9/11
to Xslate
Does not work.
Reply all
Reply to author
Forward
0 new messages