[opencms-dev] how to catch a Server error 500

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Fri Jul 14 12:46:42 CEST 2006


On Fri, Jul 14, 2006 at 11:15:44AM +0100, Joe Desbonnet wrote:
> I presume you are using version 6.0.x.
> 
> That's a bug. I think I posed a hack to fix that many moons ago if you
> search the logs (probably for keyword "500"). If you can't find it
> I'll repost my solution.

I searched my own logs and found a Subject: Status code
bug (500 this time) 

Is it this one:

       res.setStatus(status);
                res.setContentType("text/plain");
                res.getWriter().write("Error " + status + "\n" + t.toString());
                    //res.sendError(status, t.toString());

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list