alelimpo / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

Failed to connect #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all, 
I tried to convert xls file to pdf. Used the code provided in  the Guide.
    OfficeManager officeManager = new
DefaultOfficeManagerConfiguration().buildOfficeManager();
    officeManager.start();

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

    officeManager.stop();

The following errors are generated when convert docs. 
Does anybody know a solution? Thanks

30/10/2009 12:01:09
org.artofsolving.jodconverter.office.ProcessPoolOfficeManage
r <init>
INFO: ProcessManager implementation is WindowsProcessManager
30/10/2009 12:01:09 org.artofsolving.jodconverter.office.OfficeProcess
prepareIn
stanceProfileDir
WARNING: profile dir
'c:\software\tomcat5\temp\.jodconverter_socket_host-127.0.0
.1_port-2002' already exists; deleting
30/10/2009 12:01:09 org.artofsolving.jodconverter.office.OfficeProcess start
INFO: starting process with acceptString
'socket,host=127.0.0.1,port=2002,tcpNoD
elay=1' and profileDir
'c:\software\tomcat5\temp\.jodconverter_socket_host-127.0
.0.1_port-2002'
30/10/2009 12:01:10 org.artofsolving.jodconverter.office.OfficeProcess start
INFO: started process; pid = 720
30/10/2009 12:01:11 org.artofsolving.jodconverter.office.OfficeConnection
connec
t
INFO: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
Covert Exception e:could not load document: 12568644694371249285840979.xls
30/10/2009 12:01:11
org.artofsolving.jodconverter.office.ProcessPoolOfficeManage
r <init>
INFO: ProcessManager implementation is WindowsProcessManager
Covert Exception e:failed to start and connect

Original issue reported on code.google.com by viruschi...@gmail.com on 30 Oct 2009 at 1:11

GoogleCodeExporter commented 8 years ago
try to use an absolute path for the document, i.e. new File("c:/test.odt")

Original comment by rosetti....@gmail.com on 3 Nov 2009 at 8:38

GoogleCodeExporter commented 8 years ago
Closing issue as Invalid. This is an issue tracker, not a discussion group.

Original comment by mirko.na...@gmail.com on 3 Nov 2009 at 12:23