Hi, ----- original Nachricht --------
Betreff: Fwd: Trace/BPT trap with PDFBox when running inside tomcat 6.0.20 Gesendet: Sa, 13. Mrz 2010 Von: ray dhurandhar<[email protected]> > Hi, > I am getting a Trace/BPT trap when invoking pdfbox to convert a pdf to an > image > inside a web application, running inside a Tomcat 6.0.20 container. > The result is that Tomcat and the JVM crash completely and the process > quits. > I get the exact result with jetty. The pdfbox invocation code is: > > String[] args = new String[] {"-imageType", "png", > "-startPage", > "1", "-endPage", "1", tmp_filename}; > org.apache.pdfbox.PDFToImage.main(args); > > It is a strange error, because it happens repeatably on a specific PDF file > (works fine on others) in my > actual codebase, but when I made a standalone jsp page to run the same code > on the same file > it works fine and generates a png. So in some situations pdfbox is tickling > the Java VM in a way that > it doesn't like. This is on Mac OS Snow Leopard, Java 1.6.0_17. > I haven't tried other platforms yet because I don't have easy access to a > windows/linux machine. > > Has anyone seen anything like this ? any suggestions to workaround ? > the debug trace is below: > SNIP Please post the stack trace, otherwise it will be difficult to find a point where to start looking for a possible solution. BR Andreas Lehmkühler

