On 10.03.2005 08:49:26 Ben Gill wrote: > Hi, > > ok I tried it again and get the same exception!! > > Here is my code (well I have given you the equiv with project team!):
<snip/> Hmm, you are still using the InputHandler approach which I personally don't consider ideal. I'd integrate the renderXML() method into the main execute method and use the pattern from ExampleObj2PDF 1:1. But I can't tell if your problem has something to do with that. Probably not. > > and here is the stack trace: > > 2005-03-10 07:40:21 StandardContext[/tracker]: Mapped to servlet 'fop' with > servlet path '/fop' and path info 'null' and update=true > 2005-03-10 07:40:23 StandardWrapperValve[fop]: Servlet.service() for servlet > fop threw exception > javax.servlet.ServletException: java.net.MalformedURLException > at > com.ocado.tracker.common.FopServlet.renderXML(FopServlet.java:150) > at com.ocado.tracker.common.FopServlet.execute(FopServlet.java:116) Ok, this doesn't say much other than there's an URL somewhere that's making problems. <snip/> > at java.lang.Thread.run(Thread.java:534) > Caused by: java.net.MalformedURLException > at java.net.URL.<init>(URL.java:571) > at java.net.URL.<init>(URL.java:434) > at java.net.URL.<init>(URL.java:383) > at > org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) > at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown > Source) > at > org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source) > at > org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) This here is more interesting. "DTDConfiguration". Is there a DTD involved somewhere in your processing chain? If yes, I'd try to track that down. Obviously, the problem happens during XSLT stage, not within FOP itself. What I would suggest is even more than the above suggestion. Extract the whole transformation (XSLT+FOP) functionality of the servlet into a separate class that you can easily test outside the web container. Then just call this functionality from within the servlet. > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at > org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:495) > at > org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: > 658) I'm sorry that I can't just tell what went wrong. My suggestions should help you track down the problem further and maybe someone else has an additional idea. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]