cancel
Showing results for 
Search instead for 
Did you mean: 

problem in parsing an xml using DOM parser.

Former Member
0 Kudos

Hi,

I have created an action block for client.

it takes a xml file present on D drive and generates a pdf by parsing the xml file.

My code was working perfectly fine till yesterday.

But now i getting , [INFO ]: Error-- Premature end of file. org.xml.sax.SAXParseException: Premature end of file.

But xml is perfectly fine. Also the code work from eclipse.

Need some inputs on this.

Regards,

Vishal Jadhav

Edited by: vishal jadhav on Jan 23, 2009 9:49 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I suspect that if it was working but now has issues, there may have been changes to the file/directory security? That would be the first thing I'd check. Also, it sounds trivial, but if you look at the file itself, has it been corrupted?

Former Member
0 Kudos

Thanks for the quick reply...

The issue is resolved.

The code is working fine now....

What I was doing in the code was passing the xml and pdf file paths.

The paths got interchanged....

Sorry for any inconvenience caused....

Former Member
0 Kudos

Vishal,

what exactly did you change? How do you call the action block? What version/Support package/Build of MII do you use?

Have you see the following thread? There a user had the same message which was caused by missing credentials.

[https://forums.sdn.sap.com/click.jspa?searchID=21364701&messageID=6756453]

Michael

Edited by: Michael Otto on Jan 23, 2009 11:57 AM