Hi,
As i am new to
Java i need some one's help..
I got the exception while i try to parse XML which is generated from the PHP code.. and i use sax to read the xml and convert to some formats using TransformerFactory...
Since the samefile gets executed with out any problem last month..i dont even touch the java and php code..But we makes the application secure with some security settings after that only i got the error while execute the code..
I search through the web forums regarding it.but i am not able to solve it..
following is my stack trace
Parser could not read XML from reportresponse...
org.jdom.JDOMException: Error on line -1: Premature end of file.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:300)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
at sen.extractor.Report.runReport(Report.java:217)
at sen.extractor.Report.Extract(Report.java:189)
at sen.extractor.Extractor.Execute(Extractor.java:457)
at sen.extractor.Extractor.run(Extractor.java:583)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1183)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)
... 6 more
Root cause:
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1183)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
can anyone help me.I am in stuck....