0 Replies Latest reply: Jan 7, 2010 4:09 AM by 807575 RSS

    entity name must immediately follow the '&' in the entity reference

    807575
      HI
      when i try to convert html to pdf am parsing jsp page that time i am getting exception.
      i have given like this.
      HtmlParser.parse(document, "http://192.168.10.170:7077/final/reporter/SendMail.jsp");

      please help me.


      ExceptionConverter: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:386)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
      XMLErrorReporter.java:316)
      at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
      MLScanner.java:1438)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1293)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1756)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
      l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:255)
      at com.lowagie.text.html.HtmlParser.go(Unknown Source)
      at com.lowagie.text.html.HtmlParser.parse(Unknown Source)
      at HtmlParseExample.main(HtmlParseExample.java:41)