on 10-21-2014 4:06 PM
Hello,
my esp-project writes data to an sap-table with an RFC-Adapter.
The Problem is: The adapter works only if I run $ESP_HOME\adapters\framework\bin\start.bat ..adapter_config.xml.
But I prefer the managed mode. So I add a RFC-Output-Adapter to the CCL:
ATTACH OUTPUT ADAPTER sap_adapter TYPE rfcoutplugin TO to_sap PROPERTIES config =
'C:/Sybase/ESP-5_1/adapters/rfc/esp_to_sap/adapter_config.xml' ,
mapFilePath = 'C:/Sybase/ESP-5_1/adapters/rfc/esp_to_sap/mapping.xml' ,
host = 'ec1' ,
systemNumber = '00' ,
client = '100' ,
user = 'SAPuser' ,
password = 'pw' ;
A few seconds after I start the project the adapter is switching to status 'DEAD'. With no work done.
Here is the cluster_conifg.xml:
<?xml version="1.0" encoding="utf-8"?>
<Adapter>
<Name>RFC Output Adapter</Name>
<Description>This output adapter retrieves data from an ESP stream and sends it to an SAP system through RFC</Description>
<Log4jProperty>./log4j.properties</Log4jProperty>
<Modules>
<Module type="espconnector">
<InstanceName>sap_adapter</InstanceName>
<Name>EspSubscriber</Name>
<Next>RFCOutputTransporter</Next>
<Parameters>
<EspSubscriberParameters>
<ProjectName>esp_to_sap</ProjectName>
<StreamName>to_sap</StreamName>
<!--
<GDMode>false</GDMode>
<GDKeyColumnName>gdKey</GDKeyColumnName>
<GDOpodeColumnName>gdOpcode</GDOpodeColumnName>
<GDBatchSize>5</GDBatchSize>
<GDPurgeInterval>300</GDPurgeInterval>
<GDControlStream>W1_truncate</GDControlStream>
-->
</EspSubscriberParameters>
</Parameters>
</Module>
<Module type="transporter">
<InstanceName>RFCOutputTransporter</InstanceName>
<Name>RFCOutputTransporter</Name>
<Parameters>
<RFCOutputTransporterParameters>
<Host>ec1</Host>
<SystemNumber>00</SystemNumber>
<Client>100</Client>
<SAPUser>SAPuser</SAPUser>
<SAPPassword encrypted="false">pw</SAPPassword>
<Keystore>keystore.jks</Keystore>
<KeystorePassword>password</KeystorePassword>
<BatchSize>0</BatchSize>
<RFC>
<Function>Z_MAHA_ESP_IMPORT_RFC</Function>
<Mapping>mapping.xml</Mapping>
</RFC>
</RFCOutputTransporterParameters>
</Parameters>
</Module>
</Modules>
<EspProjects>
<EspProject>
<Name>esp_to_sap</Name>
<Uri>esp://localhost:19011/default/esp_to_sap</Uri>
<!--can specify multiple uri’s -->
<Security>
<User>ESPuser</User>
<Password encrypted="false">pw</Password>
<AuthType>user_password</AuthType>
<!--
<RSAKeyStore>/keystore/keystore.jks</RSAKeyStore>
<RSAKeyStorePassword>Sybase123</RSAKeyStorePassword>
-->
<!--
<KerberosKDC>KDC</KerberosKDC>
<KerberosRealm>REALM</KerberosRealm>
<KerberosService>service/instance</KerberosService>
<KerberosTicketCache>/tmp/krb5cc_user</KerberosTicketCache>
-->
<EncryptionAlgorithm>RSA</EncryptionAlgorithm>
</Security>
</EspProject>
</EspProjects>
<GlobalParameters/>
</Adapter>
and mapping.xml:
<?xml version="1.0" encoding="UTF-8"?>
<mappings>
<rfc name="Z_MAHA_ESP_IMPORT_RFC">
<mapping>
<import>
<fieldMapping name="IF_WERT" espField="if_wert"/>
</import>
</mapping>
</rfc>
</mappings>
Someone with a cloue, why the adapter refuses to work in managed mode?
With kind regards,
Matthias
Hi Matthias,
Some thoughts:
Are there any clues in the adapter's log file?
Are you able to start any other adapters?
Are you running the project in the Studio's cluster or are you running the project from a non-Studio cluster?
What version of ESP are you using?
Thanks,
Alice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
In your adapter_config.xml file, I noticed that the Mapping element's value is just the filename.
Please modify it to use the full filepath.
Meaning, if your mapping.xml file is located here:
C:/Sybase/ESP-5_1/adapters/rfc/esp_to_sap/mapping.xml
Then, change "<Mapping>mapping.xml</Mapping>" in your adapter_config.xml file from:
<RFC>
<Function>Z_MAHA_ESP_IMPORT_RFC</Function>
<Mapping>mapping.xml</Mapping>
</RFC>
to
<RFC>
<Function>Z_MAHA_ESP_IMPORT_RFC</Function>
<Mapping>C:/Sybase/ESP-5_1/adapters/rfc/esp_to_sap/mapping.xml</Mapping>
</RFC>
Please let me know if that helps or not.
Thanks,
Alice
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.