logo       

Re: Dispatch Problem: msg#00061

Subject: Re: Dispatch Problem

Michael Petnuch wrote:
> Hello,
> 
>     I just upgraded to the new version of Dispatch.  Everything went
> smooth, I didn't have to change anything.  However, I have been getting
> a strange error.  I checked out the code and it seems that at the end of
> the handler method $r->status is being set (its value is 200).  This
> value is associated with everything is Okay.  However because the status
> is being set it triggers the http_error method (I think)

The status doesn't trigger a call to http_error, an exception in your
application, or in the URL parsing does.

> and I see this
> appended to the html output:

If it's appended, then it probably means that your application finished it's run
mode and postrun. I'd suspect that something is wrong in your teardown.

[snip]

> Shouldn't Dispatch check to see if the status is 200. 

I'm not sure where you're talking about. How can it check if the status is 200
if it's running as the handler? It's the component that sets the status.

> I was confused
> because it sends either $r->status || OK();.  If I am seeing this does
> it mean that their is something wrong with my setup (maybe an Apache
> config this).

I suspect something in your teardown phase. Is there anything in your apache
error log? Dispatch should be ignoring any errors thrown by your application
unless it's the "No such run mode" error, which becomes a NOT_FOUND error.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe