Error Using JCo..

When i start the JCo Outbound server program in Java it terminates with an Exception saying Server Start Exception because of Invalid Gateway Host and Service....
What should be done??
The Java code of RfcDest.java is given below...
RfcDest.java - Simple implementation of an (external RFC) server. This example is based on
static metadata with non-unicode layout, so the calls only from non-unicode systems can be
handled.
Property of SAP AG, Walldorf
(c) Copyright SAP AG, Walldorf, 2000-2003.
All rights reserved.
import com.sap.mw.jco.*;
import java.util.*;
@version 1.0
@author  SAP AG, Walldorf
public class RfcDest implements JCO.ServerExceptionListener, JCO.ServerStateChangedListener {
Implementation of our own repository.
Just dummy extend the basic repository that comes with the JCO package
  static public class Repository extends JCO.BasicRepository implements IRepository {
Creates a new empty repository
    public Repository(String name)
      super(name);
  /** The repository we gonna be using */
  protected static IRepository repository;
  static {
    repository = new Repository("TestRepository");
    // non-unicode definition of functions. The server with this repository can
    // dispatch calls only from non-unicode systems
    //  Add function 'STFC_CONNECTION'
    JCO.MetaData fmeta = new JCO.MetaData("STFC_CONNECTION");
    fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.IMPORT_PARAMETER, null);
    fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
    fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
    repository.addFunctionInterfaceToCache(fmeta);
    //  Add function 'STFC_STRUCTURE'
    fmeta = new JCO.MetaData("STFC_STRUCTURE");
    fmeta.addInfo("IMPORTSTRUCT", JCO.TYPE_STRUCTURE, 144, 0, 0, JCO.IMPORT_PARAMETER, "RFCTEST");
    fmeta.addInfo("ECHOSTRUCT",   JCO.TYPE_STRUCTURE, 144, 0, 0, JCO.EXPORT_PARAMETER, "RFCTEST");
    fmeta.addInfo("RESPTEXT",     JCO.TYPE_CHAR,      255, 0, 0, JCO.EXPORT_PARAMETER,  null    );
    fmeta.addInfo("RFCTABLE",     JCO.TYPE_TABLE,     144, 0, 0, 0,                    "RFCTEST");
    repository.addFunctionInterfaceToCache(fmeta);
    // Add the structure RFCTEST to the structure cache
    JCO.MetaData smeta  = new JCO.MetaData("RFCTEST");
    smeta.addInfo("RFCFLOAT",  JCO.TYPE_FLOAT,  8,  0, 0);
    smeta.addInfo("RFCCHAR1",  JCO.TYPE_CHAR,   1,  8, 0);
    smeta.addInfo("RFCINT2",   JCO.TYPE_INT2,   2, 10, 0);
    smeta.addInfo("RFCINT1",   JCO.TYPE_INT1,   1, 12, 0);
    smeta.addInfo("RFCICHAR4", JCO.TYPE_CHAR,   4, 13, 0);
    smeta.addInfo("RFCINT4",   JCO.TYPE_INT,    4, 20, 0);
    smeta.addInfo("RFCHEX3",   JCO.TYPE_BYTE,   3, 24, 0);
    smeta.addInfo("RFCCHAR2",  JCO.TYPE_CHAR,   2, 27, 0);
    smeta.addInfo("RFCTIME",   JCO.TYPE_TIME,   6, 29, 0);
    smeta.addInfo("RFRDATE",   JCO.TYPE_DATE,   8, 35, 0);
    smeta.addInfo("RFCDATA1",  JCO.TYPE_CHAR,   50,43, 0);
    smeta.addInfo("RFCDATA2",  JCO.TYPE_CHAR,   50,93, 0);
    repository.addStructureDefinitionToCache(smeta);
Implementation of my own server
  static public class Server extends JCO.Server {
Create an instance of my own server
@param gwhost the gateway host
@param gwserv the gateway service number
@param progid the program id
@param repository the repository used by the server to lookup the definitions of an inc
    public Server(String gwhost, String gwserv, String progid, IRepository repository)
      super(gwhost,gwserv,progid,repository);
Not really necessary to override this function but for demonstration purposes...
    protected JCO.Function getFunction(String function_name)
      JCO.Function function = super.getFunction(function_name);
      return function;
Not really necessary to override this method but for demonstration purposes...
    protected boolean checkAuthorization(String function_name, int authorization_mode,
        String authorization_partner, byte[] authorization_key)
      /* Simply allow everyone to invoke the services */
      return true;
Overrides the default method.
Can handle only the two functions STFC_CONNECTION and STFC_STRUCTURE
    protected void handleRequest(JCO.Function function)
      JCO.ParameterList input  = function.getImportParameterList();
      JCO.ParameterList output = function.getExportParameterList();
      JCO.ParameterList tables = function.getTableParameterList();
      System.out.println("handleRequest(" + function.getName() + ")");
      if (function.getName().equals("STFC_CONNECTION")) {
        output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
        output.setValue("This is a response from RfcDest.java","RESPTEXT");
      else if (function.getName().equals("STFC_STRUCTURE")) {
        JCO.Structure sin  = input.getStructure("IMPORTSTRUCT");
        JCO.Structure sout = (JCO.Structure)sin.clone();
        try {
          System.out.println(sin);
        catch (Exception ex) {
          System.out.println(ex);
        output.setValue(sout,"ECHOSTRUCT");
        output.setValue("This is a response from RfcDest.java","RESPTEXT");
      }//if
  /** List of servers */
  // JCO.Server srv[] = new JCO.Server[2];   <-- Original
  JCO.Server srv[] = new JCO.Server[1];
Constructor
  public RfcDest()
    // Yes, we're interested in server exceptions
    JCO.addServerExceptionListener(this);
    // And we also want to know when the server(s) change their states
    JCO.addServerStateChangedListener(this);
Start the server
  public void startServers()
    // Server 1 listens for incoming requests from system 1
    // (Change gateway host, service, and program ID according to your needs)
    srv[0] = new Server("gateway","sapgw00","JCOSERVER01",repository);
    // Server 2 listens for incoming requests from system 2
    // (Change gateway host, service, and program ID according to your needs)
  /******* Next line commented out by Anand ****************/     
    //srv[1] = new Server("gwhost2","gwserv00","JCOSERVER02",repository);
    for (int i = 0; i < srv.length; i++) {
      try {
        srv<i>.setTrace(true);
        srv<i>.start();
      catch (Exception ex) {
        System.out.println("Could not start server " + srv<i>.getProgID() + ":\n" + ex);
      }//try
    }//for
Simply prints the text of the exception and a stack trace
  public void serverExceptionOccurred(JCO.Server server, Exception ex)
    System.out.println("Exception in server " + server.getProgID() + ":\n" + ex);
    ex.printStackTrace();
Simply prints server state changes
  public void serverStateChangeOccurred(JCO.Server server, int old_state, int new_state)
    System.out.print("Server " + server.getProgID() + " changed state from [");
    if ((old_state & JCO.STATE_STOPPED    ) != 0) System.out.print(" STOPPED ");
    if ((old_state & JCO.STATE_STARTED    ) != 0) System.out.print(" STARTED ");
    if ((old_state & JCO.STATE_LISTENING  ) != 0) System.out.print(" LISTENING ");
    if ((old_state & JCO.STATE_TRANSACTION) != 0) System.out.print(" TRANSACTION ");
    if ((old_state & JCO.STATE_BUSY       ) != 0) System.out.print(" BUSY ");
    System.out.print("] to [");
    if ((new_state & JCO.STATE_STOPPED    ) != 0) System.out.print(" STOPPED ");
    if ((new_state & JCO.STATE_STARTED    ) != 0) System.out.print(" STARTED ");
    if ((new_state & JCO.STATE_LISTENING  ) != 0) System.out.print(" LISTENING ");
    if ((new_state & JCO.STATE_TRANSACTION) != 0) System.out.print(" TRANSACTION ");
    if ((new_state & JCO.STATE_BUSY       ) != 0) System.out.print(" BUSY ");
    System.out.println("]");
  public static void main(String[] argv)
    RfcDest obj = new RfcDest();
    obj.startServers();

Hi,
Can u please post the exception trace..
Regards,
Tanveer.
Message was edited by: Tanveer Shaikh

Similar Messages

  • Error while creating PO using JCO......?

    hello all,
    i am trying to create po by using jco. i have done everything
    but at time of execution its throw following error
    please try to help..
    thanks in advance..
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILURE" raised.
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
         at org.apache.jsp.pocreate1$jsp._jspService(pocreate1$jsp.java:167)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:595)

    check user Authorization in R/3
    nikhil

  • Error while calling BAPI_PARTNEREMPLOYEE_CREATE BAPI using JCO

    Hi All,
    Our requirement is to create and update customer contact details from java application. For this purpose we are trying to call BAPI_PARTNEREMPLOYEE_CREATE BAPI for create contact and BAPI_PARTNEREMPLOYEE_EDIT for updating contact information. As these BAPIs are of online version, error is coming while calling these BAPIs.
    So is there any way to call these BAPIs through JCO or are there any alternative BAPIs available for same purpose?
    Thanks in advance,
    Arati.

    Hi,
    All the bapi or function module available in SAP to create contact person will internally do a call transaction to VAP1 and VAP2 tcodes in order to create or change contact person respectively.
    We had a similar problem when we were creating and updating customer contact person using inbound idoc. We then created a bdc recording for the same and then created two function module with name Z_CREATE_CONTACT and Z_CHANGE_CONTACT. In your case you can make this function modules as RFC enabled FM and call them using JCO I guess.
    KR Jaideep,

  • Error connecting using JCO.Client: null

    Hi,
    I created a WD app which uses  the RFC FM.  I followed How-To-build-webdynpro.pdf document to create the WD and trying to deploy and run, I see the view page but when I trigger the action via button UI element I get following error as exception in the try catch block of execute method
    In the NWA I see
    Could not create JCOClientConnection for logical System: 'WD_MODELDATA_DEST' - Model
    An exception has occurred: Erorr accessing cache [region]='XCM_SESSION_SCOPE'.
    [EXCEPTION]
    com.sap.isa.core.cache.Cache$Exception: Cannot return access for region 'XCM_SESSION_SCOPE'. Cache is not ready
    I'm using following existing JCO definition by configuring them with correct parameters.  Tested them successfully
    WD_RFC_METADATA_DEST
    WD_MODELDATA_DEST
    What am I missing?  In SM04 tcode I see 2 connections are opened with 2 Megabyte not released for a long time.  I think if connections are released correctly it should drop to 1 megabyte.  Is there anything that I need to do just after execute method as shown below (I have replaced function module with <FM> in below code)
    try {
             wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
         } catch(Exception exception) {
              msgMgr.reportException(exception.getLocalizedMessage(), false);
          wdContext.nodeOutput().invalidate();
          msgMgr.reportSuccess("Success");
    The error is in the catch block which is displayed on the view page.
    Thanks
    Praveen
    I modified the above code and put in finally block to close the connections as follows, please let me know if this is OK.  I still get error message as "Error connecting using JCO.Client: null" but no additional connections in the SM04 after adding finally block.
    try {
             wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
         } catch(Exception exception) {
              msgMgr.reportException(exception.getLocalizedMessage(), false);
         }finally {
              // disconnect the connection
              wdContext.<FM>_Get_InputElement().modelObject().modelInstance().disconnectIfAlive();     
    Edited by: Praveen11 on Oct 5, 2009 9:06 AM

    Thanks Satish.
    The issue is resolved.  I think it was to do with permission, as I was running directly from NWDS deploy and run the session didn't have proper authorisation or something that was causing this error.
    When I copy pasted the URL in the correct browser session window I got no error and function module was successfully executed.   However the issue now is that values are not showing up in the view may be to do with mapping context or model  I'll review and post back as different thread.
    Thanks
    Praveen

  • Urgent : Error in RFC  Look Up using JCO.

    Hi,
    I have a scenario od accessing a database table by passing the name through XI and also giving the Where condition ,passing the fieldnames and getting back the field values . The FM that id used for this on ABAP side is <b>RFC_READ_TABLE</b>. 
    For this Scenario I inserted a Java Code using JCO's in th UDF for the  RFC Look Up's.
    I got errors while activating the MM which i am not able to rectify.Please Help me in this.
    <b>Activation of the change list canceled Check result for Message Mapping MM_Notes_2_ED_Z_SDIDOC |
    Starting compilation  Source code has syntax error:  /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1539: cannot resolve symbol symbol : method createClient (java.lang.String,java.lang.String) location: class com.sap.mw.jco.JCO JCO.Client mConnection = JCO.createClient("200","EN"); ^ /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1578: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._MM_Notes_2_ED_Z_SDIDOC_ result.addValue(resultSet[pos]); ^ 2 errors</b>
    <b>This is an Urgent Requirement. Please reply ASAP.</b>
    Regards,
    Priyanka.

    Hi Priyanka,
    The error message says there are 2 errors:
    1. createClient
    2. result.addValue
    For the first one, I guess you might not have included all the API required for lookup
    For second one, please check what is the type of object you are adding to the resultset, maybe you can just say result.addValue(resultSet[pos] + ""); to typecast it.

  • Error when connecting SAP CRM to SUP using JCO

    Hi Gurus,
    we are trying to connect SAP CRM (v 7.0 Ehp1 SP3) to Sybase Unwired Server Platform 2.0 (installed on a 64bit workstation) using JCO.
    Following the instructions into the following link:
    http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01283.0200/doc/html/asc1229701333453.html
    and given the informationfound into the forum, we performed the following steps:
    1) Copy librfc32.dll (32bit) and sapjcorfc.dll (64bit, if not an error
    is thrown) to "D:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib"
    2) Copy librfc32.dll (32bit) and sapjcorfc.dll (32bit) and paste them
    to C:\WINDOWS\sysWOW64
    3) Copy librfc32.dll (32bit) and sapjcorfc.dll (32bit)
    to 'D:\Sybase\UnwiredPlatform\JDK1.6.0_24\bin'
    4) Copy sapjco.jar (32bit) to
    "\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.com.sap.mw.jco_<version>\lib"
    5) Copy sapjco.jar (32bit)
    to "D:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib\3rdparty"
    With this configuration, we are able to connect to CRM from Eclipse (Sybase Unwired Workspace) but if we open Sybase Control Center, and we go to Domains -> Connections, we select CRD connection, we go to Properties then we click on "Test connection", SCC remains stuck with no responce. This issue does not allow us to connect to Sybase-SAP
    using an Ipad application (the application remains stuck the same).
    We also tried to install SapGui, but with no results. Did we place the right files into the right directories? Do you have any suggestions=
    Thanks in advance,
    Fabio

