Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote conversion Problem #48

Open
ikeachen01 opened this issue Jan 4, 2018 · 8 comments
Open

Remote conversion Problem #48

ikeachen01 opened this issue Jan 4, 2018 · 8 comments
Assignees
Labels
Milestone

Comments

@ikeachen01
Copy link

Hi !
I set a server by documents4j-server-standalone-1.0.3-shaded.jar to convert the word files to the pdf files.
When the server occurs an exception, the following conversions will all fail.
Is this situation is right?
Can the server convert the following conversions after a exception occurs?

@ikeachen01
Copy link
Author

the error message .....

2017-12-19 10:40:39,145 INFO [Grizzly-worker(2)] c.d.w.e.AsynchronousConversionResponse - Registered conversion request for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@1d0ef058
2017-12-19 10:40:39,145 INFO [pool-2-thread-1] c.d.c.msoffice.MicrosoftWordBridge - Requested conversion from C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1983 (application/vnd.com.documents4j.any-msword) to C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1984 (application/pdf)
2017-12-19 10:40:39,644 INFO [pool-2-thread-1] c.d.w.e.AsynchronousConversionResponse - Sending successful response for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@1d0ef058
2017-12-19 10:40:45,510 INFO [Grizzly-worker(2)] c.d.w.e.AsynchronousConversionResponse - Registered conversion request for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@6e7cb364
2017-12-19 10:40:45,572 INFO [pool-2-thread-2] c.d.c.msoffice.MicrosoftWordBridge - Requested conversion from C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1985 (application/vnd.com.documents4j.any-msword) to C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1986 (application/pdf)
2017-12-19 10:42:28,065 INFO [Grizzly-worker(2)] c.d.w.e.AsynchronousConversionResponse - Registered conversion request for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@1712035e
2017-12-19 10:42:28,065 INFO [pool-2-thread-5] c.d.c.msoffice.MicrosoftWordBridge - Requested conversion from C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1987 (application/vnd.com.documents4j.any-msword) to C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1988 (application/pdf)
2017-12-19 10:42:45,880 WARN [HttpServer-0] c.d.w.e.AsynchronousConversionResponse - Conversion request timed out for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@6e7cb364
2017-12-19 10:42:45,880 INFO [HttpServer-0] c.d.w.e.AsynchronousConversionResponse - Sending cancellation response for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@6e7cb364
2017-12-19 10:42:48,377 WARN [pool-2-thread-2] c.d.job.FileSourceFromInputStreamSource - Could not delete temporary file C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1985
2017-12-19 10:42:49,110 WARN [pool-2-thread-5] c.d.job.FileSourceFromInputStreamSource - Could not delete temporary file C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1987
2017-12-19 10:42:49,110 INFO [pool-2-thread-5] c.d.w.e.AsynchronousConversionResponse - Sending exceptional response for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@1712035e
com.documents4j.throwables.FileSystemInteractionException: Could not access target file
at com.documents4j.util.Reaction$FileSystemInteractionExceptionBuilder.make(Reaction.java:180) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_151]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_151]
2017-12-19 10:46:57,277 INFO [Grizzly-worker(2)] c.d.w.e.AsynchronousConversionResponse - Registered conversion request for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@63f498f
2017-12-19 10:46:57,277 INFO [pool-2-thread-4] c.d.c.msoffice.MicrosoftWordBridge - Requested conversion from C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1989 (application/vnd.com.documents4j.any-msword) to C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1990 (application/pdf)
2017-12-19 10:47:18,181 WARN [pool-2-thread-4] c.d.job.FileSourceFromInputStreamSource - Could not delete temporary file C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1989
2017-12-19 10:47:18,181 INFO [pool-2-thread-4] c.d.w.e.AsynchronousConversionResponse - Sending exceptional response for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@63f498f
com.documents4j.throwables.FileSystemInteractionException: Could not access target file
at com.documents4j.util.Reaction$FileSystemInteractionExceptionBuilder.make(Reaction.java:180) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_151]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_151]
2017-12-19 10:53:08,327 INFO [Grizzly-worker(1)] c.d.w.e.AsynchronousConversionResponse - Registered conversion request for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@f6750e
2017-12-19 10:53:08,327 INFO [pool-2-thread-6] c.d.c.msoffice.MicrosoftWordBridge - Requested conversion from C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1991 (application/vnd.com.documents4j.any-msword) to C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1992 (application/pdf)
2017-12-19 10:53:29,138 WARN [pool-2-thread-6] c.d.job.FileSourceFromInputStreamSource - Could not delete temporary file C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1991
2017-12-19 10:53:29,138 INFO [pool-2-thread-6] c.d.w.e.AsynchronousConversionResponse - Sending exceptional response for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@f6750e
com.documents4j.throwables.FileSystemInteractionException: Could not access target file
at com.documents4j.util.Reaction$FileSystemInteractionExceptionBuilder.make(Reaction.java:180) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_151]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_151]
2017-12-19 10:55:15,547 INFO [Grizzly-worker(1)] c.d.w.e.AsynchronousConversionResponse - Registered conversion request for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@2cb67099
2017-12-19 10:55:15,547 INFO [pool-2-thread-7] c.d.c.msoffice.MicrosoftWordBridge - Requested conversion from C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1993 (application/vnd.com.documents4j.any-msword) to C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1994 (application/pdf)
2017-12-19 10:55:36,576 WARN [pool-2-thread-7] c.d.job.FileSourceFromInputStreamSource - Could not delete temporary file C:\Windows\TEMP\1512472475526-0\9966329a-4eb5-406b-9bc3-3d4f75e952e2\temp1993
2017-12-19 10:55:36,576 INFO [pool-2-thread-7] c.d.w.e.AsynchronousConversionResponse - Sending exceptional response for org.glassfish.jersey.server.ServerRuntime$AsyncResponder@2cb67099
com.documents4j.throwables.FileSystemInteractionException: Could not access target file
at com.documents4j.util.Reaction$FileSystemInteractionExceptionBuilder.make(Reaction.java:180) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ExternalConverterScriptResult.resolve(ExternalConverterScriptResult.java:70) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.evaluateExitValue(ProcessFutureWrapper.java:48) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:36) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.conversion.ProcessFutureWrapper.get(ProcessFutureWrapper.java:11) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at com.documents4j.job.AbstractFutureWrappingPriorityFuture.run(AbstractFutureWrappingPriorityFuture.java:78) ~[documents4j-server-standalone-1.0.3-shaded.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_151]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_151]

@raphw
Copy link
Contributor

raphw commented Jan 4, 2018

Does the server have permissions to read/write/execute in its target folder?

@raphw raphw self-assigned this Jan 4, 2018
@raphw raphw added the question label Jan 4, 2018
@raphw raphw added this to the 1.0.3 milestone Jan 4, 2018
@raphw
Copy link
Contributor

raphw commented Jan 6, 2018

Office 2010.

@raphw
Copy link
Contributor

raphw commented Jan 8, 2018

Yes, this has always been necessary and is mentioned in the documentation for when running documents4j as a service: http://documents4j.com/

I did not know about step 3 but I wonder if this is even valid syntax? Of course, a temporary folder must be set on Windows.

@raphw
Copy link
Contributor

raphw commented Jan 8, 2018

Do you mean this did or did not work?

@raphw
Copy link
Contributor

raphw commented Jan 9, 2018

That is strange, it works without problems in my environment.

@badilaz
Copy link

badilaz commented Oct 16, 2018

this happens also on my environment if I start the process automatically as a windows service (on server start up)
while if I start manually the service, it works without problem

@raphw
Copy link
Contributor

raphw commented Oct 16, 2018

Did you setup your machine to allow running GUI applications as a service as described in the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants