Hi Ariel, Thanks for the input. But i tried my code with cin.get() and ENTERED only after confirming that the port is listening (using lsof -i :2081). Do u think there could be any other possible reason for this issue?!
Thanks for ur guidance, Anandh Sent from my iPhone On 27 Feb 2013, at 07:07 PM, Ariel Constenla-Haile <arie...@apache.org> wrote: > Hi Anandha, > > On Wed, Feb 27, 2013 at 01:01:24PM +0530, Anandha Kannan wrote: >> Hi Ariel, >> >> Thanks for the reply. I tried with modifying my code to wait till, OO >> stats. But still, am ending with same exception. > > Did you wait until you checked that AOO was listening on the port? > For now, just for testing purpose, you can put a cin.get(), and wait > until you are sure that AOO is listening, then press ENTER to continue > with your code. > >> To check whether the port has been opened in listening mode, I got the >> following result for telnet and netstat (no listing of this port in netstat) >> >> admin$ telnet localhost 2081 >> Trying ::1... >> telnet: connect to address ::1: Connection refused >> Trying 127.0.0.1... >> Connected to localhost. >> Escape character is '^]'. >> e??'com.sun.star.bridge.XProtocolPropertiesUrpProtocolProperties.UrpProtocolPropertiesTidݓ?? > > This is ok, it's the expected result. > >> admin$ netstat -ntpl | grep soffice >> netstat: l: unknown or uninstrumented protocol > > Seems MacOS uses the FreeBSD implementation, which does not support the > same options as in Linux. > >> Also when i try to run your sample application, I get error, >> "OpenOffice.org quit unexpectedly" and doesn't launch the process. > > Strange. I've just tested it, and works as expected: > http://people.apache.org/~arielch/images/connaware1.png > http://people.apache.org/~arielch/images/connaware2.png > > Please try putting a cin.get() in your code, and press Enter to continue > only after you check that AOO is already listening. If after that you > can connect, then it is a timing issue. > > > Regards > -- > Ariel Constenla-Haile > La Plata, Argentina