Example usage for org.springframework.oxm XmlMappingException printStackTrace

List of usage examples for org.springframework.oxm XmlMappingException printStackTrace

Introduction

In this page you can find the example usage for org.springframework.oxm XmlMappingException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:com.shopzilla.api.service.ProductService.java

public ProductResponse xmlInputStreamToJava(InputStream in) throws IOException, JAXBException {
    try {//from ww  w. j  ava  2  s.  co  m

        ProductResponse productResponse = (ProductResponse) unmarshaller.unmarshal(new StreamSource(in));
        System.out.println("productResponse = " + productResponse);
        return productResponse;

    } catch (XmlMappingException xme) {
        xme.printStackTrace();
    }
    return null;
}