jQuery in Action, 2nd edition
The moose likes Other JSE/JEE APIs and the fly likes ERROR:  'The reference to entity Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "ERROR:  Watch "ERROR:  New topic
Author

ERROR: 'The reference to entity "L" must end with the ';' delimiter.'

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Hello,

I am trying to integrate "Flying Saucer" to generate output as pdf but getting the subject error:


Please advise

Thanks in anticipation
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Can you show us the exact error message you get on the command line?


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

That would mean that your XML document contains an ampersand which hasn't been escaped properly. In particular the error message says that it's &L and it suggests that you might have meant to use an entity from the DTD, namely &L;.

But more likely you just produced malformed XML and should have had &L.

It looks like you're producing XML by string concatenation. So if you are inserting a text node into XML that way, make sure you escape characters which could be markup characters correctly. Those include & and < and >. Or alternatively, generate your XML with some standard API which knows how to work with XML.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
I am grateful to you from the bottom of my heart. This fixed my issue.

Kindest regards
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: ERROR: 'The reference to entity "L" must end with the ';' delimiter.'
 
Similar Threads
can't get JTable(vector, vector) constructor to work
XML Tranformation using XSLT
how to solve this type of stackoverflowerror...
Jpanels and Jscrollpanels
Getting Formatted Content from jEditorPane