I have a simple web app that's made with spring java. It basically converts an SVG image to a PDF document using the FOP Batik transcoder. The code used is more or less as follows.
Transcoder transcoder = new PDFTranscoder(); TranscoderInput transcoderInput = new TranscoderInput(new FileInputStream(new File("/tmp/test.svg"))); TranscoderOutput transcoderOutput = new TranscoderOutput(new FileOutputStream(new File("/tmp/test.pdf"))); transcoder.transcode(transcoderInput, transcoderOutput);
My problem is that when i deploy the webapp using tomcat 8.5.6 on a centos 7 machine, it always hangs/blocks on the transcoder.transcode line. It works perfectly fine on ubuntu. I know it's not a file's permission issue because it doesn't throw an error. What could be the cause ??