Examples of XMLDispatcherSystemException


Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

    {
      return marshaller.unmarshall(xdc.dispatchClassMethodXML(className,methodName,marshaller.marshall(rqst)));
    }
    catch(XMLMarshallerException e)
    {
      throw new XMLDispatcherSystemException(e);
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

    {
      return (String) marshaller.unmarshallId(xdc.dispatchNewInstanceMethodXML(className,methodName,marshaller.marshall(rqst)));
    }
    catch(XMLMarshallerException e)
    {
      throw new XMLDispatcherSystemException(e);
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

    {
      return marshaller.unmarshall(xdc.dispatchInstanceMethodXML(className,methodName,instanceId,marshaller.marshall(rqst)));
    }
    catch(XMLMarshallerException e)
    {
      throw new XMLDispatcherSystemException(e);
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

    {
      request.setVerb(EnvelopeConstants.stringToVerb(verb));
    }
    catch(EnvelopeMarshallerException e)
    {
      throw new XMLDispatcherSystemException(e);
    }
    request.setAppName(appName);
    request.setClassName(className);
    request.setMethodName(methodName);
    request.setInstanceId(instanceId);
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

      {
        throw (XMLDispatcherSystemException)e;
      }
      else
      {
        throw new XMLDispatcherSystemException(e);     
      }
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

      {
        throw (XMLDispatcherSystemException)e;
      }
      else
      {
        throw new XMLDispatcherSystemException(e);     
      }
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

                                               rqstEnvelope.getMethodName(),
                                               rqstEnvelope.getInstanceId(),
                                               rqstEnvelope.getXmlRqst());
        break;
      default:
        throw new XMLDispatcherSystemException("Invalid verb: " + rqstEnvelope.getVerb());
      }
      // prepare rply
      try
      {
        RplyEnvelopeOk rplyEnvelopeOk = new RplyEnvelopeOk(xmlRply,
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

    // dispatch request
    String xmlRply;
    if (verb == null)
    {
      throw new XMLDispatcherSystemException("Invalid verb: null");
    }
    else if (verb.equals(EnvelopeConstants.stringDispatchClassMethodXML))
    {
      xmlRply = xd.dispatchClassMethodXML(className,methodName,xmlRqst);
    }
    else if (verb.equals(EnvelopeConstants.stringDispatchNewInstanceMethodXML))
    {
      xmlRply = xd.dispatchNewInstanceMethodXML(className,methodName,xmlRqst);
    }
    else if (verb.equals(EnvelopeConstants.stringDispatchInstanceMethodXML))
    {
      xmlRply = xd.dispatchInstanceMethodXML(className,methodName,instanceId,xmlRqst);
    }
    else
    {
      throw new XMLDispatcherSystemException("Invalid verb: " + verb);
    }
   
    return new XMLDispatcherRply(xmlRply,xd.getSessionData());
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

            {
              xmlRply = (String)((EJBObject)entity).getPrimaryKey();
            }
            catch(RemoteException ex)
            {
              throw new XMLDispatcherSystemException(ex);
            }
          }
          break;
        }
      }

      // pack session data and return reply
      return new XMLDispatcherRply(xmlRply,SessionData.packSessionData(xdCtx.getSession()));
    }
    catch(Throwable e)
    {
      // propagate error
      if (e instanceof XMLDispatcherUserException)
      {
        if (pGetRollbackOnUserAndAppExceptions())
        {
          logcat.debug("Forcing a rollback due to UserException");
          pSessionContext.setRollbackOnly();
        }
        logcat.error("Rethrowing UserException",e);
        throw (XMLDispatcherUserException)e;
      }
      else if (e instanceof XMLDispatcherAppException)
      {
        if (pGetRollbackOnUserAndAppExceptions())
        {
          logcat.debug("Forcing a rollback due to AppException");
          pSessionContext.setRollbackOnly();
        }
        logcat.error("Rethrowing AppException",e);
        throw (XMLDispatcherAppException)e;
      }
      else if (e instanceof XMLDispatcherSystemException)
      {
        logcat.debug("Forcing a rollback due to SystemException");
        pSessionContext.setRollbackOnly();
        logcat.error("Rethrowing SystemException",e);
        throw (XMLDispatcherSystemException)e;
      }
      else
      {
        logcat.debug("Forcing a rollback due to other exception");
        pSessionContext.setRollbackOnly();
        e = pUnwrapException(e);
        logcat.error("Rethrowing (unwrapped) other exception as SystemException",e);
        throw new XMLDispatcherSystemException(e);
      }
    }
    finally
    {
      if (xdCtx != null)
      {
        try
        {
          xdCtx.doOnEndRequest();
        }
        catch(Exception e)
        {
          logcat.error("Caught exception while finishing transaction: rethrowing as SystemException",e);
          throw new XMLDispatcherSystemException(e);
        }
      }
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherSystemException

    {
      this.xde = (XMLDispatcherException)e;
    }
    else
    {
      this.xde = new XMLDispatcherSystemException(e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.