Hi, Are you using the CGI version of Mason ?
According to http://www.masonhq.com/docs/manual/ApacheHandler.html , prepare_request returns a Apache status code if something goes wrong (I imagine it being a 404 in your case), and so you cannot call the method 'exec' on the scalar value '404' . Here's the recommended usage from the mason doc: my $req = $ah->prepare_request($r); # $req must be an Apache status code if it's not an object return $req unless ref($req); return DECLINED unless $req->request_comp->source_file =~ /\.html$/; $req->exec; Cheers !! J. On Fri, Nov 7, 2008 at 3:54 PM, Louis-David Mitterrand <[EMAIL PROTECTED]> wrote: > Hi, > > When requesting a non-existing file I get this error: > > [Fri Nov 07 16:47:52 2008] [error] [Mason] File does not exist: > /var/www/apartia/trunk/zobk.md > [Fri Nov 07 16:47:52 2008] [error] [client 10.0.3.121] Can't call > method "exec" without a package or object reference at > /etc/apache2/handler2.pl line 169.\n > > The first one is normal, but the second one is more surprising. I am > simply calling: > > my $m = $ah->prepare_request($r); > > ... some session stuff > > my $status = $m->exec; > > return $status; > > Why does apache even pass the request to mason given the page is missing > and I have no ErrorDocument? > > Thanks, > > -- > http://www.lesculturelles.net > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Jerome Eteve. Chat with me live at http://www.eteve.net [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users