I fail to see what has iText to do with it.

Paulo
  ----- Original Message ----- 
  From: soph 
  To: [email protected] 
  Sent: Tuesday, May 18, 2010 8:06 PM
  Subject: [iText-questions] Apache FOP can convert my xml+xslt_fo to PDF, Why 
itext cannot?



  I have an XML and an XSLT_FO. I created the XSLT_FO by Altova stylevision. 

  Apache FOP can successfully generate a PDF file by feeding my XML and
  XSLT_FO. However, when I tried to use Mirth, who adopts itext as PDF
  processor, I kept get the following error message. I googled the error
  message, looks like something wrong with the encoding. But I don't know how
  to fix it.
   The interesting part is, they just works fine in Apache FOP, no error at
  all.

  java.lang.Exception: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte
  UTF-8 sequence.
      at
  
com.webreach.mirth.connectors.doc.DocumentMessageDispatcher.writeDocument(DocumentMessageDispatcher.java:148)
      at
  
com.webreach.mirth.connectors.doc.DocumentMessageDispatcher.doDispatch(DocumentMessageDispatcher.java:105)
      at
  
com.webreach.mirth.connectors.doc.DocumentMessageDispatcher.doSend(DocumentMessageDispatcher.java:195)
      at
  
org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:167)
      at org.mule.impl.MuleSession.sendEvent(MuleSession.java:191)
      at org.mule.impl.MuleSession.sendEvent(MuleSession.java:130)
      at
  
org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:85)
      at
  
org.mule.routing.outbound.FilteringMulticastingRouter.route(FilteringMulticastingRouter.java:45)
      at
  
org.mule.routing.outbound.OutboundMessageRouter$1.doInTransaction(OutboundMessageRouter.java:78)
      at
  org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:48)
      at
  
org.mule.routing.outbound.OutboundMessageRouter.route(OutboundMessageRouter.java:82)
      at
  org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:247)
      at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:209)
      at
  org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:277)
      at org.mule.impl.MuleSession.sendEvent(MuleSession.java:201)
      at
  
org.mule.routing.inbound.InboundMessageRouter.send(InboundMessageRouter.java:180)
      at
  
org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:147)
      at
  
org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:493)
      at
  
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:272)
      at
  
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:231)
      at
  
com.webreach.mirth.connectors.file.FileMessageReceiver.processFile(FileMessageReceiver.java:233)
      at
  
com.webreach.mirth.connectors.file.FileMessageReceiver.poll(FileMessageReceiver.java:123)
      at
  org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:90)
      at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290)
      at
  
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at
  
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Unknown Source)
  Caused by: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8
  sequence.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at
  
com.webreach.mirth.connectors.doc.DocumentMessageDispatcher.writeDocument(DocumentMessageDispatcher.java:140)
      ... 26 more


  http://n4.nabble.com/file/n2221742/original.xml original.xml 
  http://n4.nabble.com/file/n2221742/XSLT_Fo_bystylevision_datedisplayfine.xslt
  XSLT_Fo_bystylevision_datedisplayfine.xslt 
  -- 
  View this message in context: 
http://itext-general.2136553.n4.nabble.com/Apache-FOP-can-convert-my-xml-xslt-fo-to-PDF-Why-itext-cannot-tp2221742p2221742.html
  Sent from the iText - General mailing list archive at Nabble.com.

  ------------------------------------------------------------------------------

  _______________________________________________
  iText-questions mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/itext-questions

  Buy the iText book: http://www.itextpdf.com/book/
  Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
  You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to