RfcException: Connect to SAP gateway failed using org.fusesource.camel.component.sap.model.rfc.impl.ServerDataImpl in Fuse 7

Solution Verified - Updated -

Issue

  • Adding the SAPGWsettings in the org.fusesource.camel.component.sap.model.rfc.impl.ServerDataImpl bean definition like follows:
    <bean
        class="org.fusesource.camel.component.sap.model.rfc.impl.ServerDataImpl" id="connectionServerData">
        <property name="gwhost" value="SAP_DESTINATION_GWHOST"/>
        <property name="gwserv" value="SAP_DESTINATION_GWSERV"/>
        <property name="progid" value="PRD"/>
        <property name="repositoryDestination" value="SAP_DESTINATION"/>
        <property name="connectionCount" value="2"/>
    </bean>

During the deployment time, is being thrown the following exception:

14:14:31.914 [XNIO-1 task-2] WARN  o.f.c.component.sap.ServerManager - Unable to set destination on custom repository for server 'SAP_SERVER'
com.sap.conn.jco.JCoException: Connect to SAP gateway failed
    connection parameters: TYPE=A DESTINATION=SAP_DESTINATION ASHOST=<SAP_HOST> SYSNR=03 PCS=1

LOCATION    CPIC (TCP/IP) on local host with Unicode
ERROR       partner '<IP_ADDRESS>:3303' not reached
TIME        Thu Jun 23 14:14:31 2022
RELEASE     721
COMPONENT   NI (network interface)
VERSION     40
RC          -10
MODULE      nixxi.cpp
LINE        3289
DETAIL      NiPConnect2: <IP_ADDRESS>:3303
SYSTEM CALL connect
ERRNO       111
ERRNO TEXT  Connection refused
COUNTER     4

    at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:589)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1347)
    at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:747)
    at com.sap.conn.jco.rt.RepositoryConnection.connect(RepositoryConnection.java:72)
    at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:107)
    at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:425)
    at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)
    at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:373)
    at com.sap.conn.jco.rt.ConnectionManager.getClient(ConnectionManager.java:162)
    at com.sap.conn.jco.rt.CustomRepository.setDestination(CustomRepository.java:87)
    at org.fusesource.camel.component.sap.ServerManager.getServer(ServerManager.java:122)
    at org.fusesource.camel.component.sap.SapRfcServerComponent.getServer(SapRfcServerComponent.java:46)
    ...
Caused by: com.sap.conn.rfc.exceptions.RfcException: Connect to SAP gateway failed
    connection parameters: TYPE=A DESTINATION=SAP_DESTINATION ASHOST=<SAP_HOST> SYSNR=03 PCS=1

Environment

  • Red Hat Fuse 7.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content