private boolean isEligibleToBlackList(AxisFault f) { Throwable cause = f.getCause(); if (cause == null) { logger.error("unknown error occured", cause); return false; } /* * if timeout because of the set timeout in this class In windows, timeout cause ConnectException with * "Connection timed out" message */ if (cause instanceof SocketTimeoutException || cause.getMessage().indexOf("timed out") > 0 || cause instanceof NoRouteToHostException) { return true; } return false; }
private boolean isEligibleToBlackList(AxisFault f) { Throwable cause = f.getCause(); if (cause == null) { logger.error("unknown error occured", cause); return false; } /* * if timeout because of the set timeout in this class In windows, timeout cause ConnectException with * "Connection timed out" message */ if (cause instanceof SocketTimeoutException || cause.getMessage().indexOf("timed out") > 0 || cause instanceof NoRouteToHostException) { return true; } return false; }
public static boolean checkAuthException(AxisFault axisFault) { if (axisFault != null) { Throwable cause = axisFault.getCause(); QName name = axisFault.getFaultCode(); if (name != null && name.getLocalPart() != null && (name.getLocalPart().equals(ServerConstants.AUTHENTICATION_FAULT_CODE) || name.getLocalPart().equals(CarbonConstants.AUTHZ_FAULT_CODE))) { return true; } if (axisFault.getMessage().toLowerCase().indexOf("session timed out") != -1) { return true; } if ((cause != null) && (cause instanceof AxisFault)) { axisFault = (AxisFault) cause; name = axisFault.getFaultCode(); if (name != null && name.getLocalPart() != null && (name.getLocalPart().equals(ServerConstants.AUTHENTICATION_FAULT_CODE) || name.getLocalPart().equals(CarbonConstants.AUTHZ_FAULT_CODE))) { return true; } } } return false; }
@Override public void set_fault(AxisFault e) throws XdsInternalException { // String code = ""; String detail = ""; try { //code = e.getFaultCode().getLocalPart(); detail = e.getCause().toString(); } catch (Exception ex) { } detail = detail + " : " + e.getMessage(); setStatus(false); fault(test_step_output, detail, detail); }
direBonjourResponse2 = skel.direBonjour(wrappedParam); } catch (AxisFault e) { logger.info(e.getCause() + ", " + e.getMessage()); DireBonjourResponse direBonjourResponse = new DireBonjourResponse(); direBonjourResponse.setAge(0);
private Message handleFault(Message msg, String endpointUri, AxisFault e, List<String> failedUris) { Throwable cause = e.getCause(); if (cause instanceof ConnectException) { failedUris.add(endpointUri); if (failedUris.size() != endpointUris.size()) { // Retry till all URIs are exhausted return invoke(msg); } } SOAPFaultDetail element = e.getFaultDetailElement(); if (element == null) { throw new ServiceUnavailableException("Service fault was: \n" + e + "\n\n", e); } OMNode child = element.getFirstOMChild(); if (child == null) { throw new ServiceUnavailableException("Service fault was: \n" + e + "\n\n", e); } throw new ServiceUnavailableException("Service fault was: \n" + child + "\n\n", e); }
throw new SendingException(ex.getCause()); } finally { if (client != null) {
if (axisFault.getCause() != null && axisFault.getCause().getCause() != null && axisFault.getCause().getCause() instanceof IOException) { synCtx.setProperty(SynapseConstants.ERROR_MESSAGE, axisFault.getCause().getCause().getMessage()); } else if (axisFault.getMessage() != null) { synCtx.setProperty(SynapseConstants.ERROR_MESSAGE, axisFault.getMessage());
throw new SendingException(ex.getCause()); } finally { if (client != null) {
sender.sendRobust(message); } catch (AxisFault e) { if (e.getCause() instanceof ConnectException) { throw e; //retry
if (e.getCause() instanceof FileNotFoundException) { log.warn("Error processing File URI : " + VFSUtils.maskURLPassword(fileObject.getName().toString()) +