    Hi Pavani
    I hope you solved your issue
    Ey!.. Im also in a project where I had to connect BODS with SAP CRM, actually I havent even configured the connection, but I would really appreciate if you could share some valuable information with me.
    BR
    Belinda

  • Error connection using JCO.Client

    Hello all,
    I got the following problem <b>"Error connection using JCO.Client"</b> and don't know what's wrong. All connections works at the content administration when I test the connection.
    Can anyone help me please?
    Best regards
    Petra

    Hi,
    I almost tested the JCO connection with the 'test' button successfully at the content administrator. I tested again and it still works. And I have a stand alone webdynpro application (no portal).
    Now I got the following error message after completing the coding with 'e.printStackTrace().'.
    <i>
    "Error connection using JCO.Client:null"
    "[Ljava.lang.StackTraceElement:@60db08"
    "Could not create JCOClientConnection for logical System:WD_MODELDATA_DEST - Model: class impersonalaccout.intro.model.Z_Fh0002_Datenverwaltung.Please assure that you have configured the RFC connections and/or logical System"
    "com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException:Error connection using JCO.Client:null"
    "com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model:class impersonalaccout.intro.model.Z_Fh0002_Datenveraltung.Please ***"</i>
    Can anyone explaine me what's wrong?
    Bye
    Petra

  • Error connection using  JCO.Client :null

    Hi,
    I have small doubt in JCO connection, can any one help me.
    In WebDynpro  application some time we are getting exception like Error connection using JCO.client : null.
    Connection :200 we are maintained in JCO configuration.
    If I call one RFC useing JCO it will created a session or connection to ECC server, because we are getting exception in server too many sessions to ECC server.  
    Write now we are not using any code to close the connection like.
    SaveModel svModel = (SaveModel)WDModelFactory.getModelInstance(SaveModel.class);
    svModel.disconnectIfAlive();
    If we use the above code it will close the connection or sessions.
    Is it recommended to write the code in every RFC calls or  in final block of all RFC calls ?
    Regards,
    Satya.

    Hi Satya
    /message/1944647#1944647 [original link is broken]
    /message/8499#8499 [original link is broken]
    Please go through this link.Hope it will be helpful for you
    Regards
    Ruturaj

  • WDDynamicRFCExecuteException: Error connecting using JCO.Client: null

    Hi
    This is a common problem,I have seen many threads , but following them did not solve my problem.
    I have the JCOs tested successful from WD Admin. When I create a sample WDJ application with RFC model and deploy it to the server, I get
    Exception:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecution: Error connecting using JCO.Client: null.
    I have checked my binding , I have only one input parameter and the code is
          wdComponentAPI.getMessageManager().reportSuccess("Inside wdInit in Component ctrller");
          Z_Plm44_Obsoleteimpactanalysis_Input input = new Z_Plm44_Obsoleteimpactanalysis_Input();
         wdContext.nodeZ_Plm_Input().bind(input);
         wdContext.createZ_Plm_InputElement(input).setV_Type(wdContext.currentZ_Plm_InputElement().getV_Type());
    Also I have implemented closing the connection
    disconnectifalive
    I contacted the basis team... they tell me that everything is fine from their end. they have tried increasing the JCO connection pools.
    Thanks for your help in advance
    Karthika

    Hi Karthika
    Check this pdf and try to catch WDDynamicRFCExecution in catch block.
    Please put your code in try catch and also import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecution in your code;
    http://www.sappro.com/downloads/WebDynproJava.pdf
    Re: User has no RFC authorization for function group.
    Hope this will help you.
    thanks
    Arun Jaiswal

  • Error in Connecting to BAPI (Error connecting using JCO.Client: null)

    Hi,
        I am trying to connect to a BAPI to extract data. However, I am getting this error
        Error connecting using JCO.Client: null
        Pls explain the meaning of the error and solution to the problem
    TIA
    Himanshu

    Hi,
    This means you are getting error while executing your model. its not able to use the JCO's.
    as I asked previously check your JCO status... its up and running????
    Here are some threads having same problem
    URGENT :Error connecting using JCO.Client: null
    Model and MetaData configarations  in JCO Connection
    Exception while executing
    PradeeP
    Edited by: pradeep bondla on Jul 31, 2008 11:53 AM

  • Error connecting using JCO.Client: null in xRPM in EP

    Hi Friends,
    I am getting the following error in xRPM through EP
    "Error connecting using JCO.Client: null"
    I can't enter xRPM, but I can enter other Business packages iViews.
    The problem is intermittant and user specific.
    Can you pls provide any input on this ?
    thanks in advance and warm regards
    Purnendu

