You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Rosebud <dk...@rhtc.net> on 2002/10/16 01:50:49 UTC

Error When Running ASP Script

When running a simple ASP script to test the new ASP install on Apache 2 I get an internal server error and in logs contained a  long error message, that I do not understand.

Anyone help would be appreciated as I do not have any idea what is wrong or why this simple code will not work, I will paste the ASP code and the full error message below:


-------
ASP Script
-------
<%

$Response->Write("HELLO WORLD!!")

%>



------

Error Message in error_log of Apache Error Log Directory

------

[Sun Oct 13 17:22:45 2002] [error] [client 192.168.0.5] Can't locate object method "register_cleanup" via package "Apache::RequestRec" at /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 344.

Apache::ASP::new('Apache::ASP','Apache::RequestRec=SCALAR(0x815ad14)') called at /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 164

Apache::ASP::handler('Apache::RequestRec=SCALAR(0x815ad14)') called at -e line 0

eval {...} called at -e line 0



Re: Error When Running ASP Script

Posted by Josh Chamas <jo...@chamas.com>.
Eraser wrote:
> [Thu Oct 17 19:05:00 2002] [notice] Apache/2.0.43 (Unix)
> mod_perl/1.99_08-dev Perl/v5.8.0 mod_ssl/2.0.43 OpenSSL/0.9.6g PHP/4.2.3
> configured -- resuming normal operations
> 
> No valid request object (Apache::RequestRec=SCALAR(0x84fe9bc)) passed to ASP
> handler; if you are getting
> this error message, you likely have a broken DSO version of mod_perl
> which often occurs when using RedHat RPMs.  One fix reported is to
> configure "PerlSendHeader On".  Another fix is to compile
> statically the apache + mod_perl build as RedHat RPMs have been trouble.
> Please check FAQ or mod_perl archives for more information.
> 
> 
> -- This is the new error I get when I try to load PerlModule Apache::ASP in
> the httpd.conf instead of PerlModule Apache2
> 

This was an old error message relevant to mod_perl 1.2x on Apache 1.3.x,
and may not have any meaning for Apache2 compilations.

Certainly it is interesting that it is different however, but
this does not help me much in diagnosing your problem.  I did not
meet any of these problems when I got Apache 2 running with mod_perl
on my system.

--Josh


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


RE: Error When Running ASP Script

Posted by Eraser <dk...@rhtc.net>.
[Thu Oct 17 19:05:00 2002] [notice] Apache/2.0.43 (Unix)
mod_perl/1.99_08-dev Perl/v5.8.0 mod_ssl/2.0.43 OpenSSL/0.9.6g PHP/4.2.3
configured -- resuming normal operations

No valid request object (Apache::RequestRec=SCALAR(0x84fe9bc)) passed to ASP
handler; if you are getting
this error message, you likely have a broken DSO version of mod_perl
which often occurs when using RedHat RPMs.  One fix reported is to
configure "PerlSendHeader On".  Another fix is to compile
statically the apache + mod_perl build as RedHat RPMs have been trouble.
Please check FAQ or mod_perl archives for more information.


-- This is the new error I get when I try to load PerlModule Apache::ASP in
the httpd.conf instead of PerlModule Apache2

-----Original Message-----
From: Josh Chamas [mailto:josh@chamas.com]
Sent: Thursday, October 17, 2002 9:15 PM
To: Eraser
Cc: asp@perl.apache.org
Subject: Re: Error When Running ASP Script


Eraser wrote:
>    #
>    # ASP
>    #
>     PerlModule Apache2
>     <Files ~ (\.asp)>
>        SetHandler  perl-script
>        PerlHandler Apache::ASP
>        PerlSetVar  StateDir /tmp/asp
>     </Files>
>
> -- I'm out of ideas, I've recompiled again, put everything in that was on
> Apache 1.3.x and still get the same error, above is what is in the
> httpd.conf
>
> Am I missing anything?
>

Does it help if you do not load Apache2 ?
Try to load PerlModule Apache::ASP in the httpd.conf too.

Finally, if all else fails try switching back to 1.3.x
if reporting this problem to the mod_perl list does not
help.  Reports of mod_perl2 problems should likely be
prefaced with [MP2] in the subject line.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com




---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Error When Running ASP Script

Posted by Josh Chamas <jo...@chamas.com>.
Eraser wrote:
>    #
>    # ASP
>    #
>     PerlModule Apache2
>     <Files ~ (\.asp)>
>        SetHandler  perl-script
>        PerlHandler Apache::ASP
>        PerlSetVar  StateDir /tmp/asp
>     </Files>
> 
> -- I'm out of ideas, I've recompiled again, put everything in that was on
> Apache 1.3.x and still get the same error, above is what is in the
> httpd.conf
> 
> Am I missing anything?
> 

Does it help if you do not load Apache2 ?
Try to load PerlModule Apache::ASP in the httpd.conf too.

Finally, if all else fails try switching back to 1.3.x
if reporting this problem to the mod_perl list does not
help.  Reports of mod_perl2 problems should likely be
prefaced with [MP2] in the subject line.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


