SAP Knowledge Base Article - Preview

2501882 - No configuration found for key (<SID>/sapj2ee/msgserver/httpport) so fallback on internal port to calculate the message server http port

Symptom

The activities in section Finalize Configuration in Managed System Configuration are failing with problems to access the message server and presenting errors like the following one from the SMDAgentApplication.log:

Warning [Setup]Empty password retrieved from secured global config, for user null. P4 connection will certainly fail.
Error [P4 Connector] No configuration found for key (<SID>/sapj2ee/msgserver/httpport) so fallback on internal port to calculate the message server http port
Error P4 connection error to SAP system [<SID>]
[EXCEPTION]
javax.naming.NamingException: Exception while trying to get InitialContext. [Root exception is java.io.IOException: Cannot get Socket. Reason:errno: 239 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>))]

Caused by: java.io.IOException: Cannot get Socket. Reason:errno: 239 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>))

In Managed System Configuration (MSC) step 4 Enter System Parameters for a managed system, the following error displays when testing the logon for the Setup User (Admin) in the JAVA parameters section:

Logon test failed for user Administrator


Details : Exception while trying to get InitialContext. (Cause: Cannot get Socket. Reason:errno: 239 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>))

or

Logon test failed for user Administrator


Details : Exception while trying to get InitialContext. (Cause: Can't get Socket. Reason:errno: 79 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>))


Read more...

Environment

SAP Solution Manager 7.1

SAP Solution Manager 7.2

Product

SAP Solution Manager 7.1 ; SAP Solution Manager 7.2

Keywords


Warning [Setup]Empty password retrieved from secured global config, for user null. P4 connection will certainly fail.
Error [P4 Connector] No configuration found for key (<SID>/sapj2ee/msgserver/httpport) so fallback on internal port to calculate the message server http port
Error P4 connection error to SAP system [<SID>]
[EXCEPTION]
javax.naming.NamingException: Exception while trying to get InitialContext. [Root exception is java.io.IOException: Cannot get Socket. Reason:errno: 239 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>))]
Caused by: java.io.IOException: Cannot get Socket. Reason:errno: 239 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>)) Logon test failed for user Administrator java.io.IOEXCEPTION Can't get Socket Please check the HTTP Message Server Port
Details : Exception while trying to get InitialContext. (Cause: Cannot get Socket. Reason:errno: 239 (Connection refused), error: Connection refused (local host unknown, remote port <WRONG PORT> to address <IP ADDRESS> (<HOSTNAME>)) , KBA , SV-SMG-INS-DIA , Configuration of Root Cause Analysis related infrastructure , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.