cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <>
Subject Re: System.exit() brings down Jetty/Cocoon
Date Mon, 01 Dec 2003 18:45:35 GMT
Litrik De Roy wrote:
> A call to System.exit(0) (for example in an XSP page) brings down 
> Jetty/Cocoon without any warning or error message.
> Is Jetty/Cocoon supposed to behave this way?
> How can this be prevented?

Hm, the only thing I can find is that System.exit() throws a SecurityException if the 
securitymanager won't let it:

implementation is left as an exercise to the reader :)


> PS: Yes I know that calling System.exit() is stupid, but our 
> Cocoon-based webapp is crashing intermittingly without any trace and I'm 
> suspecting that somewhere in one of the 25 third-party jars a 
> System.exit() gets called (for whatever reason). Hence my testing, and 
> this question.

View raw message