Login  Register

PDF generation from scheduled task fails

Posted by Jasper Linthorst on May 02, 2011; 1:14pm
URL: https://discuss.orbeon.com/PDF-generation-from-scheduled-task-fails-tp3489990.html

Hi All,
I've noticed that when I use the 'xhtml-to-pdf' processor from a pipeline that's run through the scheduler it fails at the point where it tries to resolve an external resource (like my css).

It generates a NullPointerException at 
org.orbeon.oxf.processor.pdf.XHTMLToPDFProcessor$1.resolveURI(XHTMLToPDFProcessor.java:77)

Whenever I run the pipeline through an http request (using the pfc) all works fine.

The problem probably has to do with the lack of a ExternalContext/Request object when running a pipeline through the scheduler. Could anyone let me know if there's a workaround to this?

Thanks in advance!

Jasper


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws