You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Matthew Broadhead <ma...@nbmlaw.co.uk.INVALID> on 2018/07/18 09:56:18 UTC

debug in embedded mode

hi, i am using FOP like
StreamSource xml = new StreamSource(new StringReader(fopjuice));
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
ByteArrayOutputStream out = new ByteArrayOutputStream();
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(xml, res);

How do I turn on debugging?  I am getting this error message which 
doesn't make sense to me
javax.xml.transform.TransformerException: 
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
     at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
     at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:343)
     at 
uk.me.kissy.external.entityBeans.UtilityDao.getXMLParse(UtilityDao.java:191)
     at 
uk.me.kissy.external.entityBeans.UtilityDao$$OwbNormalScopeProxy0.getXMLParse(uk/me/kissy/external/entityBeans/UtilityDao.java)
     at 
uk.me.kissy.document.dao.DocumentElementDao.getBodyPDF(DocumentElementDao.java:395)

it only happens if i exclude xalan and xml-apis when embedding fop in 
TomEE 7.0.3.  when i include the jars it works fine

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org