SAP Knowledge Base Article - Preview

3200058 - Cannot connect to server using message server: ms://<host>:<port>/P4


You are trying to open the PI tools - Integration Repository (ESR), Integration Builder (IB) - but they are not launching. From the Java WebStart Console trace (Note 1891480) the following errors can be seen: Cannot connect to server using message server: ms://<host>:<port>/P4
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$500(Unknown Source)
 at java.awt.EventQueue$ Source)
 at java.awt.EventQueue$ Source)
 at Method)
 at$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at Source)
Caused by: javax.naming.NamingException: Exception while trying to get InitialContext.
 at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
 at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
 at javax.naming.InitialContext.init(Unknown Source)
 at javax.naming.InitialContext.<init>(Unknown Source)
 ... 21 more
Caused by: Cannot get Socket. Reason:Connection refused: connect
 ... 26 more

You have followed actions below but the same issue still remains.

  1. KBA 2582843 - Message server error when opening PI Integration Builder tools
  2. KBA 2416859 - PI tools fail to open: Message server not available
  3. Troubleshooting PI ESR and Integration Builder Logon Issues --> perform steps from Part: Caches & Part: Certificates.



  • SAP NetWeaver
  • SAP Process Integration


SAP NetWeaver all versions ; SAP Process Integration all versions

Keywords, Cannot get Socket, Connection refused, Integration, Repository, Builder, ESR, IB, Open, Java WebStart Console, Message server not available, ms://, P4, Cannot connect, Server, Message Server, Cannot establish connection, Profiles, Process Integration, PI, Process Orchestration, PO, NetWeaver, XI, AEX
, KBA , BC-XI-IBF-WEB , Webstart for ESR / IB , BC-XI-IBC , Integration Builder - Configuration , BC-XI-IBF-LGN , Login/Log off for ESR / IB , 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.