Got an error

37 views
Skip to first unread message

punit agrahari

unread,
Oct 4, 2013, 6:38:26 AM10/4/13
to jodcon...@googlegroups.com
As mentioned the process of JODConverter but got below exception.

Exception in thread "main" java.net.ConnectException: connection failed: socket,host=localhost,port=8100,tcpNoDelay=1: java.net.ConnectException: Connection refused: connect
at com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection.connect(AbstractOpenOfficeConnection.java:79)
at ReplaceText.main(ReplaceText.java:18)



**code**

               File inputFile = new File("F:/sample.doc");
File outputFile = new File("F:/sample.doc");

// connect to an OpenOffice.org instance running on port 8100
OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);
connection.connect();

// convert
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);

// close the connection
connection.disconnect();

Klemen Živkovič

unread,
Oct 4, 2013, 9:20:28 AM10/4/13
to jodcon...@googlegroups.com
If you are on windows use TcpView tool to check if some process is connected to soffice.bin process already.


--
You received this message because you are subscribed to the Google Groups "JODConverter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jodconverter...@googlegroups.com.
To post to this group, send email to jodcon...@googlegroups.com.
Visit this group at http://groups.google.com/group/jodconverter.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages