Matthieu, peut-être que ce message va t'aider.
Aurélie
Hi Aurelie,
the office has to be started connectable in your sample this would be
/soffice "-accept=socket,host=localhost,port=8100;urp;" (unix)
soffice -accept=socket,host=localhost,port=8100;urp; (windows)
the corresponding url to be resolved in your connection method will then be
"uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager";
make sure that port 8100 isn't used by another application, maybe choose
another port just to check if this is the problem.
Hope that helps
Regards
Stephan
Hi,
I met the same problem that Alessandro Ronchi this Summer : I couldn't
connect to the port 8100.
I try to use ContextMenuInterceptor of the SDK exemple.
By default, I had this UNO-URL
String sConnectString = "uno:socket,host=" + sHost + ",port=" + sPort +
";urp;StarOffice.ServiceManager";
--> connection refused
I found on the list that we have to use :
String sConnectString
="-accept=uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager";
--> connection refused
then in the mail of alessandro, I found this :
String sConnectString ="-accept=uno:socket,port=8100;urp;";
--> If this resolved his problem, I met an error : miss the host.
So I tried finally this :
String sConnectString
="-accept=uno:socket,host=localhost,port=8100;urp;";
Here is my error message :
java.net.ConnectException: Connection refused
Could you help me please ?