private void CheckException(Exception ex) { if (ex instanceof JPlagException) { JPlagException jex = (JPlagException) ex; getJEditorPane().setContentType("text/plain"); getJEditorPane().setText(jex.getExceptionType() + " at " + new Date() + "\n" + jex.getDescription() + "\n" + jex.getRepair()); getStatusTextfield().setText(jex.getExceptionType()); } else if (ex instanceof RemoteException) { CheckRemoteException((RemoteException) ex); } else if (ex instanceof SOAPFaultException) { SOAPFaultException se = (SOAPFaultException) ex; getJEditorPane().setContentType("text/plain"); getJEditorPane().setText( "Unexpected SOAPFaultException: " + se.getFaultActor() + "\n" + se.getFaultString() + "\n" + se.getMessage() + "\n" + se.getDetail()); getStatusTextfield().setText(se.getFaultActor()); } else { getStatusTextfield().setText(ex.getClass().getName() + " : " + ex.getMessage()); ex.printStackTrace(); } }
public boolean handleRequest(MessageContext context) { MessageSnapshot snapshot = new MessageSnapshot(context); try { for (int i = 0; i < size(); i++) { Handler currentHandler = (Handler) get(i); invokedHandlers.addFirst(currentHandler); try { if (!currentHandler.handleRequest(context)) { return false; } } catch (SOAPFaultException e) { throw e; } } } finally { saveChanges(context); } if (!snapshot.equals(context)) { throw new IllegalStateException("The soap message operation or arguments were illegally modified by the HandlerChain"); } return true; }
private ims.domain.SessionData getSessionData() { SessionData sessData = (SessionData)this.getDomainFactory().getDomainSession().getAttribute(SessionConstants.SESSION_DATA); if (sessData == null) { throw new SOAPFaultException(null, "getSessionData(): sessionData cannot be null", null, null); } return sessData; }
private void createSOAPFault(SystemLogLevel logLevel, String faultString) { createSystemLogEntry(SystemLogType.WEB_SERVICE,logLevel, getSessionData().securityTokenLaunchUsername.get(), "", faultString); throw new SOAPFaultException(null, faultString, null, null); }
/** * Return the wrapped JAX-RPC SOAPFaultException. */ public final SOAPFaultException getOriginalException() { return (SOAPFaultException) getCause(); }
/** * Constructor for JaxRpcSoapFaultException. * @param original the original JAX-RPC SOAPFaultException to wrap */ public JaxRpcSoapFaultException(SOAPFaultException original) { super(original.getMessage(), original); }