You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jacek DÄ…browski <ja...@o2.pl> on 2014/10/31 09:52:26 UTC
Exception content in ResponseExceptionMapper is null after adding FailoverFeature
Hi,
after adding FailoverFeature to the service (using JAXRSClientFactory.create with features parameter) I can see that additional log is displayed (which is great) in case of a failure from server:
Interceptor for {http://<address>/}<My>EndpointRestServiceClient has thrown exception, unwinding now
then information that there is no more addresses to send to:
AbstractStaticFailoverStrategy(selectAlternateEndpoint:121) - no alternate targets remain => giving up on failover
but in my ResponseExceptionMapper I'm getting now:
java.lang.RuntimeException(toResponse:20) - java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
Looks for me that during some phase Entity is taken from failed response and not put back.
Not sure of it but in PhaseInterceptorChain (v 2.7.11) I can see line:
Exception ex2 = message.getContent(Exception.class);
which might be an issue.
Anyone else had problem with that or maybe I'm doing something wrong?
FailoverFeature would be great if I hadn't faced above.