Issue 10449

Client not wrapping exceptions

10449
Reporter: lfrancke
Type: Bug
Summary: Client not wrapping exceptions
Description: The client does not wrap exceptions like 404 to return null instead or 500 to return our ServiceUnavailableException.
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2011-11-22 17:12:45.864
Updated: 2013-12-06 13:16:02.464
Resolved: 2012-10-11 10:46:43.631


Author: mdoering@gbif.org
Created: 2011-12-01 10:32:50.509
Updated: 2011-12-01 10:32:50.509
        
An example error from the portal right now proves this is still a valid issue:

====================
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception

com.sun.jersey.api.client.UniformInterfaceException: Client response status: 500
	com.sun.jersey.api.client.WebResource.handle(WebResource.java:676)
	com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
	org.gbif.checklistbank.ws.client.NameUsageSearchWsClient.search(NameUsageSearchWsClient.java:83)
	org.gbif.portal.action.BaseFacetedSearchAction.execute(BaseFacetedSearchAction.java:121)
    


Author: mdoering@gbif.org
Comment: that was addressed a while ago in http://code.google.com/p/gbif-common-resources/source/browse/gbif-common-ws/trunk/src/main/java/org/gbif/ws/client/interceptor/HttpErrorResponseInterceptor.java
Created: 2012-10-11 10:46:43.654
Updated: 2012-10-11 10:46:43.654