[jacorb-bugs] [Bug 943] Misbehaviour in ORB.getRootPOA() when socket could not be created

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Mon Feb 18 10:02:37 CET 2013


http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=943





------- Comment #4 from christian.bindseil at capgemini.com  2013-02-18 10:02 -------
Ok, I modified the SSL-Demo-Code. I will attach the new Server.java here. But
some instructions first:

1) Replace the Server.java with my version.
2) We do not need a client, deactivate it bei adding System.exit(0) as first
line of the Main-method in Client.java
3) Make a copy of the whole SSL-demo directory, because we need two servers
4) open a console in each of the directories
5) run the demo in the first console
6) if "now waiting" appears, start the demo from second console

The first instance is not interesting for us, it does what it has to do. The
second instance will struggle in its first attempt to get the socket, because I
configured both instances to use the same port (7777). Thats right. But then it
tries again on the same ORB-object to get the rootPOA - but now we don't get an
exception, but a poa which has not socket. The rest of the program works on it
without realizing, the poa is dead.

Hint: the logged Stacktrace is sometimes printed out at the wrong place. Simply
look at the line numbers. The exception corresponds to the first attempt.


-- 
Configure bugmail: http://www.jacorb.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the jacorb-bugs mailing list