OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Error JodConverter

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
emanuelbatera
Newbie
Newbie


Joined: 18 Dec 2008
Posts: 1

PostPosted: Thu Dec 18, 2008 10:12 am    Post subject: Error JodConverter Reply with quote

I need help to error in jodconverter:

conversion failed: could not save output document; OOo errorCode: 525

Any Idea?

Tanks.
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Thu Dec 18, 2008 12:15 pm    Post subject: Re: Error JodConverter Reply with quote

emanuelbatera wrote:
Any Idea?

Oh, you already posted the same question in the JOD Converter forum.
Back to top
View user's profile Send private message
dula
Newbie
Newbie


Joined: 18 Nov 2010
Posts: 3

PostPosted: Sat Dec 18, 2010 9:53 pm    Post subject: same problem here Reply with quote

I have got same problem. is anybody have idea about it?
Back to top
View user's profile Send private message
dula
Newbie
Newbie


Joined: 18 Nov 2010
Posts: 3

PostPosted: Sat Dec 18, 2010 9:55 pm    Post subject: I got result like this Reply with quote

Dec 19, 2010 10:45:26 AM org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>
INFO: ProcessManager implementation is WindowsProcessManager
Dec 19, 2010 10:45:26 AM org.artofsolving.jodconverter.office.OfficeProcess prepareInstanceProfileDir
WARNING: profile dir 'C:\DOCUME~1\Chamara\LOCALS~1\Temp\.jodconverter_socket_host-127.0.0.1_port-2002' already exists; deleting
Dec 19, 2010 10:45:27 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\DOCUME~1\Chamara\LOCALS~1\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
Dec 19, 2010 10:45:27 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: started process
Dec 19, 2010 10:45:31 AM org.artofsolving.jodconverter.office.OfficeConnection connect
INFO: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
org.artofsolving.jodconverter.office.OfficeException: could not store document: file_format.pdf; errorCode: 525
at org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:118)
at org.artofsolving.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:63)
at org.artofsolving.jodconverter.office.PooledOfficeManager$2.run(PooledOfficeManager.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.sun.star.task.ErrorCodeIOException:
at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)Document Exception!org.artofsolving.jodconverter.office.OfficeException: could not store document: file_format.pdf; errorCode: 525

at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
at $Proxy8.storeToURL(Unknown Source)
at org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:116)
... 8 more
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Sun Dec 19, 2010 1:51 am    Post subject: Re: I got result like this Reply with quote

dula wrote:
Exception!org.artofsolving.jodconverter.office.OfficeException: could not store document: file_format.pdf; errorCode: 525

Searching the JODConverter forum you'll find that this error is most likely a file permission problem: OOo doesn't have permission to write to the output file:
http://groups.google.com/group/jodconverter/browse_thread/thread/d98f6fd195ba6ea6/93a298efbb15033f?lnk=gst&#93a298efbb15033f
Back to top
View user's profile Send private message
dula
Newbie
Newbie


Joined: 18 Nov 2010
Posts: 3

PostPosted: Sun Dec 19, 2010 3:39 am    Post subject: thank you Reply with quote

thank you for the reply Smile
Back to top
View user's profile Send private message
anhvurz90
Newbie
Newbie


Joined: 10 Jun 2012
Posts: 1

PostPosted: Sun Jun 10, 2012 7:37 pm    Post subject: Reply with quote

Hi all,
I meet the same problem as you mentioned above.
The problem only appears when :
1.I start the Office Service by java code, not manally like this:
OfficeManager officeManager = new
DefaultOfficeManagerConfiguration().buildOfficeManager();
officeManager.start();

OfficeDocumentConverter converter = new
OfficeDocumentConverter(officeManager);
converter.convert(new File("test.odt"), new File("test.pdf");

officeManager.stop();

or
OfficeManager officeManager = new
DefaultOfficeManagerConfiguration()
.setOfficeHome("/usr/lib/openoffice")
.setConnectionProtocol(OfficeConnectionProtocol.PIPE)
.setPipeNames("office1", "office2")
.setTaskExecutionTimeout(30000L)
.buildOfficeManager();

2.I run my application in Windows(xp or Win7 etc.). If I run my application in Ubuntu, everything is OK, JODConverter works well.

Can you help me please?
Regards,
Vu Nguyen

p/s: I use tomcat, and I already tried to set the permission of output and input files as 777.
It does not work, neither.
If I start Office service manually, (using /soffice.bin -headless -
nofirststartwizard -
accept="socket,host=localhost,port=8100;urp;StarOffice.Service" &), JODConverter works well in both Linux or Windows.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group