This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Here, filePath is location of xml file which i need to read and parse.
for this code i am getting below exception.
[Fatal Error] :-1:-1: Premature end of file.
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
... 9 more
Even i specified correct xml file path as an argument for that method.
This code was worked earlier in some other server, but i am getting problem in some other server.
Actually i tried all ways but still i didn't find reason.