我收到以下代码的错误连接被拒绝
OpenOfficeConnection connection = new SocketOpenOfficeConnection(openOfficeServerPort);
try
{
connection.connect();
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
connection.disconnect();
return "Sucess " + DestinationPath + DestinationFileName;
}
catch (Exception localException1) {
return "failed in connection.connect()"+localException1;
}