-
1. Re: fault handling with resteasy composite reference
jorgemoralespou_2 Apr 24, 2014 3:03 AM (in response to jbride)Hi,
I'm not an expert but as far as I know the endpoint is associated to the binding, so it is difficult to get the endpoint in the calling component.
A thought can be to create a Custom Message Composer that gets the the endpoint from the BindingData and put it in an Exchange header, so that you can use it in the component to compose the message to the client.
It is difficult to explain, but I think it could work. If you watch the forums, there are references on how to do it.
Hope it helps.
-
2. Re: fault handling with resteasy composite reference
kcbabo Apr 24, 2014 8:27 AM (in response to jbride)The info is likely getting clipped in our gateway or the RESTEasy client layer. If you are up for debugging, I would set a breakpoint here and see how the error is mapped into RESTEasyBindingData (I suspect something is lost there):
Or if you want to attach a reproducer we can have a look. If the error details make it into RESTEasyBindingData, then you can grab them in a custom message composer. If not, then it's a bug and component code fix.
-
3. Re: fault handling with resteasy composite reference
jbride Apr 24, 2014 9:19 AM (in response to kcbabo)Hi Keith.
The RESTEasyBindingData object never gets instantiated on line 292 when either HTTP 404 or 500 related problems occur.
Instead, the thread of execution errors outs on the line just prior (291) when trying to process the original HTTP error code and message.
Subsequently, what's left in the stack trace is only a message such as: Error status 404 Not Found returned
Want me to create a BZ on this ?
thanks!
jeff
-
4. Re: fault handling with resteasy composite reference
kcbabo Apr 24, 2014 10:00 AM (in response to jbride)Yes, please do! Thanks, Jeff.
-
5. Re: fault handling with resteasy composite reference
jorgemoralespou_2 Apr 24, 2014 10:44 AM (in response to jbride)Hi,
Sorry for jumping in again, but while the JIRA gets solved, and so, probably doing as I mentioned can, at least get you the URL back to your component, so you can create a more meaningful message in the meanwhile.
Due to the exception, the message never gets composed, but it gets decomposed, so you can insert into the Exchange a property with the actual URL invoked that you can retrieve in your component.
If I'm totally lost, just skip this message and don't hit at me, I'm trying to help, and been bitten a lot lately.
-
6. Re: fault handling with resteasy composite reference
jbride Apr 24, 2014 3:51 PM (in response to jorgemoralespou_2)Jorge,
You may be on to something. I'm going to experiment with this. thanks!
jeff
-
7. Re: fault handling with resteasy composite reference
jbride Apr 24, 2014 7:44 PM (in response to jbride) -
8. Re: fault handling with resteasy composite reference
mageshbk Sep 13, 2014 10:30 AM (in response to jbride)jbride and kcbabo can you please review this fix and suggest any improvements?
https://github.com/mageshbk/components/commit/af764132202ad934330c3029a2e0f167fe09a012
https://github.com/mageshbk/quickstarts/commit/f7f616703fbda2dde4d80018f68a90ecaa6e9cb4
regards,
Magesh