Hi All,
I've got a problem with displaying error messages when trying to connect to an appserver.
I've set it up to have a maximum of 2 users connected.
the code I have goes something like...
ph-Server:CONNECT(::connect params::) no-error.
DO li-loop = 1 to ERROR-STATUS:NUM-MESSAGES:
MESSAGE ERROR-STATUS:GET-MESSAGE(li-loop)
VIEW-AS ALERT-BOX.
END.
The first time I connect it works fine and the AppServer status shows 1 client connected with a maximum of 1 client connected.
I would then expect to be able to connect again to take the number of client up to 2 but it is at this stage that I start getting error messages. The fact that I am getting errors when only 1 user is connected is not too much of a problem.
The main issue is the fact that the first error message seems to randomly switch between
"Connection failure for host 10.1.1.1 port 6000 transport TCP. (9407)"
and
"Maximum number of client connections has been reached."
There is no pattern between either message showing up. Sometimes it will be the first and sometimes the second.
The second error message (i.e. GET-MESSAGE(2)) is always "Application server connect failure. (5468)"
If anyone has any pointers as to whereabouts I can start looking for a way to resolve this It'd be much appreciated.
Thanks
Oliver
OK, upon further investigation of the broker log file.
When I get the "Connection Failure..." message the error log shows...
[10/02/11@14:04:19.832+0000] P-022272 T-C-0002 2 UB Basic Client connected : . (8533)
[10/02/11@14:04:19.833+0000] P-022272 T-C-0002 2 UB Basic ConnectionID= 10.1.1.6::dev-vphiredesk2::6550::dcd66acc52df8689:1aaa14a:126bd26d8a3:-7e51. (8096)
[10/02/11@14:04:19.834+0000] P-022272 T-C-0002 1 UB ---------- ERROR: connection refused : maximum number of client connections has been reached. (8558)
[10/02/11@14:04:19.835+0000] P-022272 T-C-0002 2 UB Basic Client disconnected : . (8534)
[10/02/11@14:04:19.835+0000] P-022272 T-C-0002 1 UB ---------- Error Maximum number of client connections has been reached. ... disconnecting client. (8091)
[10/02/11@14:04:19.835+0000] P-022272 T-L-6550 1 UB ---------- ERROR: cannot start new client thread : connection refused. (8559)
When I get the Maximum number of connections error the log shows...
[10/02/11@14:05:06.632+0000] P-022272 T-C-0002 2 UB Basic Client connected : . (8533)
[10/02/11@14:05:06.632+0000] P-022272 T-C-0002 2 UB Basic ConnectionID= 10.1.1.6::dev-vphiredesk2::6550::dcd66acc52df8689:1aaa14a:126bd26d8a3:-7e50. (8096)
[10/02/11@14:05:06.633+0000] P-022272 T-C-0002 1 UB ---------- ERROR: connection refused : maximum number of client connections has been reached. (8558)
[10/02/11@14:05:06.634+0000] P-022272 T-C-0002 2 UB Basic Client disconnected : . (8534)
[10/02/11@14:05:06.634+0000] P-022272 T-C-0002 1 UB ---------- Error Maximum number of client connections has been reached. ... disconnecting client. (8091)
[10/02/11@14:05:06.637+0000] P-022272 T-C-0002 2 UB Basic Client connected : . (8533)
[10/02/11@14:05:06.637+0000] P-022272 T-C-0002 2 UB Basic ConnectionID= 10.1.1.6::dev-vphiredesk2::6550::dcd66acc52df8689:1aaa14a:126bd26d8a3:-7e4f. (8096)
[10/02/11@14:05:06.638+0000] P-022272 T-C-0002 2 UB Basic The ASK major version in the CONNECT request is invalid (com.progress.ubroker.util.ubMsg$InvalidMsgVersionException: MsgFormat). AppServer Keepalive protocol is disabled for this connection. (13766)
[10/02/11@14:05:06.638+0000] P-022272 T-C-0002 1 UB ---------- ERROR: connection refused : maximum number of client connections has been reached. (8558)
[10/02/11@14:05:06.639+0000] P-022272 T-C-0002 2 UB Basic Client disconnected : . (8534)
[10/02/11@14:05:06.639+0000] P-022272 T-C-0002 1 UB ---------- Error Maximum number of client connections has been reached. ... disconnecting client. (8091)
It seems to be trying to connect twice?!
Any ideas?