JCO Connection constructor: Pool already initialized

Hi Folks,
while i'm configuring a JCO connection to R/3, i got a little problem:
In my class constructor i initialize a client pool.
JCO.addClientPool(sapSID, sapMaxConnections, sapMandant, sapUser, sapPasswort, sapLanguage, sapSystem, sapSystemNumber);
JCO.getClientPoolManager().getPool(sapSID).setMaxWaitTime(maxWaitTime);
problem:
when there is already a client pool, the application crashes
solution:
check if there is already a connection-pool with this name
i tried the following:
1) Check if there's a pool with the name
          if (JCO.getClientPoolManager().getPool(sapSID).getName()==sapSID) {
==> which leads to a null pointer exception because logically there is no pool and as the doc says "if there's no pool, .getPool(String) will return null, which leads to:
2) Check if null
          if (JCO.getClientPoolManager().getPool(sapSID)==null) {
but unfortunately. this won't work either.. null point exception again.
anyone got a hint?
thx in advance,
lars
Message was edited by:
        Lars Paetzold

i remove the waittime part now, but it won't work anyway:
java.lang.NullPointerException
if (JCO.getClientPoolManager().getPool(sapSID)==null) {
     if (JCO.getClientPoolManager().getPool(sapSID).getName().toString()==sapSID.toString()) {
     } else {
          JCO.addClientPool(sapSID, sapMaxConnections, sapMandant, sapUser,
                              sapPasswort, sapLanguage, sapSystem, sapSystemNumber);     
if i'm not checking if there is any kind of pool, everything works fine until i call the application a second time and the pool is already initialized

Similar Messages

  • Need help in JCO connection creation/maintanence.

    Hi,
       In our project we have EP system ( Java Stack).We need to form the JCO connection that is required to deploy the web dynpro applications.We have taken a couple of JCO connection which are already there  SAP_R3_HumanResources  & SAP_R3_HumanResources_Metadata.For SAP_R3_HumanResources_Metadata JCO connection the user existing is a dialog user,also not having sufficient authorization to access all DDIC functions.My question is that what authorization required to user in this case to access all DDIC functions?Also for SAP_R3_HumanResources JCO connection what all prerequisites we require?.In this environment CD2 ( Dev.SAP system) is acting as backend to production portal PP6 system.Please let me know if you want any more details from my side.

    Hi nileshshete
    I quote this from sap-img.com:
    There are many functions of DDIC user.
    For E.g.. When you configure TMS you won't be able to configure it using sap*. For this you need a user who has access to Data dictionary and ABAP repository Object like DDIC user or user with sap_all and sap_new permission.
    http://www.sap-img.com/basis/function-and-role-of-user-types.htm
    I think u need a user with sap_all premission.
    Hope it helps,
    Nitsan

  • How to use a JCO connection pool in an EJB?

    Hi *,
    I want to build a WebService using SAP Web AS (J2EE Engine) that connects to a R/3 ERP (release 4.7).
    I thought of building a stateless session bean that will be deployed as webservice. The session bean shall connect to the R/3 in order to call some BAPIs. I'd like to use a JCO connection pool. But I'm not sure, where I should create and destroy the connection pool. Are the EJB methods ejbCreate() and ejbRemove() the right ones? If so, my businness methods would just have to get a connection from the pool and call the BAPIs, right? If not, what do you suggest?
    Another question: I already deployed a bean as webservice. Since not really knowing how to use the connection pool, I created a bean with one business method that creates a connection pool whenever it gets called. But if I have to change something in the bean so that I have to redeploy the bean I can't call my business method anymore, because JCO cannot load a native library once again, as it is already loaded, This leads to an exception. So I have to restart the complete engine everytime I redeploy my bean. Are there any workarounds for this problem? I'm not sure whether this is connected to the wrong use of the JCO connection pool.
    Kind regards,
    Lars

    Hi *,
    I want to build a WebService using SAP Web AS (J2EE Engine) that connects to a R/3 ERP (release 4.7).
    I thought of building a stateless session bean that will be deployed as webservice. The session bean shall connect to the R/3 in order to call some BAPIs. I'd like to use a JCO connection pool. But I'm not sure, where I should create and destroy the connection pool. Are the EJB methods ejbCreate() and ejbRemove() the right ones? If so, my businness methods would just have to get a connection from the pool and call the BAPIs, right? If not, what do you suggest?
    Another question: I already deployed a bean as webservice. Since not really knowing how to use the connection pool, I created a bean with one business method that creates a connection pool whenever it gets called. But if I have to change something in the bean so that I have to redeploy the bean I can't call my business method anymore, because JCO cannot load a native library once again, as it is already loaded, This leads to an exception. So I have to restart the complete engine everytime I redeploy my bean. Are there any workarounds for this problem? I'm not sure whether this is connected to the wrong use of the JCO connection pool.
    Kind regards,
    Lars

  • Problem with JCo Connection Pool

    Hi,
    I have a problem with using an RFC Model in my WebApplication. So sometimes the access to the function block works, and sometimes it doesn't work. Now I know, that there is a problem with the connection pool. Look at this message:
    com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool WD_X24_MODELDATA_DEST_CPIC_REKTO_DE_useDefinedUser is exhausted. The current pool size limit (max connections) is 10 connections.
    So it looks like a problem with closing the JCo Connections after using. Do know where the problem is? Because I'm using many other function blocks with no problems.

    Hello,
    You need to increase the pool size via Visual Administrator.
    Server 0 -> Services -> JCO RFC Connections.
    Change the pool size from there. I believe a restart is in order.
    Regards,
    Jan

  • JCO Connection pooling

    hi,
    <b>How to create connection pooling in WAS for SAP R/3 System.</b>
    I have  written session bean for Creating SalesOrder in SAP Using JCO.
    my application will create 100 connection objects if 100  Client Calls for my SessionBean  .so that i need to avoid creation of connection objects  for <i><b>every time</b></i>.
    pls tell me how configure WAS for JCO connection pooling .and How to get those connection objects. and how to use that connction object in my application.
    regards
    Guru

    Hi
    See this help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/85343e8c7f6329e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
    Kind Regards
    Mukesh

  • Error creation of JCO connection: System Already Exist

    Hi Experts,
    We have created the SLD connection to the ECC6.0 from the Portal 7.0.
    Created one JCO connection using that SLD successfully for the Clinet 100.
    Now we required to create one more JCO Connection for client200 also. But it is giving the Error that
    System Already Exist.
    How can we resolve this. When we create the JCO connection for one client, con't we create one more JCO connection for the same system for the differt client or not?
    If so How do it?
    Regards

    I think you can add one more client in the existing connection. well, I am not sure about that even.
    nikhil

  • Error making initial connections for pool

              I'm using WLS6.1 on NT, trying my personal implementation of a connector (non
              CCI pattern) with a particular EIS.
              i'm having this error... what depends from?:
              ####<25-ott-00 19.52.41 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190014> <Initializing connection pool for resource adapter
              BlackBoxNoTx.>
              ####<25-ott-00 19.52.42 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190010> <Unable to determine Resource Principal for Container
              Managed Security Context.>
              ####<25-ott-00 19.52.42 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190035> <There was/were 1 physical connection(s) created with
              the following Meta Data: Product name of EIS instance: DBMS:cloudscape Product
              version of EIS instance: 3.5.1 Maximum number of connections supported from different
              processes: 0 User name for connection: null>
              ####<25-ott-00 19.52.42 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190026> << BlackBoxNoTx > Connection Pool initialization has
              completed successfully.>
              ####<25-ott-00 19.52.42 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190014> <Initializing connection pool for resource adapter
              SMJConnector.>
              ####<25-ott-00 19.52.42 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190010> <Unable to determine Resource Principal for Container
              Managed Security Context.>
              ####<25-ott-00 19.52.47 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190010> <Unable to determine Resource Principal for Container
              Managed Security Context.>
              ####<25-ott-00 19.53.06 CEST> <Error> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190024> << SMJConnector > Error making initial connections
              for pool. Reason: examplescnnct.ConnectionImpl>
              ####<25-ott-00 19.53.06 CEST> <Warning> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190025> << SMJConnector > Connection Pool has been initialized
              with no connections.>
              ####<25-ott-00 19.53.06 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <main> <system> <> <190026> << SMJConnector > Connection Pool initialization has
              completed successfully.>
              ####<25-ott-00 19.54.30 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <Application Manager Thread> <> <> <190027> << SMJConnector > Shutting down connections.>
              ####<25-ott-00 19.54.30 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              <Application Manager Thread> <> <> <190028> << SMJConnector > Connections shutdown
              successfully.>
              

    Have you configured your principal map? Connection pools are initially populated using the
              default ("*") principal from the map.
              http://edocs.bea.com/wls/docs61/jconnector/config.html#1237429
              HTH.
              FilAiello wrote:
              > I'm using WLS6.1 on NT, trying my personal implementation of a connector (non
              > CCI pattern) with a particular EIS.
              >
              > <examplesServer>
              > <main> <system> <> <190010> <Unable to determine Resource Principal for Container
              > Managed Security Context.>
              > ####<25-ott-00 19.52.42 CEST> <Info> <Connector> <semarmw0780> <examplesServer>
              Tom Mitchell
              [email protected]
              Very Current Beverly, MA Weather
              http://www.tom.org:8080
              

  • Web dynpro console - monitor - JCO Connection pools

    If you go to the web dynpro console -> monitor -> JCO connection pools you see a table with information.
    JCo Clients MonitorJCO Pools - 12:31:02.992
      Name Size Currently used Maximum used Max.connections Max.pool size
    Can somebody explain what for example the "Size" and "Maximum used" mean in this table?
    And if you have set max.pool size to 20, what things can override this setting in the SAP system?

    Hi,
    You can follow this link for information on JCO in Web Dynpro Java:
    [http://help.sap.com/SAPHELP_NW04S/helpdata/EN/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm|http://help.sap.com/SAPHELP_NW04S/helpdata/EN/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm]
    -Kunal Kotak

  • JCO connection pool is exhausted

    hi
    I am using RFC module in my web dynpro application. When the application is used for sometime, the JCO connection will get exhusted. The JCO connection will not release itself. I can't find any method in web dynpro to release the connection manually. How can I solve this problem?

    Hi,
    What is scope of the connection. View properties of MODELDATA and METADATA  destinations.
    You can change the scope of the connection..
    or
    wdContext.current<BAPI INPUT>Element().modelObject().modelInstance().disconnectIfAlive();
    For more ways , give a forum search.. There are a lot of close forum posts.. Gud luc..
    Regards
    Bharathwaj

  • Error while obtaing JCO connection

    In Bussiness planning in portal. When i click Planning tab in Enterprise portal, its throwing an error that "error while obtaining JCO connection". I cant proceed furtherI
    I am working in my own system.
    I have checked many posts and i have done some JCO destinations as per the instructions but it's vain.
    The detailed error is as follows;
    500   Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: ComponentUsage(CharRelInst): Active component must exist when getting interface controller. (Hint: Have you forgotten to create it with createComponent()? Should the lifecycle control of the component usage be "createOnDemand"?
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.ensureActiveComponent(ComponentUsage.java:773)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceControllerInternal(ComponentUsage.java:348)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceController(ComponentUsage.java:335)
    at com.sap.ip.bi.plan.workbench.wdp.InternalInfoprovController.wdGetCharRelInstInterface(InternalInfoprovController.java:296)
    at com.sap.ip.bi.plan.workbench.InfoprovController.checkSavable(InfoprovController.java:254)
        ... 48 more
    please give some pointers like what needs to be done JCO settings in Backend.
    Thanks in advance.

    Niranjan,
    3 causes and many more....
    First and most probable cause is that your CR content in SLD is old....
    FIX - to fix this download latest cimsap and crcontent from service.sap.com and implement in SLD.
    Second cause user is locked
    FIX - unlock in R/3
    Third cause could be that the connection pool in JCO is exhausted.
    FIX - increase connection pool in JCO.
    More causes.
    With this new version it appears that any error before connection is created ends up showing this, so I would really go into default trace and look there for original errors, that is the way I found JCO pool was exhausted, that error was not being forwarded and instead it was showing this error...
    reward points if helpful

  • JCO Connection error in webdynpro

    Hi
    I  have Ep 7.0, ECC 6.0 (NW2004s)
    I am  trying to establish JCo connection but we are getting the
    following error
    "com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect
    to message server host failed Connect_PM TYPE=B MSHOST=*****
    GROUP=SPACE R3NAME=HEI MSSERV=sapmsHEI PCS=1 ERROR
    service 'sapmsHEI' unknown TIME Fri May 30 16:19:20 2008
    RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -
    3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2:
    service 'sapmsHEI' not found SYSTEM CALL getservbyname_r COUNTER 2"
    Already i have created TechnicalSystems in the Portal and
    I have entered the sevice file in the location of c:\WINDOWS\system32\drivers\etc as "sapms<SID> 3600/tcp" in EnterprisePortal Server.
    after that we have restarted the server
    Still i am getting same error.
    Could you please help us.
    Regards
    Srinivas

    Hi,
    First You Configure SLD Correctly.If You Have ECC And BW.You Maintaing Two WEBAS ABAP Systems.
    You Create WEB AS ABAP System In SLD And Maintain Connection Properties Of ECC.And
    Similarly For BW Also.
    The Given Below Links To Help You SLD Cofiguration For J2EE
    http://www.*********************/solution_manager/solution_manager_sld.html
    SLD Configuration
    3.If You Want To Create JCO Destinations.You Go To Login Portal
    Content Administration->Webdynpro->Create JCO Destinatiion
    A.General Data -> Specify Model Name,Client And JCO Pool Configuration
    B.Specify J2EEE Cluster
    C.Destination type
    Data Type-> Application DataModel,Dictionary MetaDataMetadata
    Destination Type->Load Balancing Or Single Server
    D.Specify Either Application Server Or Message Server
    E.SecurityUsername,password,confirm password,language
    F.SummaryWhole Information
    Similarly Metadata Created Follow Same Steps As Above
    After Creating JCO Destinations, Go For Maintain JCO Destination And test The JCO Destinations Works Fine Or Not you Con Test.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/portal%20integration/how%20to%20use%20the%20web%20dynpro%20content%20administrator.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/85a483cb-0d01-0010-2990-c5168f01ce8a
    http://help.sap.com/saphelp_nw04/helpdata/en/77/931440a1c32402e10000000a1550b0/frameset.htm
    It's Useful Rewards Points
    Bye
    Thanks
    SubbaRao

  • JCO connection error:Couldn't create JCOClientConnection for logical System

    Hi All,
    We are facing a production outage issue.
      We have a Federated Portal Network setup where one of our producer goes down automatically (seems on heavy load).
      On this Producer server we have 3 Web Dynpro applications deployed and default trace is full with JCO connection error   saying Could   not create JCOClientConnection for logical System: CSVMR_WD_MODELDATA_DEST.
    We had issue with max allowed JCO connections so we changed the below mentioned parameters for JCO connection settings in portal:
    u2022     Minimum value of JCo Pool Size in total = 80
    u2022     Minimum value for CPIC_MAX_CONV per SAP Web AS = 320
    u2022     Maximum Number JCo Connections = 160
    Please let us know if we are missing on some settings, any help in this regard is appreciated.
    Regards,
    Priyanka

    Hi,
    As you have already increased the maximum number of connections/pool size but still you are facing this problem. I would suggest you to check the web dynpro application which might not be able to release/disconnect the JCO connection.
    Please check this [Thread|How to close a model object connection for Adaptive RFC?; for more details.
    Regards
    Puneet

  • JCO Connection giving error when try to edit or preview it.

    Hi,
    We have in our project PD6(Portal) only java stack & CD1(ECC6.0) system is acting as respective backend.
    The JCO connection has already been configured for it,but when I try to edit or preview one of the JCO connection it is giving below error.
    Error :
    500   Internal Server Error
    Failed to process request. Please contact your system administrator.
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
        at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
        at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateJCODestinations(NameDefinition.java:285)
        at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateNavigation(NameDefinition.java:251)
        at com.sap.tc.webdynpro.tools.sld.NameDefinition.wdDoInit(NameDefinition.java:158)
        ... 45 more
    Detailed Error Information
    Detailed Exception Chain
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
         at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateJCODestinations(NameDefinition.java:285)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateNavigation(NameDefinition.java:251)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.wdDoInit(NameDefinition.java:158)
         at com.sap.tc.webdynpro.tools.sld.wdp.InternalNameDefinition.wdDoInit(InternalNameDefinition.java:236)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:789)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:296)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:767)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Please let us know your input on this.
    Regards
    Nilesh

    Likely Cause would be some fields for the backend system used to setup the JCO destination are not updated properly (i.e.
    empty) in SLD. Once you have configured your SLD please also ensure that you have selected the relevant u201CMessage Server Connectionu201D. The Message Server, System Name and Logon Group must not be left empty. Ensure that SLD contains up-to-date and complete information about backend systems.
    Check that the SLD is setup properly, check whether you have registered the system through config tool into SLD If not please register system into SLD so that all the parameters are transfered to SLD automatically. You need to do this even the u201CTest Connectionu201D to SLD is successful. Once you are registered you should be able to create the JCO destinations with out any issue.
    Thank you.
    Shyam

  • Jco connection :null

    Hi sap gurus
    I am using rfc  connection for executing bapi using some jco connections. but if  the jco are being used for one time it is being executed . but when we deploy application another time . the exception is received as dynamicrfcexecution error jco connection:null.
    when we change the poolsize it is being . the rfc is executed  for only one time.
    please suggest a way to close jco connections . if already present.
    Thanks & Regards
    prasad

    hi , logon mechanism  while creating the JCO Destinations.
    Is  Logon Ticket
    This is code what iam using for rfc access
    Zhr_Emp_List_Input input = new Zhr_Emp_List_Input();
              wdContext.nodeZhr_Emp_List_Input().bind(input); 
         wdContext.nodeZhr_Emp_List_Input().currentZhr_Emp_List_InputElement().setPernr("10" );
              try {
                   wdContext.nodeZhr_Emp_List_Input().currentZhr_Emp_List_InputElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
              } catch (WDDynamicRFCExecuteException e) {
                   wdComponentAPI.getMessageManager().reportSuccess(e.toString());
                                  // TODO Auto-generated catch block
                   e.printStackTrace();
              }finally {          
         wdContext.currentZhr_Emp_List_InputElement().modelObject().modelInstance().disconnectIfAlive();  
    for the above code where  Zhr_Emp_List_Input  is the rfc . which will return employee details when we set the Pernr(personal number) to rfc
    the exception is
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    for only one time the rfc is executing . for the other time if we increase the pool size or change the whole jco references for webdynprojava application . we are able to execute the application

  • JCO connection problem at web dyn pro

    HI all,
    I was installed sneak preview of Net weaver 6.4,
      I want to do some web dynpro (java) programs which connect to back end systems.(R/3 system).
      The R/3 system which I want to connect is at remote place, i have connectivity to that R/3 system using VPN connectivity. With this I am not having any problem. Since I am able to connect using User name and password, and able to do some transactions like RZ70, etc.
       I developed an application which calls COMPANY_CODE_GET_LIST (BAPI function).
    for the above requirement what I did was
       (1)I created SLD setting.
           (a)Web as Java (I am not having any problem to
              Create this.
           (b) Web as ABAP.
              When i am trying to create
              This, there are some steps like i need to go to SAP log in and I need to run the transaction RZ70. For this i need to create an enter in visual administrator>JCO RFC Provider>runtime-->Bundles i need to create an entry for RFC destination as well as Repository.
          under <b>RFC destination </b> there are some fields which i need to enter those are  (a)Program ID as <b>mySLD</b>  (b) Gateway Host as <b>10.10.10.125</b> (c)Gateway service as <b>sapgw00</b>  (d)Number of processes as <b>1</b>
          Under <b>Repository</b>  (a) Application server host <b>10.10.10.125</b> (b)system number as <b>00</b> (c)Client number as <b>100</b> (d)Language as <b>en</b> (e)user as <b>ABCD</b>  (f)password as <b>1234</b>
      I haven't choosed the check boxes <b> Local bundle </b> and <b> Unicode </b> and pressed the set button. So like this i created the RFC destinations. under the <b>properties</b> tab  there is a property called <b>RFC_DEFAULT_DESTINATION</b> by default it was false so i made it as <b>true.</b> .
    I also went to <b>SLD Data Supplier</b>,under <b>Runtime</b> tab , HTTP  Settings , I mentioned
               (a)Host: pava-vis75
               (b) Port: 50000
               (c) user: administrator
               (d) password: abcd1234
               RFC Settings, I mentioned as
               (a)Gateway Host: 10.10.10.125 (which is SAP R/3 system)
                (b)Gateway Service/Host: sapgw00
               CIM Client Generation settings, as
               (a)Host: pava-vis75
               (b)Port (http/https):50000
               (c) user: administrator
               (d) Password : abcd1234
        I tested the CIMClient Test by click the the button. I got the successful message.
        Then I came back to HTTP settings and clicked the button with tilted arrow mark [This triggers data transfer to system landscape directory], for this also I got a successfully message.[data transferred successfully]
        Next I been to SAPLOGON and went to RFC Destinations by using <b> sm59 </b> transaction. There under TCP/IP connections i been to <b> SLD_NUC </b>, opened this by double clicking that and under Technical settings for <b> Program ID </b> I had given the ID which I created at visual administrator [JCO RFC Provider] which is <b>mySLD </b>, under gateway options for Gateway Host as <b>10.10.10.125</b>and Gateway service as <b> sapgw00 </b> then i tested the connection, it was also successfully.
    Then I opened the SLDAPICUST and i created a new entry for maintaining the SLD Access Data by giving some couple of entries as
                (a)Alias: vissldtest
                (b)Host Name: pava-vis75
                (c)Port: 50000
                (d) user: administrator
                (e) password: abcd1234
    Then saved it.
    Next I created <b>sapmsUV0         3600/tcp </b> entry at
    <b>WINDOWS\system32\drivers\etc</b>\services file, and also there are some required entries which are already existing those are <b>sapgw00</b> <b>3300/tcp</b> to <b>sapgw99</b> <b>3399/tcp</b> , another entry starts from  <b>sapdp00s</b> <b>4700/tcp</b> to <b>sapdp99s</b> <b>4799/tcp</b> , next entry starts from  <b>sapgw00s</b> <b>4800/tcp</b> to <b>sapgw99s         4899/tcp</b> and <b>sapmsJ2E      3601/tcp </b> .
    I restarted the system, as well as server.
    Now my problem is when I was trying to create JCO destination at web dynpro content administrator. For that I navigated as “create JCO Destination &#61664;Deployed Content&#61664;local-&#61664;local/CompanyCodeGetList-&#61664;Applications&#61664; CompanyCodeGetList
    I Choosed the JCO Connections tab-&#61664; there are 2 entries those are
                (1) COMPANY_CODE_MODEL
                (2) COMPANY_CODE_RFC_METADATA
    So I started creating connection for COMPANY_CODE_RFC_METADATA.
      First one is
                   General data <b> Name </b>: COMPANY_CODE_RFC_METADATA
                                        <b> Client </b> : 100
                                        I didn’t changed any default JCo pool configuration.
                     J2EE Cluster
                                        There is a check box called “Use Local J2EE engine J2E on pava-vis75’ so I choosed that.
                  Connection Type
                                       <b>Dictionary Meta Data</b> and <b>application Data </b>
                            I choosed the first one.
                 Then
                           Msg. Server Connection
                            Security
                            After these, I tried to test the connection by clicking the ‘Test Connection.
             It is saying the error as
         First time
            com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service 'sapmsUVO' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1                                      
    second time
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service '?' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
    Can any body please help me to solve this problem.
    From past 1 week on wards I have been trying to resolve this. But in vain.

    answer in your other thread on the same topic
    problem in connecting JCO destination in web dynpro
    (Kindly avoid double posting)
    Regards
    Raja

Maybe you are looking for

  • Blue dots where volume control should be.

    I just got my iPod nano and when I turned it on this morning to listen to a song blue circles were where the blue bar is supposed to be at the bottom of the screen when you are listening to a song. I can still turn the volume up and down, and listen

  • Adobe forms multiple print issue

    Hi All, I am new to ADOBE forms and my development involves generating prints of the same form with different data on it in one go. Now everythign is working fine except for the print preview bit. I want to disable print preview and dialog. I have pa

  • Users using Windows Authentication unable to login after upgrade to SQL Server 2012 SP2 CU1

    We upgraded from SQL Server 2008 R2 to SQL Server 2012 SP2 CU1.  Upgrade was successful.  Users that have SQL Server Management Studio 2012 can successfully log in via Windows Authentication, but users with an older version of SQL Server Management S

  • Working with .pdf files and JAVA

    Hi, does anyone have an answer to how I can find more information on .pdf files? I would like to convert .pdf files to textfiles and/or xml files. I can not find it in the j2se Edition, and someone told me it can be found in the j2ee edition, but I c

  • I have to install portal content

    hi expert's i am working in bi 7.0 in that when i am used to work on administration ****-pit it will lead to me a link called portal installation site, so how to implement portal content in to bi 7.0 version regards harikrishna.N