HTML to PDF Conversion in Web App / Web Service

388 views
Skip to first unread message

Shafiq F

unread,
Nov 23, 2011, 9:02:20 AM11/23/11
to JODConverter
Hi

I've just installed JODConverter 3 (beta) and built the web app. I'm
trying to convert HTML files to PDF but it's not working (error
below). Is this even a possibility. If anyone has done this, could
you please give me an idea of how to update the Java classes in the
web app to do so?

Thanks

----------------------------------------------------
The error I'm getting is:


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: conversion failed

org.artofsolving.jodconverter.sample.web.ConverterServlet.doPost(ConverterServlet.java:
68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

org.artofsolving.jodconverter.office.OfficeException: could not store
document: errorfile3120926418993956540.pdf; errorCode: 2074

org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:
125)

org.artofsolving.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:
61)
org.artofsolving.jodconverter.office.PooledOfficeManager
$2.run(PooledOfficeManager.java:80)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
471)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:636)
root cause

com.sun.star.task.ErrorCodeIOException:

com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:
177)
com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:143)
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:
335)
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:
304)

com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:
91)

com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:
639)
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory
$Handler.request(ProxyFactory.java:151)
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory
$Handler.invoke(ProxyFactory.java:133)
$Proxy8.storeToURL(Unknown Source)

org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:
123)

org.artofsolving.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:
61)
org.artofsolving.jodconverter.office.PooledOfficeManager
$2.run(PooledOfficeManager.java:80)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
471)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
java.util.concurrent.FutureTask.run(FutureTask.java:166)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:636)

Richard Gathogo

unread,
Nov 23, 2011, 9:07:37 AM11/23/11
to jodcon...@googlegroups.com
Hi,
I think there could be a permission error where maybe there is not permission to save the file in the folder where the conversion takes place. Please check on the permission of the folder where you are doing the conversion.
Regards Richard Gathogo.
Love covers a multitude of sins.




--
You received this message because you are subscribed to the Google Groups "JODConverter" group.
To post to this group, send email to jodcon...@googlegroups.com.
To unsubscribe from this group, send email to jodconverter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jodconverter?hl=en.


Shafiq F

unread,
Nov 24, 2011, 3:26:39 AM11/24/11
to JODConverter
Hi

I'm able to do the conversion for other file types no problem, just
not HTML. What do you think?

On Nov 23, 2:07 pm, Richard Gathogo <muraguri2...@gmail.com> wrote:
> Hi,
> I think there could be a permission error where maybe there is not
> permission to save the file in the folder where the conversion takes place.
> Please check on the permission of the folder where you are doing the
> conversion.
> Regards Richard Gathogo.
>

> *Love covers a multitude of sins.*

Reply all
Reply to author
Forward
0 new messages