RE: Error When Running ASP Script

Posted by Eraser <dk...@rhtc.net>.
   #
   # ASP
   #
    PerlModule Apache2
    <Files ~ (\.asp)>
       SetHandler  perl-script
       PerlHandler Apache::ASP
       PerlSetVar  StateDir /tmp/asp
    </Files>

-- I'm out of ideas, I've recompiled again, put everything in that was on
Apache 1.3.x and still get the same error, above is what is in the
httpd.conf

Am I missing anything?

-----Original Message-----
From: Josh Chamas [mailto:josh@chamas.com]
Sent: Thursday, October 17, 2002 12:39 PM
To: Eraser
Cc: asp@perl.apache.org
Subject: Re: Error When Running ASP Script


Eraser wrote:
> ok, reinstalled everything with the latest version of Apache:ASP (2.45)
with
> mod_perl2 and Apache 2 on Linux. Everything is configured with the prefork
> mpm.
>
> I have no idea what is going on, does anyone?
>

How is your Apache::ASP configured to run in httpd.conf?
There is a new config directive in mod_perl 2, but you probably
need to still use the old perl-script directive instead.

Make sure as much as possible is the same as you used to
do things in apache 1.3.x ... failing this, you might post to
the mod_perl list about why the Apache object does not
have register_cleanup defined for it.

If nothing else works, I would downgrade to apache 1.3.x
and mod_perl 1.2x

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com




---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Error When Running ASP Script

Posted by Josh Chamas <jo...@chamas.com>.
Eraser wrote:
> ok, reinstalled everything with the latest version of Apache:ASP (2.45) with
> mod_perl2 and Apache 2 on Linux. Everything is configured with the prefork
> mpm.
> 
> I have no idea what is going on, does anyone?
> 

How is your Apache::ASP configured to run in httpd.conf?
There is a new config directive in mod_perl 2, but you probably
need to still use the old perl-script directive instead.

Make sure as much as possible is the same as you used to
do things in apache 1.3.x ... failing this, you might post to
the mod_perl list about why the Apache object does not
have register_cleanup defined for it.

If nothing else works, I would downgrade to apache 1.3.x
and mod_perl 1.2x

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


RE: Error When Running ASP Script

Posted by Eraser <dk...@rhtc.net>.
ok, reinstalled everything with the latest version of Apache:ASP (2.45) with
mod_perl2 and Apache 2 on Linux. Everything is configured with the prefork
mpm.

I have no idea what is going on, does anyone?

-----Original Message-----
From: Josh Chamas [mailto:josh@chamas.com]
Sent: Wednesday, October 16, 2002 12:46 AM
To: Rosebud
Cc: asp@perl.apache.org
Subject: Re: Error When Running ASP Script


Rosebud wrote:
> When running a simple ASP script to test the new ASP install on Apache 2
> I get an internal server error and in logs contained a  long error
> message, that I do not understand.
>

mod_perl 2 on Apache 2 is still experimental, and you may be
running into one of its experimental qualities :(

I however have gotten Apache::ASP to work fine on
mod_perl2/Apache2 combo, though am not running production
sites on it yet.

What version of Apache::ASP are you using?  Make sure its the
latest if you want it to work with mod_perl 2.  Also I would
recommend compiling mod_perl 2/Apache 2 with the default unix
prefork mpm on unix.  If you are using windows, I don't know
how stable that is yet.

> <%
>
> $Response->Write("HELLO WORLD!!")
>
> %>

This script should work fine, the error you get is deeper
in the Apache/mod_perl internals.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Error When Running ASP Script

Posted by Josh Chamas <jo...@chamas.com>.
Rosebud wrote:
> When running a simple ASP script to test the new ASP install on Apache 2 
> I get an internal server error and in logs contained a  long error 
> message, that I do not understand.
>  

mod_perl 2 on Apache 2 is still experimental, and you may be
running into one of its experimental qualities :(

I however have gotten Apache::ASP to work fine on
mod_perl2/Apache2 combo, though am not running production
sites on it yet.

What version of Apache::ASP are you using?  Make sure its the
latest if you want it to work with mod_perl 2.  Also I would
recommend compiling mod_perl 2/Apache 2 with the default unix
prefork mpm on unix.  If you are using windows, I don't know
how stable that is yet.

> <%
> 
> $Response->Write("HELLO WORLD!!")
> 
> %>

This script should work fine, the error you get is deeper
in the Apache/mod_perl internals.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


RE: Error When Running ASP Script

Posted by Thom Crane <ma...@thomcrane.com>.
I took the code as written and added a sei-colon, but it produced no error
for me.  It may be something specific with your configuration.  One of the
gurus around here can probably tell from the error message, but I am still
learning myself.  Sorry I couldn't help you.

Thom
  -----Original Message-----
  From: Eraser [mailto:dketchel@rhtc.net]
  Sent: Tuesday, October 15, 2002 9:19 PM
  To: Thom Crane
  Cc: asp@perl.apache.org
  Subject: RE: Error When Running ASP Script


  Semi-Colon Inserted into code, but the same error happens.

  Any other ideas??
    -----Original Message-----
    From: Thom Crane [mailto:mail@thomcrane.com]
    Sent: Tuesday, October 15, 2002 9:59 PM
    To: Rosebud
    Cc: asp@perl.apache.org
    Subject: RE: Error When Running ASP Script


    The only thing I see is no semi-colon ending the line.  But I would
think that would raise a syntax error rather than the hideous beast I see
down there.  If you do in fact have a semi-colon in your code, please
disregard this.

    Thom
      -----Original Message-----
      From: Rosebud [mailto:dketchel@rhtc.net]
      Sent: Tuesday, October 15, 2002 6:51 PM
      To: asp@perl.apache.org
      Subject: Error When Running ASP Script


      When running a simple ASP script to test the new ASP install on Apache
2 I get an internal server error and in logs contained a  long error
message, that I do not understand.

      Anyone help would be appreciated as I do not have any idea what is
wrong or why this simple code will not work, I will paste the ASP code and
the full error message below:


      -------
      ASP Script
      -------
      <%

      $Response->Write("HELLO WORLD!!")

      %>



      ------

      Error Message in error_log of Apache Error Log Directory

      ------

      [Sun Oct 13 17:22:45 2002] [error] [client 192.168.0.5] Can't locate
object method "register_cleanup" via package "Apache::RequestRec" at
/usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 344.

      Apache::ASP::new('Apache::ASP','Apache::RequestRec=SCALAR(0x815ad14)')
called at /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 164

      Apache::ASP::handler('Apache::RequestRec=SCALAR(0x815ad14)') called
at -e line 0

      eval {...} called at -e line 0


RE: Error When Running ASP Script

Posted by Eraser <dk...@rhtc.net>.
Semi-Colon Inserted into code, but the same error happens.

Any other ideas??
  -----Original Message-----
  From: Thom Crane [mailto:mail@thomcrane.com]
  Sent: Tuesday, October 15, 2002 9:59 PM
  To: Rosebud
  Cc: asp@perl.apache.org
  Subject: RE: Error When Running ASP Script


  The only thing I see is no semi-colon ending the line.  But I would think
that would raise a syntax error rather than the hideous beast I see down
there.  If you do in fact have a semi-colon in your code, please disregard
this.

  Thom
    -----Original Message-----
    From: Rosebud [mailto:dketchel@rhtc.net]
    Sent: Tuesday, October 15, 2002 6:51 PM
    To: asp@perl.apache.org
    Subject: Error When Running ASP Script


    When running a simple ASP script to test the new ASP install on Apache 2
I get an internal server error and in logs contained a  long error message,
that I do not understand.

    Anyone help would be appreciated as I do not have any idea what is wrong
or why this simple code will not work, I will paste the ASP code and the
full error message below:


    -------
    ASP Script
    -------
    <%

    $Response->Write("HELLO WORLD!!")

    %>



    ------

    Error Message in error_log of Apache Error Log Directory

    ------

    [Sun Oct 13 17:22:45 2002] [error] [client 192.168.0.5] Can't locate
object method "register_cleanup" via package "Apache::RequestRec" at
/usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 344.

    Apache::ASP::new('Apache::ASP','Apache::RequestRec=SCALAR(0x815ad14)')
called at /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 164

    Apache::ASP::handler('Apache::RequestRec=SCALAR(0x815ad14)') called
at -e line 0

    eval {...} called at -e line 0


RE: Error When Running ASP Script

Posted by Thom Crane <ma...@thomcrane.com>.
The only thing I see is no semi-colon ending the line.  But I would think
that would raise a syntax error rather than the hideous beast I see down
there.  If you do in fact have a semi-colon in your code, please disregard
this.

Thom
  -----Original Message-----
  From: Rosebud [mailto:dketchel@rhtc.net]
  Sent: Tuesday, October 15, 2002 6:51 PM
  To: asp@perl.apache.org
  Subject: Error When Running ASP Script


  When running a simple ASP script to test the new ASP install on Apache 2 I
get an internal server error and in logs contained a  long error message,
that I do not understand.

  Anyone help would be appreciated as I do not have any idea what is wrong
or why this simple code will not work, I will paste the ASP code and the
full error message below:


  -------
  ASP Script
  -------
  <%

  $Response->Write("HELLO WORLD!!")

  %>



  ------

  Error Message in error_log of Apache Error Log Directory

  ------

  [Sun Oct 13 17:22:45 2002] [error] [client 192.168.0.5] Can't locate
object method "register_cleanup" via package "Apache::RequestRec" at
/usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 344.

  Apache::ASP::new('Apache::ASP','Apache::RequestRec=SCALAR(0x815ad14)')
called at /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 164

  Apache::ASP::handler('Apache::RequestRec=SCALAR(0x815ad14)') called at -e
line 0

  eval {...} called at -e line 0