Java 类javax.xml.rpc.soap.SOAPFaultException 实例源码

项目:jplag    文件:JplagSwingClient.java   
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();
    }
}
项目:tomee    文件:HandlerChainImpl.java   
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;
}
项目:AvoinApotti    文件:WebServicesIntegrationImpl.java   
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;
}
项目:openMAXIMS    文件:WebServicesIntegrationImpl.java   
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;
}
项目:openMAXIMS    文件:WebServicesIntegrationImpl.java   
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;
}
项目:openmaxims-linux    文件:WebServicesIntegrationImpl.java   
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;
}
项目:AvoinApotti    文件:WebServicesIntegrationImpl.java   
private void createSOAPFault(SystemLogLevel logLevel, String faultString)
{
     createSystemLogEntry(SystemLogType.WEB_SERVICE,logLevel, getSessionData().securityTokenLaunchUsername.get(), "", faultString);
     throw new SOAPFaultException(null, faultString, null, null);
}
项目:openMAXIMS    文件:WebServicesIntegrationImpl.java   
private void createSOAPFault(SystemLogLevel logLevel, String faultString)
{
     createSystemLogEntry(SystemLogType.WEB_SERVICE,logLevel, getSessionData().securityTokenLaunchUsername.get(), "", faultString);
     throw new SOAPFaultException(null, faultString, null, null);
}
项目:openMAXIMS    文件:WebServicesIntegrationImpl.java   
private void createSOAPFault(SystemLogLevel logLevel, String faultString)
{
     createSystemLogEntry(SystemLogType.WEB_SERVICE,logLevel, getSessionData().securityTokenLaunchUsername.get(), "", faultString);
     throw new SOAPFaultException(null, faultString, null, null);
}
项目:class-guard    文件:JaxRpcSoapFaultException.java   
/**
 * Return the wrapped JAX-RPC SOAPFaultException.
 */
public final SOAPFaultException getOriginalException() {
    return (SOAPFaultException) getCause();
}
项目:openmaxims-linux    文件:WebServicesIntegrationImpl.java   
private void createSOAPFault(SystemLogLevel logLevel, String faultString)
{
     createSystemLogEntry(SystemLogType.WEB_SERVICE,logLevel, getSessionData().securityTokenLaunchUsername.get(), "", faultString);
     throw new SOAPFaultException(null, faultString, null, null);
}
项目:class-guard    文件:JaxRpcSoapFaultException.java   
/**
 * Constructor for JaxRpcSoapFaultException.
 * @param original the original JAX-RPC SOAPFaultException to wrap
 */
public JaxRpcSoapFaultException(SOAPFaultException original) {
    super(original.getMessage(), original);
}