SAP Knowledge Base Article - Preview

2492295 - JRA start failed due to wrong gateway server detection

Symptom

  • 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: com.sap.conn.jco.JCoException: (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: 
    ApplicationContextRunner.run(), Application: sap.com/com.sap.aii.adapter.idoc.sapjra.inboundRA, ResourceAdapter: inboundRA, Exception: 
    [EXCEPTION]
    com.sap.conn.jco.JCoRuntimeException: (136) JCO_ERROR_ILLEGAL_STATE: JCoServer null is already stopped or was not started yet
        at com.sap.conn.jco.rt.DefaultServer.stop(DefaultServer.java:132)
        at com.sap.mw.jco.jra.JRA$ResourceAdapterImpl.stop(JRA.java:859)...
    ...ResourceAdapterStarter.stopResourceAdapter(), Application: sap.com/com.sap.aii.adapter.idoc.sapjra.inboundRA, Exception: 
    [EXCEPTION]
    com.sap.engine.services.deploy.container.DeploymentException: (Failed in component: sap.com/tc~sapjra~temp, BC-MID-CON-JCO) Cannot stop ResourceAdapter "inboundRA" from application "sap.com/com.sap.aii.adapter.idoc.sapjra.inboundRA".
        at com.sap.engine.services.connector.deploy.util.ResourceAdapterStarter.notifyResourceAdapter(ResourceAdapterStarter.java:590)
        at com.sap.engine.services.connector.deploy.util.ResourceAdapterStarter.stopResourceAdapter(ResourceAdapterStarter.java:376)
        at com.sap.engine.services.connector.deploy.ConnectorContainerImpl.commitStop(ConnectorContainerImpl.java:935)...

  • 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.


Read more...

Environment

  • SAP NetWeaver 7.5
  • SAP Composition Environment all releases

Product

SAP NetWeaver 7.5

Keywords

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.