rajildavda/jodconverter

When use -p (port) in own apache OO listener.

GoogleCodeExporter opened this issue · 2 comments

What steps will reproduce the problem?
1. Change user to www-data
2. Start office own listener (nohup soffice -headless 
-accept='socket,host=localhost,port=8100;urp;StarOffice.ServiceManager' 
-nofirststartwizard -nologo &)
3. Start jodconverter on port (-p 8100) in which Apache OO is listening.

What is the expected output? What do you see instead?
Expect: Generate new file, Apache OO still working and return control.
Result: When I start converting, in first converting jodconverter don't return 
control, in second converting jodconverter kill apache process and return 
control. On third converting jodconvert not work because Apache OpenOffice not 
work on port 8100.
When I am in root user everything is work correct. I have right to write and 
read in folder and files.

What version of the product are you using? On what operating system?
JodConverter - 3.0 beta 4
Ubuntu 10.04 32bit
Apache OpenOffice 3.4.1

Error log:

Exception in thread "main" 
org.artofsolving.jodconverter.office.OfficeException: could not store document: 
Pazachite na fara.pdf; errorCode: 525
    at org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:125)
    at org.artofsolving.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:61)
    at org.artofsolving.jodconverter.office.PooledOfficeManager$2.run(PooledOfficeManager.java:80)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
Caused by: com.sun.star.task.ErrorCodeIOException: 
    at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:177)
    at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:143)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:335)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:304)
    at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:91)
    at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:639)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:151)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:133)
    at $Proxy8.storeToURL(Unknown Source)
    at org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:123)
    ... 8 more

Original issue reported on code.google.com by yyusei...@gmail.com on 24 Sep 2012 at 2:12

When I am in root user, seems everything work correct, but when I am non root 
user (like `www-data`) error is showing.

Original comment by yyusei...@gmail.com on 24 Sep 2012 at 2:14

i have same problem, when i run aplication with normal aplication store good, 
but when i run with web aplication dont store doc documents. You have any 
solutions?

Original comment by FilipeFQ...@gmail.com on 13 Jun 2014 at 4:57