• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SAXParseException: Premature end of file

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic