Quantcast
Channel: SCN : Discussion List - Java Development
Viewing all articles
Browse latest Browse all 277

message: Parameter backend host ('ashost') is missing Return code: RFC_INVALID_PARAMETER(19) error group: 101

$
0
0

Hi Techies,

 

I'm Trying to send a iDoc and while doing so i'm facing following error sometimes and not always:

 

The process is as follows:

- We create a connection with R3 system using the connection parameters

- Create a Destination

we are using

     //ibSystem Object contains all the R3 connection parameters.

     // DestinationDataProvider with HashMap and setting the required properties:    

     Properties properties = new Properties();
     properties.setProperty(DestinationDataProvider.JCO_ASHOST, ibSystem.getHost());
     properties.setProperty(DestinationDataProvider.JCO_SYSNR, ibSystem.getSystemNumber());
     properties.setProperty(DestinationDataProvider.JCO_CLIENT, ibSystem.getClient());
     properties.setProperty(DestinationDataProvider.JCO_USER, ibSystem.getUser());
     properties.setProperty(DestinationDataProvider.JCO_PASSWD, ibSystem.getPassword());
     properties.setProperty(DestinationDataProvider.JCO_LANG, ibSystem.getLanguage());
     properties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY,ibSystem.getPoolCapacity());
     properties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT,ibSystem .getPeakLimit());
     properties.setProperty(DestinationDataProvider.JCO_DEST,destinationName);

     .....

     JCoDestination destination = JCoDestinationManager.getDestination(destinationName);

     JCoRepository repository = destination.getRepository();

     IDocRepository iDocRepository = JCoIDoc.getIDocRepository(destination);

     IDocFactory iDocFactory = JCoIDoc.getIDocFactory();
     IDocDocument iDocDocument = iDocFactory.createIDocDocument(iDocRepository,iDocType, iDocExtension);

     String transactionID = destination.createTID();

     // prepare idoc to send

     // Using IDOCTYPE_READ_COMPLETE read idoc metadata and prepare idoc segmentwise.

     JCoIDoc.send(iDocDocument, IDocFactory.IDOC_VERSION_DEFAULT,destination, transactionID);

 

Observations:

Not able to reproduce this in test environment but happening sometimes in production Env. when we restart the application.

FY! : We are using JCO 3.0.9 : (7/19/2012)

com.sap.conn.jco.JCoException: (101) RFC_ERROR_PROGRAM: Configuration of destination <Destination_Name> is incomplete: Parameter backend host ('ashost') is missing
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1373)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:736)
at com.sap.conn.jco.rt.RepositoryConnection.connect(RepositoryConnection.java:52)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:107)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:316)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:290)
at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:914)
at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:31)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:970)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:33)

Caused by: RfcException: [null]
    message: Parameter backend host ('ashost') is missing
    Return code: RFC_INVALID _PARAMETER(19)
    error group: 101
    key: RFC_ERROR_PROGRAM

at com.sap.conn.rfc.api.RfcOptions.checkParameters(RfcOptions.java:187)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1340)


Is this problem faced by anyone or is there any fix from JCo side for this kind of problem.

Thanks for the help in advance as it is critical and in production.

 

Regards,

Yogesh.


Viewing all articles
Browse latest Browse all 277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>