cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <Andre.Juf...@oulu.fi>
Subject Re: jetty
Date Wed, 27 Feb 2008 13:49:29 GMT
 >Carsten Ziegeler wrote:
> Andre Juffer wrote:
>>
> Now, I agree with Joerg that this code looks very suspicious; I guess 
> your intention is to catch an exception while dealing with the data in 
> "do_something_with(data)".

Correct.

> The problem with the code above is that if an 
> exception occurs in form.load() or form.showForm() etc. you end up with 
> an endless loop.
> So I would rather catch the exception inside the "do_xxx" method (or 
> handle error codes in a more graceful way than just catching exceptions).

Yeah, I guess this is what I need to do then. There is in fact an 
exception handling mechanism in do_xxx(). I will improve this then.

> 
> Although I suggest to improve the code, I fear that this is not the 
> cause of your problem. My guess is still a class loader issue: you might 
> end up with different libs being used in Jetty.

OK, let's assume that this is the case. There is probably not much that 
I can do about it.

I'll follow the suggestion by Joerg and you to handle these exception 
occuring in do_xxx() in a different way.

Thanks.

-- 
Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
     the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
NordProt                     | WWW: www.nordprot.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message