You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2004/12/16 18:57:18 UTC

Re: Can't locate object method "get_brigade" via package "Apache::Filter"

Vadim wrote:
> from error_log
> ----------------
> [Thu Dec 16 19:34:06 2004] [notice] Apache/2.0.52 (Unix) mod_ssl/2.0.52 
> OpenSSL/0.9.7d mod_perl/1.99_18 Perl/v5.8.4 configured -- resuming normal 
> operations
> [Thu Dec 16 19:34:08 2004] [error] [client 127.0.0.1] Can't locate object 
> method "get_brigade" via package "Apache::Filter" 
> at /usr/local/apache2/cgi-bin/modules//MyApache/MyProxy.pm line 100.\n
> ----------------
> 
> why?

Vadim, when you post a question next time please consider giving us some 
more context. Put yourself in our position and think what information 
could be useful to help us to help you. For example in this particular 
case, we probably need to see the relevant parts of the failing code.

My guess is that you didn't load Apache::Filter:

% lookup get_brigade
To use method 'get_brigade' add:
         use Apache::Filter ();

For more info see:
http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Can't locate object method "get_brigade" via package "Apache::Filter"

Posted by Stas Bekman <st...@stason.org>.
Vadim wrote:
>>Vadim wrote:
>>
>>>from error_log
>>>----------------
>>>[Thu Dec 16 19:34:06 2004] [notice] Apache/2.0.52 (Unix) mod_ssl/2.0.52
>>>OpenSSL/0.9.7d mod_perl/1.99_18 Perl/v5.8.4 configured -- resuming normal
>>>operations
>>>[Thu Dec 16 19:34:08 2004] [error] [client 127.0.0.1] Can't locate object
>>>method "get_brigade" via package "Apache::Filter"
>>>at /usr/local/apache2/cgi-bin/modules//MyApache/MyProxy.pm line 100.\n
>>>----------------
>>>
>>>why?
>>
>>Vadim, when you post a question next time please consider giving us some
>>more context. Put yourself in our position and think what information
>>could be useful to help us to help you. For example in this particular
>>case, we probably need to see the relevant parts of the failing code.
>>
>>My guess is that you didn't load Apache::Filter:
> 
> Yes! you are absolutly right! 
> but i took code from
> http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter
> and in that example there is no "use Apache::Filter" command. So it bepuzzle 
> me.
> Thanks!!!

That's a doc bug, now fixed.

URL: http://svn.apache.org/viewcvs?view=rev&rev=122585
Log:
add missing: use Apache::Filter ();

Modified:
    perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod

Modified: perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod
Url: 
http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod?view=diff&rev=122585&p1=perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod&r1=122584&p2=perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod&r2=122585
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod	(original)
+++ perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod	Thu Dec 
16 13:27:55 2004
@@ -1118,6 +1118,7 @@

    use Apache::RequestRec ();
    use Apache::RequestIO ();
+  use Apache::Filter ();
    use APR::Brigade ();
    use APR::Bucket ();



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Can't locate object method "get_brigade" via package "Apache::Filter"

Posted by Vadim <va...@lernet.ru>.
> Vadim wrote:
> > from error_log
> > ----------------
> > [Thu Dec 16 19:34:06 2004] [notice] Apache/2.0.52 (Unix) mod_ssl/2.0.52
> > OpenSSL/0.9.7d mod_perl/1.99_18 Perl/v5.8.4 configured -- resuming normal
> > operations
> > [Thu Dec 16 19:34:08 2004] [error] [client 127.0.0.1] Can't locate object
> > method "get_brigade" via package "Apache::Filter"
> > at /usr/local/apache2/cgi-bin/modules//MyApache/MyProxy.pm line 100.\n
> > ----------------
> >
> > why?
>
> Vadim, when you post a question next time please consider giving us some
> more context. Put yourself in our position and think what information
> could be useful to help us to help you. For example in this particular
> case, we probably need to see the relevant parts of the failing code.
>
> My guess is that you didn't load Apache::Filter:
Yes! you are absolutly right! 
but i took code from
http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter
and in that example there is no "use Apache::Filter" command. So it bepuzzle 
me.
Thanks!!!

>
> % lookup get_brigade
> To use method 'get_brigade' add:
>          use Apache::Filter ();
>
> For more info see:
> http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html

-- 
С уважением,
Суханов Вадим

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html