amardaxini/acts_as_flying_saucer — Issue #4: Java-ERROR:  'The entity "nbsp" was referenced, but not declared.'
Author: kurianm
Created: 2012-01-23 07:59:56+00:00
State: open

Hi Amar,

i am trying to use the acts_as_flying_saucer in a rails 3.0.7. When i am trying to generate i gets the following error. Please guide me how to use it.
ERROR: 'The entity "nbsp" was referenced, but not declared.'
Exception in thread "main" org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 169; The entity "nbsp" was referenced, but not declared.
at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:191)
at org.xhtmlrenderer.resource.XMLResource.load(XMLResource.java:71)
at org.xhtmlrenderer.swing.NaiveUserAgent.getXMLResource(NaiveUserAgent.java:212)
at org.xhtmlrenderer.pdf.ITextRenderer.loadDocument(ITextRenderer.java:137)
at org.xhtmlrenderer.pdf.ITextRenderer.setDocument(ITextRenderer.java:141)
at acts_as_flying_saucer.Xhtml2Pdf.main(Xhtml2Pdf.java:16)
Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 169; The entity "nbsp" was referenced, but not declared.
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:723)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)
at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:189)
... 5 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 169; The entity "nbsp" was referenced, but not declared.
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1234)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:640)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:711)
... 7 more