SAP Knowledge Base Article - Preview

2492295 - JRA start failed due to wrong gateway server detection


  • You configured Java Resource Adapter but the JRA failed to start on some/all instances with following error:

    [JRA] serverExceptionOccurred. Server <ProgramID>, JCoServerControllerThread, connectionId=null, Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at <timestamp>.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in <retry interval> seconds.
    Could not start server: Connect to SAP gateway failed
    Connection parameters: PROGID="***" GWHOST=<server ip where the JRA is failing> GWSERV=sapgw<instance number of SCS instance>

    ERROR partner '<server ip where the JRA is failing>:sapgw<instance number of SCS instance>' not reached
    TIME <timestamp>
    RELEASE 745
    COMPONENT NI (network interface)
    VERSION 40
    RC -10
    MODULE D:/depot/bas/745_REL/src/base/ni/nixxi.cpp
    LINE 3377
    DETAIL NiPConnect2: <server ip where the JRA is failing>:33<instance number of SCS instance>
    SYSTEM CALL connect
    ERRNO 10061
    ERRNO TEXT WSAECONNREFUSED: Connection refused
    COUNTER 726

  • If the PI/PO IDoc_AAE Adapter is involved, the SM59 destination connection test on the IDoc Sender system fails with: 
    Error: Transaction program not registered...
    RETURN CODE: 679

  • Also in the defaultTrace exceptions similar to below are visible:, Application:, ResourceAdapter: inboundRA, Exception: 
    [EXCEPTION] (136) JCO_ERROR_ILLEGAL_STATE: JCoServer null is already stopped or was not started yet
    ...ResourceAdapterStarter.stopResourceAdapter(), Application:, Exception: 
    [EXCEPTION] (Failed in component:, BC-MID-CON-JCO) Cannot stop ResourceAdapter "inboundRA" from application "".

  • The reason for the above error is because the JRA is trying to connect to wrong/unexisting gateway, although you have configured gateway server and service correctly in JRA properties configuration.



  • SAP NetWeaver 7.5
  • SAP Composition Environment all releases


SAP NetWeaver 7.5


JCO_ERROR_SERVER_STARTUP, JRA, ResourceAdapter, gateway server, jco.client.gwhost, isLocal, System Copy, change, ping, SM59 destination, ECC , KBA , BC-MID-CON-JCO , Java-Connector , BC-XI-CON-IDO , Idoc Adapter J2EE , 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.