I´m trying to connect to a statserver, using a sdk java application, in order to collect some statistics, but the application returns some exceptions (for example com.genesyslab.platform.commons.protocol.ProtocolException: Problems during registration), caused by: com.genesyslab.platform.commons.connection.ConnectionException: Connection is closed by remote peer.
Does anybody know what is causing this error?
Here is the code that I´m using to collect statistics:
Yes, I´ve made some modification only in function ( Endpoint(“statserver_lab”, “SCTTX”, 3100)) to post it in the forum. The logs didn´t show anything. In command prompt, when I type the command: netstat -ano | find “3100”, the answer is:
I´m doing the requisition inside the statserver computer, i.e, the application that I´ve made is in the same place of the statserver application.
So, I have some questions regarding this problem:
This is my first application in Genesys enviorement, so that´s possible that I´m doing somithing wrong.
Excluding the function ( Endpoint(“statserver_lab”, “SCTTX”, 3100)), do you know if is that a function that I´ve forgot or some thing like this?
Is it possible that I´m doing wrong in some configuration, or is it possible that statserver is blocking my requisition in this port?
In adition, I´ve asked for the genesys administration to confirm the parameter of the configurations, and I´m waiting for his answer.
As first check the hostname and the port of the running statserver. Each installation and administrator has own port ranges and there is no “default” port number for statserver application. In general, range 3000-3999 is not used for statserver applications within Genesys solution, but as I wrote above, the port configuration is up to administrator
It does not seem that you have forgot some important function, but the code is little bit “beginner” (all is in main function), but this is not related to the Genesys. I strongly recommend you to read PSDK documentation, especially MessageBroker and Protocol Manager.
I have another questions. I’ve asked the Genesys´s Administratior regarding this problem and he said the connection with Stat Server<-> application is dropping because I have to autenticate it (with login/password) before connecting to Stat Server. According the adminitrator, I have to connect with Configuration Server with a login/password and after this, request the statistics with the Stat Server.
So, is it possible to do this? Do you know if Configuration Server has any specific function to enable requests to Stat Server. The main ideia is to enable application requests via Configuration Server to Stat Server.
If it´s possible, do you know if I have to use this function: ConfServiceFactory.CreateConfService()?
But the Administrator is saying to me that the SS is configured to respond requests only if I first autenticate in configuration server. Do you know if is it true?