Hello,

It works, I know have the exception ... But apparently, it's not the real 
exception that I throw but the cause of the thrown exception?
Have you implemented a mechanism that, in case and exception have a cause, put 
the cause of the exception in the status and not the exception itself?

Because this is an issue for me as I create specific mechanism for specific 
exception type : in case a service return an exception in a Resource, I throw a 
subclass of ResourceException containing the service exception as cause, and in 
the StatusService I direcltuy receive the Service exception.

Regards,

Loïc 

-----Original Message-----
From: Thierry Boileau [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2008 16:21
To: [email protected]
Subject: Re: Issue when using a custom StatusService

Hi Loïc,

You can get the latest built snapshot at this URL: 
"http://www.restlet.org/downloads/";.
it is labelled "Development version (unstable)" and is available as a ZIP file 
or as a windows setup file.

The fix consist in letting you recover the exception from the status object in 
the getRepresentation method. I hope it fixes your problem.

best regards,
Thierry Boileau

> Thanks Thierry,
>  
> Is their a new release forseen soon or need I to build the jars from 
> the repository?
> In all case, I want to say "Bravo" for this quick bugfixe.
>  
> Regards,
>  
> Loïc
>
> ----------------------------------------------------------------------
> --
> *From:* Thierry Boileau [mailto:[EMAIL PROTECTED]
> *Sent:* 27 May 2008 13:04
> *To:* [email protected]
> *Subject:* Re: Issue when using a custom StatusService
>
> Hello Loïc,
>
> thans for your report. This bug is now fixed in the svn repository.
>
> best regards,
> Thierry Boileau
>
>
>> Anybody have aleady had the same issue?
>>
>> ---------------------------------------------------------------------
>> ---
>> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> *Sent:* 22 May 2008 13:52
>> *To:* [email protected]
>> *Subject:* Issue when using a custom StatusService
>>
>> Hello,
>>
>> I create a StatusService as explained in the tutorial with the 
>> details I gather from the mailing list archives.
>>
>> My getRepresentation() method is called, but when I try to recover 
>> the throwable that generate the error, I have a null!
>>
>> I also implemented the getStatus method, but it is never called!
>>
>> I'm using Restlet 1.1M4 with Spring and a component direclty ( no 
>> application).
>>
>> Big question is, how I can access the throwable that was throw by the 
>> application and why my getStatus method is not caller by the 
>> ComponentStatusFiler (I check the code and normally this should be).
>>
>> Regards,
>>
>> Loïc
>>
>> **** DISCLAIMER ****
>> http://www.belgacom.be/maildisclaimer
>>
>> **** DISCLAIMER ****
>> http://www.belgacom.be/maildisclaimer
>>
>
> **** DISCLAIMER ****
> http://www.belgacom.be/maildisclaimer
>


**** DISCLAIMER ****
http://www.belgacom.be/maildisclaimer

Reply via email to