Package org.springframework.oxm

Examples of org.springframework.oxm.UnmarshallingFailureException


        ex instanceof ConversionException) {
      if (marshalling) {
        return new MarshallingFailureException("XStream marshalling exception",  ex);
      }
      else {
        return new UnmarshallingFailureException("XStream unmarshalling exception", ex);
      }
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown XStream exception", ex);
View Full Code Here


        ex instanceof ConversionException) {
      if (marshalling) {
        return new MarshallingFailureException("XStream marshalling exception",  ex);
      }
      else {
        return new UnmarshallingFailureException("XStream unmarshalling exception", ex);
      }
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown XStream exception", ex);
View Full Code Here

    else if (ex instanceof XmlException || ex instanceof SAXException) {
      if (marshalling) {
        return new MarshallingFailureException("XMLBeans marshalling exception",  ex);
      }
      else {
        return new UnmarshallingFailureException("XMLBeans unmarshalling exception", ex);
      }
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown XMLBeans exception", ex);
View Full Code Here

                        lResults.add(item);
                    }
                }
            } catch (DocumentException e) {
                throw new UnmarshallingFailureException(e.getMessage(), e);
            } finally {
                IOUtils.closeQuietly(in);
            }

            logger.debug("Unmarshalled bean of size {}.", lResults.size());
View Full Code Here

    else if (ex instanceof XmlException || ex instanceof SAXException) {
      if (marshalling) {
        return new MarshallingFailureException("XMLBeans marshalling exception",  ex);
      }
      else {
        return new UnmarshallingFailureException("XMLBeans unmarshalling exception", ex);
      }
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown XMLBeans exception", ex);
View Full Code Here

      try {
        DataHandler dataHandler = getAttachmentAsDataHandler(cid);
        return FileCopyUtils.copyToByteArray(dataHandler.getInputStream());
      }
      catch (IOException ex) {
        throw new UnmarshallingFailureException("Couldn't read attachment", ex);
      }
    }
View Full Code Here

        ex instanceof ConversionException) {
      if (marshalling) {
        return new MarshallingFailureException("XStream marshalling exception",  ex);
      }
      else {
        return new UnmarshallingFailureException("XStream unmarshalling exception", ex);
      }
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown XStream exception", ex);
View Full Code Here

    }
    else if (ex instanceof MarshalException) {
      return new MarshallingFailureException("JAXB marshalling exception", ex);
    }
    else if (ex instanceof UnmarshalException) {
      return new UnmarshallingFailureException("JAXB unmarshalling exception", ex);
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown JAXB exception", ex);
    }
View Full Code Here

      xmlReader.setContentHandler(contentHandler);
      xmlReader.parse(inputSource);
      return unmarshalHandler.getObject();
    }
    catch (SAXException ex) {
      throw new UnmarshallingFailureException("SAX reader exception", ex);
    }
  }
View Full Code Here

    else if (ex instanceof MarshalException) {
      if (marshalling) {
        return new MarshallingFailureException("Castor marshalling exception", ex);
      }
      else {
        return new UnmarshallingFailureException("Castor unmarshalling exception", ex);
      }
    }
    else {
      // fallback
      return new UncategorizedMappingException("Unknown Castor exception", ex);
View Full Code Here

TOP

Related Classes of org.springframework.oxm.UnmarshallingFailureException

Copyright © 2018 www.massapicom. 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.