Kurt George Gjerde wrote:
Hi,

I get a "Can't coerce GLOB to string"-error for every new thread that is
started (mp2). I have no idea why this happens (or even what this error
actually means).

The module is included below (line producing the error is marked "ERROR
HERE"). Error happens for every new thread (on the first request).
When running ApacheBench  ab -c 3 -n 100 http://...  I get 3 errors and 97
OKs.

[...]


use threads;
use threads::shared;

why do you need to load threads? Do you plan to spawn your own threads?


[...]

  ### PARSE DOCUMENT
  my $document;
  eval {
    $document = $xmlParser->parse_file($documentFilename);
  };
  if ($@) {
    return error($r,'Error parsing XML document',$@);
  }
[...]
  ### TRANSFORM
  my $results;
  eval {
    $results = $stylesheet->transform($document);   ### <--- ERROR HERE

It's expecting a scalar as an argument, right? could it be that $document is not a scalar? try to print ref($document)?


[...]
[Tue Feb 25 16:04:04 2003] [error] [xslTransformer] Error transforming
document - Can't coerce GLOB to string in entersub at
E:/data/www/perlLib/MyApache/XSLTransformer.pm line 74.
[tid=APR::OS::Thread=SCALAR(0x1205be4)|reqno=1|errno=1]


--


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



Reply via email to