javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.]
You are getting the error because the
Here is the code I used
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.]
You are getting the error because the
InputStream
has been advanced to the end during the outputHere is the code I used
xmlValidatorService.setOpsReport(false);ListerrorList =
xmlValidatorService.runValidation(inputStream);
JAXBContext jaxbContext = JAXBContext.newInstance(WellsJaxb.class);
XMLStreamReader xsr = XMLInputFactory.newFactory().createXMLStreamReader
(inputStream); Unmarshaller um = jaxbContext.createUnmarshaller();
wellsJaxb = (WellsJaxb) um.unmarshal(xsr);
No comments:
Post a Comment