xX mM lL ERROR

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

xX mM lL ERROR

harish84
when i try to convert ftl file into pdf i am getting error as sax transform exception xml files must be terminated  by same entity.

javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
Reply | Threaded
Open this post in threaded view
|

Re: xX mM lL ERROR

Abhishake Agarwal
There may be a syntax error in your fo.ftl

On Tue, Dec 9, 2008 at 8:55 PM, harish84 <[hidden email]> wrote:

>
> when i try to convert ftl file into pdf i am getting error as sax transform
> exception xml files must be terminated  by same entity.
> --
> View this message in context:
> http://www.nabble.com/xX-mM-lL-ERROR-tp20916781p20916781.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: xX mM lL ERROR

Sumit Pandit-3
In reply to this post by harish84
Harish,

There are some examples available in OFBiz which give you direction how to convert ftl to pdf. (I am sure that you already consulted them.) Like in view order page there is link to save order in pdf format.
Please trace it. I am sure that tt will help you. And you get your out put.


* Don't forgot to include the handler in controller.

--
Thanks
Sumit Pandit




----- Original Message -----
From: "harish84" <[hidden email]>
To: [hidden email]
Sent: Tuesday, December 9, 2008 8:48:14 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: xX mM lL ERROR


when i try to convert ftl file into pdf i am getting error as sax transform
exception telling that xml files must be terminated by same entity.
--
View this message in context: http://www.nabble.com/how-to-display-jsp-page-by-using-bsh-instead-of-ftl-tp20886168p20916549.html 
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: xX mM lL ERROR

Erwan de FERRIERES-3
In reply to this post by harish84
Not sure, but it's an error in your fo.ftl file.
You must have a "&" somewhere, or it can also be a ">" missing.
We've have got the same error, but I can't remember where...

HTH

harish84 a écrit :
> when i try to convert ftl file into pdf i am getting error as sax transform
> exception xml files must be terminated  by same entity.

--
- Erwan -
Reply | Threaded
Open this post in threaded view
|

Re: xX mM lL ERROR

Nalin Chandra
In reply to this post by harish84
Hi Harish

This is very common error. You check your fo table syntex. may be you miss some things.

the main problem is common decorator where you create a template for pdf file some time user did the mistake at that place, means you not design the page as per the template.

So first you check the screen-decorator template after that check screen is proper for that template, then check run the request without content fo.ftl file. if pdf page is open then you must miss the fo table syntax.

I hope this will work for you.
other wise you send the file i will trace your error.


harish84 wrote
when i try to convert ftl file into pdf i am getting error as sax transform exception xml files must be terminated  by same entity.

javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.