From melutovich at gmail.com Fri Jun 23 11:30:51 2017 From: melutovich at gmail.com (Mitchell Elutovich) Date: Fri, 23 Jun 2017 14:30:51 +0300 Subject: [Dbix-class] random Stub found while resolving method "???" overloading """" in package "XXX" Message-ID: We've in the past few weeks relocated our server and are randomly (but too often) getting the follow error. The dbix verison is now 0.082820 and previously was 0.08250 without this error occurring. "Stub found while resolving method "???" overloading """" in package "XXX" at /home/perlbrew/.perlbrew/libs/perl-5.16.3 at latest-20160209/lib/perl5/DBIx/Class/Row.pm line 1250." the package XXX has which might be related use Class::Trait qw( TPrintable ); sub inflate_result { my $self = shift; my $ret = $self->next::method(@_); my $typeCd = $ret->typeCd; given ($typeCd) { when( $specialTypeCd ) { $self->ensure_class_loaded( $specialSubClass ); bless ($ret, $specialSubClass); } default { bless ($ret, $self); } } return $ret; } The code bringing in package XXX has a helper method doing: my $theY = $c->model('DB::Y')->find( $yID, { prefetch => [ { 'xxxs' => 'typecd' } , 'zid' ] }); return $theY; thoughts in what the problem is; how to get it consistent to submit a bug report. We already know about the potential workaround in Abstract.pm of SQLA_ISVALUE_IGNORE_AUTOGENERATED_STRINGIFICATION=1 -------------- next part -------------- An HTML attachment was scrubbed... URL: