Error: Illegal or empty (text)

scott at ruralnetwork.net scott at ruralnetwork.net
Tue Mar 23 18:46:16 PST 2004


Below is an update on what I found out on the interaction between Freeside, 
CGI.pm >= 3.00 and Apache::ASP.  For now, I would suggest using HTML::Mason 
install of Apache::ASP with Freeside 1.4.1. 

 --
Scott Langley
scott at ruralnetwork.net
Systems Administrator
Rural Network Services 

 ----------Forwarded message ----------
From: scott at ruralnetwork.net
To: Josh Chamas <josh at chamas.com>
Subject: Re: Apache::ASP grabbing STDIN
Date: Sat, 20 Mar 2004 21:59:14 GMT 

Josh Chamas writes: 

> I did this hack for Apache::ASP so that people could more easily port
> CGI script by just wrapping <% %> around them.  Since Apache::ASP calls
> read() and consumes the input, I don't see how I could get it to work
> with Apache::Request, but I am not sure it is something developer.   
> 
> One work around for those having problems with CGI might be to use
> this API instead:   
> 
>    $query = new CGI(\*STDIN);   
> 
> Scott, does this work for your situation?  Can you get the Apache::ASP
> examples to work with this change on your installation?   
> 
> Regards,   
> 
> Josh
> ________________________________________________________________________
> Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
> Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
> http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org   
> 

When I try what you suggested in the Apache::ASP cgi.htm example, I get
a runaway httpd process that consumes around 90% of the CPU and no ouput 
returned to the browser.  The last lines that appears in the Apache error 
log are: 

[error] [asp] [3813] [debug] [1079816560.7241;0.0015] [cgi.htm] - 
Script_OnStart /var/www/asp/eg/cgi.htm in global.asa
[error] [asp] [3813] [debug] [1079816560.7247;0.0006] executing 
CODE(0x85d92e8) 

This example uses CGI this way:
use CGI qw(:standard); 

When I try what you suggested in the real Apache::ASP application that I 
want to work, the ISP customer management software package Freeside,
http://www.sisd.com/freeside/, I get: 

[error] [asp] [2098] [error] Can't locate object method "READLINE" via 
package "Apache::ASP::Request" at /usr/lib/perl5/5.8.3/CGI.pm line 510. <--> 
, /usr/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 1518 

This code uses CGI this way:
use CGI; 

where:
$query = new CGI(\*STDIN); 

is called in the Script_OnStart method of the application's global.asa file.
Both of these tests were done with Apache::ASP 2.57 and CGI 3.04. 

Do you have any other suggetsions? 

 --
Scott Langley
scott at ruralnetwork.net
Systems Administrator
Rural Network Services 



More information about the freeside-users mailing list