RFC and JCo Error

Hi Masters,
I  am very new to Webdynpro java. I am trying to connect SAP server , but i am getting error while connecting.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=hsdnt24s15 GROUP=PUBLIC R3NAME=C5R MSSERV=sapmsC5R PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR service 'sapmsC5R' unknown TIME Tue Feb 24 14:54:54 2009 RELEASE 711 COMPONENT NI (network interface) VERSION 39 RC -3 MODULE nixxhsl.cpp LINE 643 DETAIL NiHsLGetServNo: service name cached as unknown COUNTER 4
Regards,
Anthony.

Hi ,
Please search for Adaptive RFC Trouble Shooting Guide.
Have a look at the [Link.|https://wiki.sdn.sap.com/wiki/display/EP/TroubleshootingSAPJavaConnector%28JCo%29].
Regards,
Krishna kattu.

Similar Messages

  • Purpose of RFC and JCO-RFC destinations

    Hi,
      Can you please tell me what is the purpose of RFC and JCO-RFC destinations and where do we create them.
    Regards
    Rahul

    Hi,
    RFCs are SAP interfaces for communicating between SAP systems. They accept inputs, do the processing and return the output values. You can call rfcs through different applications like web dynpro.
    http://help.sap.com/SAPhelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm
    JCO helps Java applications to connect and communicate with SAP backend systems. Using JCO we can make rfc calls. JCO will help in getting the rfcs in a java compatible format.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm
    Example for setting up jco destinations:
    http://help.sap.com/saphelp_erp60/helpdata/EN/ca/115e4088dc0272e10000000a155106/content.htm
    Regards,
    Shyam.

  • Big Problem: ABAP-RFC and JCO  client

    Hi Friends,
    I am a java developer in trouble with a ABAP/RFC, and I dont have idea whoe lese ask for help
    This is the situation:
    In order to send a "candidates resume" (curriculum) in to SAP,
    the ABAP developers made for me a RFC which uses the transaction PB10 (applicant master data).
    The rFC when tested in the SAP GUI works fine.
    I wrote a java client which calls the RFC, send the parameters and expect the results.
    This client uses JCO to access SAP.
    But, from the java client the RFC works PARTIALLY.
    I mean, it creates the applicant, fills his name, address (infotypes 002,006,001)
    but doesnt fill the education a qualifications (infotypes 22 and 24).
    I am trying to figure why.
    Some of the internal ABAP errors code that we get are:
    DC -006
    PA -054
    5A -135
    Also I get this message:
    "Exception condition "CNTL_ERROR" raised"
    Please, I am a java-per lost in the SAP land.
    Thanks in advance by any help!!!
    PD: I could sent you the ABAP code of the RFC or the java code of the client if necessary.

    That CNTL_ERROR tells me that its trying to access a gui control which I don't is possible thru jCo.  Gui Controls are very dependent on the SAP Gui Frontend.  Since you are calling the transaction thru jCo,  it oviously doesn't know what to do with it.  Any chance that you can get a hold of the ABAP developer which wrote it initially?  Maybe there is another transaction that can be used instead of the PB10 transaction.
    Regards,
    Rich Heilman

  • JCO Error Unable to call RFC

    Hi Experts,
    I am having one WDJ application calling an RFC which has one input parameter and output as a table. When i call the RFC and
    deploy the application,  i am getting below error.
    Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model: class sagia1.com.TRA_Mod.
    Please assure that you have configured the RFC connections and/or logical system name properly for this model!
    I checked in somany forums and tried with their solutions but not success. I tested and pinged the JCO destination which is
    working fine. but ! i am getting the error when i run the application.
    Thanks in advance
    Suresh

    Hi Suresh,
    Please check that whether your WD applcation is picking correct JCO Modeldata and Metadata or not in Content Adminsitrator>>Web Dynpro>> Search here.
    I think you have entered wrong name :- While creating model, you need to give porper names in
    Default Logical System name for model instance (Copy here your JCO modeldata Destination name and paste it here)
    Default Logical System name for RFC metadata(Copy here your JCO metadata Destination name and paste it here)
    Hope it helps
    Regards
    Arun

  • JCO RFC provider and JCO connection

    Hi all:
    Please share your thoughts on the following doubts I have. Thanks.
    1. To my understanding, we use JCO RFC provider(define in Java side) and RFC destination(in SM59) when we have request from ABAP to Java side. Then we use JCO destinations(define in Web Dynpro Content Admin) if we have request from Java to ABAP. Is this correct?
    2. When creating the JCO RFC provider service, why we need to create those entries for repository for example, the server name, the user used to log into repository? What is the repository used for?
    Thanks!

    Hai,
          your understanding of JCO RFC and RFC Destination is right.But JCO Destination gets the metadata and model data from ABAP,thats what we mention the Dictionany meta data and Application data while creating them.
    Yes, we need to mention the application host,sys no,client and userdetails while creating the JCO RFC provider,then only it will fetch the data from that host and that particular client.
    Thanks and Regards,

  • Error in RFC and Lower Layer

    Hello,
    One of the user getting below dialog box error while executing "MASS" transaction in R3 system.
    Error in RFC and Lower Layer
    Error : SYSTEM_CANNOT_WRITE_TABLE
    function rfctr_drvset
    module $ld://bas/710_REL/src/krn/rfc/abrfctrc.cpp#3 $SAP
    line 1721
    Any idea on this would help...
    Regards,

    Hello Yogesh,
    WOuld you still happen to have an idea on how you got this solved ?
    Thanks for the feedback.
    Rgds
    Bart

  • RFC Receiver Adapter error.

    Hi Experts,
                      Mine is a File To RFC Scenerio. data from File is foing into an RFC called /POSDW/CREATE_TRANSACTIONS_EXT, in R/3 system. . RFC adapter is red .Giving the follwoing error!.
       2009-02-18 14:49:41 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling /POSDW/CREATE_TRANSACTIONS_EXT in remote system (RfcClient[GeneratedReceiverChannel_RFC]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The ASSERT condition was violated.: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling /POSDW/CREATE_TRANSACTIONS_EXT in remote system (RfcClient[
    Comments Pls!
    Regards,
    Arnab.
    Do I need to make a seperate TCP/IP connection from XI to R/3. If so, what will b the settings, Pls comment, !
    Arnab .
    Edited by: Arnab Mondal on Feb 18, 2009 11:04 AM

    Rajesh,
         you  mean to say apart from ABAP type 3 connection in XI as well as BI , I need to create TCP/IP connection in XI as well as BI ? Well In that case can you tell me when I am making the TCP/IP setting in XI, what will be the selection in
    Technical setings: Activation type?
    and in the gateway options, when I am doin the settings in XI server , whose gate way host and service , and  am i goin to put, XI or BI .
    Pls comment.
    Regards

  • Asynchronous XI- RFC and RFC- XI scenario - strange problem

    Hello XI-Xperts,
    I've come to really strange problem, which I would like to share with you and possibly get an explanation.
    I have an asynchronous scenario with ending XI->RFC. The RFC function in R/3 has got an optional parameter called SENDER, which when is filled, the another asynchronous RFC->XI scenario should be started. (via ABAP code <i>CALL FUNCTION 'Z_XI_RETURN' DESTINATION gc_xi_destination</i> ... etc.)
    Now, the direction XI->RFC is configured properly, but the way back NO(!). Anyway I thought that it wouldn't make me a trouble, because those two scenarios are IMHO absolutelly separated. So I'd presume that the the data should come to R/3 without problem, it should be processed, and in case the parameter SENDER is filled the R/3 would establish the RFC connection and the "return data" should go back in different XI thread.
    Well I would think like that but the situation is different:
    When the parameter SENDER is empty, all goes OK and I can see in Runtime Workbench Message Monitoring - Adapter engine - Detail - Audit log only "successes". But when SENDER is filled with a value and R/3 does CALL FUNCTION with DESTINATION to a <i>non-existing Sender agreement</i>, the R/3 apparently doesn't send a acknowledgement to Adapter Engine of first thread XI->RFC. Intstead of that there are three messages in audit log:
    <i>MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling Z_FIDATA_INPUT in remote system (RfcClient[IS2RFC_SAP_BG]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, di: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception w
    </i>
    Basically I understand what is happening on the background, but I really can't go over my persuation that in case of the ASYNCHRONOUS SCENARIO this should not happen.
    Or is the RFC call (I mean XI->RFC) "pseudo-synchronous" even in asynchronous scenario ? I mean that Adapter engine waits for the result of RFC everytime ... ?!
    Thank you
    Tomas

    Hello again guys,
    so I've understood it on the end. My ABAP code didn't contain EXCEPTION part of CALL FUNCTION statement.
    <i>CALL FUNCTION 'Z_XI_RETURN'
        DESTINATION gc_xi_destination
        EXPORTING
          <PARS>
        <b>EXCEPTIONS
          communication_failure = 1
          system_failure        = 2.</b></i>
    Without it the RFC short-dumped and AE correctly tried to call it 1+3 times. The thing, that the problem was connected to XI related topic, tricked me. Well it's smart, I must admit on the end
    Reward points for interest.
    THX Tomas

  • JCO Error JCO_ERROR_XML_PARSER

    Hi All!
    I am making a call to an adaptive RFC module on our SAP 4.7 System.
    But i fail in executing the call.
    this is the error:
    Expecting a tag to begin with '<' instead of '0', in "00000000  ", error key: JCO_ERROR_XML_PARSER
    I tried searching the forum for results, an saw that this error is because of an error in the metadata XML file.
    But, this is Webdynpro, and as i am convinced, you are not to change anything in any XML files,
    i tried making the call from to different projects, and the error is the same in both.
    Anyone has any ideas ?
    Help is much apreciated
    Best Regards
    Ronni Hostrup

    Hello,
    I think this is a bug in JCo & adaptive RFC here. I will asked for a redesign of the BAPI structure to get a flat structure and try that.
    After searching documentation for any hints about this I can't see anything, but obviously its not working. I will open a new thread with the question, whether nested structures are allowed.
    Frank

  • Parameter JCO.Request and JCO.Response where null

    Hi ;
    I try to execute RFCtoRFC scenario. I have done all settings including receiver,sender agreement too.
    But when i call rfc , i get following error
    parameter JCO.Request and JCO.Response where <null>
    My code that the calls a remote function is like;
    CALL FUNCTION 'ZBAPI_EH_GET_DATA_GEN'
        DESTINATION 'OLT200'
    What would be the reason ?
    Thanks

    Hi,
    in your RFC call, specify the data which is sent as RFC req msg from R/3 system in EXPORTING parameter if your RFC call is asycnh or both EXPORTING and RFC response msg structure in IMPORTING if your RFC call is synch.........in your report, use pretty printer and specify your RFC in CALL FUNCTION and then you will see the default calling procedure of your RFC.......then create a structue for your RFC req msg structure and response msg struc and fill it with data and then execute your RFC by using this CALL FUNCTION method.........
    Regards,
    Rajeev Gupta

  • Org.apache.jasper.JasperException; JCO error when Importing SAP Roles in C

    Hello experts,
    I have installed BOXI 3.1 SP3, Integration kit SP2, BW/BI 7.0 and ECC 6.0 on Windows 2008/64bit.
    My goal is to import the roles into CMS from SAP BW/BI but getting the follwoing errors:
    JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc
    C:\Windows\SysWOW64\sapjcorfc.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform.
    java.library.path [C:\Windows\SysWOW64\;D:\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\]
    org.apache.jasper.JasperException
    I followed the note 1292144 - JCO error when Importing SAP Roles in CMC,but unfortunately without success.
    I installed SAP JCo Release 2.1.9 (64bit)
    Best regards
    Lutz
    Edited by: Lutz Heinrich on Aug 12, 2010 4:17 PM

    Install the 32bit version of the Java connector. BOBJ is 32bit so even on 64bit Windows you need the 32bit version of the Java Connector.
    Regards,
    Stratos

  • JCO Error in Quality Portal

    Hi ,
    When i am running WDJ apps in dev portal , it's working fine . But when i am running through QA , it's showing the following JCO error .
    Could not create JCO connection .Please ensure that you have nesured RFC destinations and/or logical system name properly for this model .
    I tested the JCO in QA and it's working fine . Can anybody help me out regarding this .
    And one more question , how to check JCO connections for WDJ apps inside NWDS  ?
    Thanks a lot .

    Hi Jain,
    While using RFC Models in the WD application, we maintain JCo dstinations.
    These are specifically used to create a JCo Connection between 1 Web Application Server and 1 R/3 System. If any one of them changes, you need to update the same in the JCo destinations created.
    The point here is, as you have changed the Dev System to QA System, i.e. your Web Application Server, you will need to create / maintain the JCo Destination with the same name on the Quality System for use of the application.
    The JCo connection that you have been testing, is, may be on your developemnt system.
    Hope it helps.
    Regards,
    Alka.

  • Error while deploying the aplication-jco error

    Hello Experts,
    i know   thousends of questions in jco error. I have followed that threads , still i am getting an error.
    Plz help me out from that error.
    My EP server is running on was 6.20,
    and xi server is running on was 6.40.
    what i have done:
    I have downloaded fightslist  application from sdn.
    i have deployed that application to was 6.40.
    i created one technical system for abap.
    i configured sld.
    i entered service name(sapms147 3600/tcp(this is ides(4.7) serversid and port)) in servicefile in was 6.40 machine.
    when maintaing jco connections the following error has come:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=mlbpsap06 GROUP=PUBLIC R3NAME=I47 MSSERV=sapmsI47 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       service 'sapmsI47' unknown TIME        Fri Dec 01 15:27:10 2006 RELEASE     640 COMPONENT   NI (network interface) VERSION     37 RC          -3 MODULE      ninti.c LINE        494 DETAIL      NiPGetServByName2: service 'sapmsI47' not found SYSTEM CALL getservbyname_r COUNTER     7 
    My doubts are:
    1.where i have to enter service i.e which machine (6.40  or 4.7 machine).
    2.while creating technicalsystem which product i have to choose).
    3while creating jco connection
        whichone i have to choose either dictinory mata data or applicationdata.
        in message server connection which user id & password i have to give means 4.7 userid or xiserver userid & password.
    Plz helpme out from this.
    Thanks in advance.

    Hello Sai,
    NWDS is local means which machine i am using.
    My EP 6.0 SP2 in 172....202 but it is reunning on was 6.20.(mlbpsap02)
    and here was 6.40 ip is 172.....203 IP ,but XI is installed on this server)(mlbpsap03)
    and R/3 ECC ip is 172......201.(mlbpsap01)
    no sneak preview edition and all.
    I have downloaded application(sample flight) in webdynpro.
    and i configured sld in 203(cim test connection is successfull) ip.and also entered the service name(sapmsecc 3600/tcp).After entering the service name i restarted the server
    and created technical system for abap (and here selectiong products ecc components are not there.)
    in webdynpro content admin while maintaing jco , the above error is coming.
    i am unable to find where the problem is
    the main thing is ep is not in was 6.40
    further what i do
    and where i enter the host ip and aliases.

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

  • RFC metadata import error - Couldnu0092t find the branch for version with id

    Hi All,
    When re-importing RFC meta-data, system returned following error message   <i>Couldn’t find the branch for version with id = <version id></i>
    I am not able to delete the existing (already imported) RFC meta-data.  However, I am able to import the same RFC into a different Software Component.
    The error is described in SAP note – 710998, unfortunately, this note only references  XI 2.0
    Is there anyway other than these-
    1) Deleting a new SWCV and importing it and then import the RFC and make Release transfer from new SWCV to Old  SWCV. If so, is there any impact on my QA systems and Productions systems during transport.
    2) Deleting the existing SWC and Reimporting from SLD and trying to import the RFC again and redoing all the design
    3) Exporting the current SWC and deleting it and importing the same file and then trying out the RFC import.
    These options I just thought as an workaround solutions. Because i am not able to try these, as i don't have any test systems for this. Let me know any suggestions on these.
    Thanks in advance,
    Regards,
    Moorthy

    Yes, the used structures were imported from an old XI system. But I created the mapping new on the PI and put the used externel definitions manually to the mapping. That worked fine but now everytime when saving the mapping this error occurs. Btw both structures are used in other mappings, too, and they can be modified without any problems.
    Which jdk version do you mean? Client or server?
    Regards.
    Oliver.

Maybe you are looking for