    Hi Flavio,
    Thanks for your reply.
    The user is created both in the backend as well as in portal.
    The roles are also ok.
    The error I am getting only while accessing xRPM iViews.
    If I restart the instance the error is removed. But it reappears again may be after few days.
    This error is intermittant.
    May be it is related to the Maximum Number of JCo connections in the WebDynpro configuration.
    But I don't have much idea on that.
    Can you pls provide any help on this.
    Warm regards
    Purnendu

  • Bapi Call using JCO

    Hi all,
    Please share your views on the below scenario:
    A WD Java app, deployed on WAS and an iView created in portal, is calling a BAPI and works fine when assigned to the role.
    Now the same application when viewed directly using
    http://<host>:<port>/webdynpro/dispatcher/local/<appname> does not execute the bapi and gives
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    The JCO are using a service user to connect to the backend, so SSO still exist.
    Let me know what we could be doing wrong here.
    Meanwhile I can check the connection pool to see the property value.
    Thanks for your time
    Avinash

    Hi Prashant
    Thanks for your quick response.
    The application when accessed directly does not ask for user id/password.
    If I set the application property 'authentication' as true, would this authentication be done against UME?
    Also since there is no "SSO using logon tickets" why is there a need for issuing a logon ticket?
    I will try what you suggested in the earlier post.
    Thanks
    Avinash

  • Error connecting JCO.Client

    Hello!
    I've got a little problem with Adaptive RFC calls: After exactly 10 times executing my call I always get the following Exception:
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    Has anybody by any chance got an idea why or how to handle this problem?
    Thank you very much in advance!
    Best Regards

    Hi
      Well its a simple problem of connection pooling. In your JCO connection settings change the maximum connections to 200. It will work.
    well what i would advice is that After you execute the Model please release the connection. The reason you are getting this JCO Client null is because the  connection is not getting released.
    When you say the following code
    wdContext.current<BAPI_INPUT>.modelObject().execute();
    //Get the reference to the model and release the connection
    If your Model name is say "MO_Mymodel"
    then
    MO_Mymodel model = (MO_Mymodel) WDModelFactory.getModelInstance(MO_Mymodel.class);
    model.disconnectIfAlive();
    This should release your connections. Also ensure you release the connections even if there is a exception :).
    Hope that helps you.
    regards
    ravi

  • Problem with BAPI_DOCUEMENT_CHECKOUTVIEW2 while caliing using JCO

    Hi DMS Gurus,
    The above FM is successfully executing and creating a local copy in temp folder of where the FM running using SAP GUI.
    But when i call using jco,i am getting some problems.
    1. If i execute the FM with default values for http dest and ftp dest, i am getting error saying << c:\temp\....file could not be created.
    2. When i changed the HTTP destination to <<SAPHTTPA>, it is executing fm successfully but dont know in which system the file is downloaded.
    My client application or xMII server ( where jco service is running ) or ABAP server.
    I checked in the first 2,i didn't find.
    SAP GUI is not installed in xMII server.
    But my requirement is to download to the physical server of xMII ( jco ).
    Is this any thing to do with creating http destinations??
    If that is the case, can any body help me in creating http destinations..
    and i heard something about SAPFTP.EXE ,is that should be some where in client or any servers??
    Please help me.
    Thanks
    Vansi

    Vamsi,
    As I mentioned in this forum thread, bapi_document_checkoutview2.  You have to use the POST action in BLS to communicate with the HTTP Interface of Content Mgmt. directly.  The only other alternative is to write your own BAPI to retrieve the content and send it back to xMII via the JCo action (Hint: The data will be base64 encoded and can be saved to the filesystem via the Image Saver action even though it is not an image).
    Sam

  • Problem with BAPI_DOCUMENT_CHECKOUTVIEW2 while calling using JCO of XMII

    Hi DMS Gurus,
    The above FM is successfully executing and creating a local copy in temp folder of where the FM running using SAP GUI.
    But when i call using jco,i am getting some problems.
    1. If i execute the FM with default values for http dest and ftp dest, i am getting error saying << c:\temp\....file could not be created.
    2. When i changed the HTTP destination to <<SAPHTTPA>, it is executing fm successfully but dont know in which system the file is downloaded.
    My client application or xMII server ( where jco service is running ) or ABAP server.
    I checked in the first 2,i didn't find.
    SAP GUI is not installed in xMII server.
    But my requirement is to download to the physical server of xMII ( jco ).
    Is this any thing to do with creating http destinations??
    If that is the case, can any body help me in creating http destinations..
    and i heard something about SAPFTP.EXE ,is that should be some where in client or any servers??
    Please help me.
    Thanks
    Vansi

    Vamsi,
    As I mentioned in this forum thread, bapi_document_checkoutview2.  You have to use the POST action in BLS to communicate with the HTTP Interface of Content Mgmt. directly.  The only other alternative is to write your own BAPI to retrieve the content and send it back to xMII via the JCo action (Hint: The data will be base64 encoded and can be saved to the filesystem via the Image Saver action even though it is not an image).
    Sam

Maybe you are looking for

  • Folder script to print folder content automator

    Hi, I had a folder script that printed any document added to a folder and when printed, then it deleted the document.  That script help me to print from an OS 9 emulator  (SheepShaver) through OS X. For I don't know the reason, the folder script does

  • How to Identify Which Plug In is Missing?

    Years ago (back in 2007), we were given some Indesign files as reference for a client's work.  We never needed to open them and, if I recall correctly, we tried but had a problem.  I believe we got an error saying that a special plug in was required.

  • Transfer CS4 to new iMac via Time Machine

    I used Time Machine to rebuild my drive onto my new iMac 27" (Intel Core i7) running OS version 10.8.2. I got "Code 150:30" when I tried to open my Photoshop (CS4). I downloaded LicenseRecovery 11.6.1, but the app failed to open. What next?

  • Error Installing oracle 9i on Linux Enterprise WS 4

    Hi, I´m trying to install Oracle 9i on a Linux Enterprise WS 4 when I give command in Disk1 sh runInstaller it comes with this error: Initializing Java Virtual Machine from /tmp/OraInstall2006-05-04_6-31-34PM/jre/bin/java. Please wait... Error occurr

  • Don't allow adobe to store last opened file

    Hi all, We have an portal that shows personal information on a PDF. After we have closed the portal, the PDF can still be opened when you look at the last opened files in Adobe. Adobe must not save such files in its memory, is this possible? The PDF