Exceptions in Flights Webdynpro using JCO Connection

I followed all the steps that are in the help for creating a webdynpro accessing ABAP BAPI calls and
Flights webdynpro using JCO Connection,
Carried out,,
===================
1) All necessary codings.
2) Deploying the application.
3) SLD .
4) JCO Connections to model data and meta data.
5) At the time of running the application ,, getting the stack trace errors like this,,
Web Dynpro product information:
Product: null, Vendor: SAP AG, Version: null, Build ID: 6.3003.00.0000.20031125134518.0000, Build Date: Tue Dec 14 19:17:19 GMT+05:30 2004
Error stacktrace:
java.lang.NullPointerException
     at com.sap.dictionary.runtime.ProviderFactory$PhysicalBackendProviderKey.hashCode(ProviderFactory.java:131)
     at java.util.HashMap.hash(HashMap.java:261)
     at java.util.HashMap.get(HashMap.java:317)
     at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:227)
     at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:178)
     at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:53)
     at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:137)
     at com.sap.dictionary.runtime.DdBroker.getStructure(DdBroker.java:201)
     at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:290)
     at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:743)
     at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:751)
     at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:751)
     at com.sap.tc.webdynpro.progmodel.context.Node.init(Node.java:215)
     at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:36)
     at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:177)
     at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:359)
     at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:300)
     at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:328)
     at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:132)
     at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:736)
     at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:751)
     at com.sap.tc.webdynpro.progmodel.context.Node.init(Node.java:215)
     at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:36)
     at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:177)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:513)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:371)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:528)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:395)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:113)
     at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:40)
     at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:178)
     at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:133)
     at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:347)
     at com.sap.tc.webdynpro.clientserver.task.Task.createApplication(Task.java:177)
     at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:485)
     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:48)
     at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:236)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:137)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:100)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:37)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:363)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:222)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:301)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:682)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:220)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:94)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:142)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

Hi Kishore
  Going by the error, there is some attribute which does not have a value at runtime. Hence you must be getting the Null Pointer Exception.
Can you let me know the following so that i could be able to help you further.
1. Name of the SLD connections. Have you tested them
2. Where are you making a call to the BAPI. Is it inside the wdDoInit() method.
3. How are you passing the parameters to the BAPI_FLIGHT_GETLIST.
I have done this example and there is no problem. If you let me know the above points i would be able to help you further.
regards
Ravi

Similar Messages

  • Can we use JCo connection with non-Web Dynpro J2EE project in NW

    With Web Dynpro, we have the RFC wizard to call RFCs using JCo connection.  I am wondering, if I create a J2EE project in NW development studio, can I and how to use JCo connection to call RFCs?
    Thanks.

    yes, of course.
    Add jar sapjco.jar then
    import com.sap.mw.jco.*;
    public class Bapi1 extends Object {
       JCO.Client mConnection;
       JCO.Repository mRepository;
       public Bapi1() {
          try {
             // Change the logon information to your own system/user
             mConnection =
                JCO.createClient("001", // SAP client
                  "<userid>", // userid
                  "****", // password
                  null, // language
                  "<hostname>", // application server host name
                  "00"); // system number
            mConnection.connect();
            mRepository = new JCO.Repository("SAPJCo", mConnection);
          catch (Exception ex) {
            ex.printStackTrace();
            System.exit(1);
          JCO.Function function = null;
          JCO.Table codes = null;
          try {
             function = this.createFunction("BAPI_COMPANYCODE_GETLIST");
             if (function == null) {
               System.out.println("BAPI_COMPANYCODE_GETLIST" +
                                  " not found in SAP.");
               System.exit(1);
             mConnection.execute(function);
             JCO.Structure returnStructure =
               function.getExportParameterList().getStructure("RETURN");
             if (! (returnStructure.getString("TYPE").equals("") ||
                    returnStructure.getString("TYPE").equals("S")) ) {
               System.out.println(returnStructure.getString("MESSAGE"));
               System.exit(1);
             codes =
               function.getTableParameterList().getTable("COMPANYCODE_LIST");
             for (int i = 0; i < codes.getNumRows(); i++) {
               codes.setRow(i);
               System.out.println(codes.getString("COMP_CODE") + '\t' +
                                  codes.getString("COMP_NAME"));
          catch (Exception ex) {
            ex.printStackTrace();
            System.exit(1);
          try {
            codes.firstRow();
            for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow()) {
              function = this.createFunction("BAPI_COMPANYCODE_GETDETAIL");
              if (function == null) {
                System.out.println("BAPI_COMPANYCODE_GETDETAIL" +
                                   " not found in SAP.");
                System.exit(1);
         function.getImportParameterList().
           setValue(codes.getString("COMP_CODE"), "COMPANYCODEID");
         function.getExportParameterList().
           setActive(false, "COMPANYCODE_ADDRESS");
         mConnection.execute(function);
         JCO.Structure returnStructure =
           function.getExportParameterList().getStructure("RETURN");
         if (! (returnStructure.getString("TYPE").equals("") ||
                returnStructure.getString("TYPE").equals("S") ||
                returnStructure.getString("TYPE").equals("W")) ) {
            System.out.println(returnStructure.getString("MESSAGE"));
         JCO.Structure detail =
           function.getExportParameterList().
           getStructure("COMPANYCODE_DETAIL");
         System.out.println(detail.getString("COMP_CODE") + '\t' +
                            detail.getString("COUNTRY") + '\t' +
                            detail.getString("CITY"));
      catch (Exception ex) {
        ex.printStackTrace();
        System.exit(1);
      mConnection.disconnect();
    public JCO.Function createFunction(String name) throws Exception {
       try {
         IFunctionTemplate ft =
            mRepository.getFunctionTemplate(name.toUpperCase());
         if (ft == null)
           return null;
         return ft.getFunction();
       catch (Exception ex) {
         throw new Exception("Problem retrieving JCO.Function object.");
    public static void main (String args[]) {
       Bapi1 app = new Bapi1();
    Link: [http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm]

  • Single Webdynpro Application with multiple JCO Connection ?

    Hi Experts,
    I have a strange requirement ......
    We have a Webdynpro Application which is connected to
    say (using JCO connection)
    client:- A
    now i want to connect the same Webdynpro application to
    Client:- B which is again in the same server as the client A.
    Please help me how to handle this.
    how it possible to connect a single Webdynpro application to two different clients using JCO Connection.
    Please help.
    Points would be rewarded to helpful answers.
    Regards,
    Sanjyoti.

    Hi experts
                        We have to use  wd application for both client at a same time e.g. as follow
    Client A -
    > Travel app--->Featches data from A for   employee hired in client A ,in same server as B
    Client B -
    > Travel app--->Featches data from B for   employee hired in client B , in same server as A
    we  are using same EP for both client but using diffrent roles for employees of both client.
    Please reply asap.

  • Eror in JCo Connection

    Hello All,
             I created an Application which will call a BAPI ,aceept input from the user and deliver the Output.
    But when I'm executing this Application I'm getting the following Runtime Exception.
    <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error while obtaining JCO connection.</b>
    Can anyone help me out in resolving this ?
    Regards,
    Deepu.K

    Hi,
    logon on the EP and go under <b>Content Admin -> Web Dynpro -> Mantain JCo Destinations</b>.
    In the table at the center of the Portal Content Studio you'll see all the JCo prensent into your Web AS Java.
    You can filter them by application using the combo.
    After you have viewed your application's JCo press the corresponding button TEST and read the result on the bottom of the page.
    Reward points for helpful answers.
    Best regards,
    Gianluca Barile

  • Fire Joint Query using JCO

    Hi All,
    I am using JCO Connection from a Webdypro Java Application to access the ERP backend, and fetch all the vendors for a particular Purchasing Organization.
    I am using the FM RFC_READ_TABLE. But I have to pick data from 2 tables here LFA1 and LFM1, as one contains vendor details and one contains Vendor - Purchasing Organization Mapping. Can I use RFC_READ_TABLE to fetch data from both these table using a single Joint query. Tried but getting exceptions while executing the functions.
    First fetching all the related vendors from LFM1, and adding these vendor IDs to the query on LFA1 worked. But it seems I cant add more than 900 vendor ids to the query. And customer is targetting more than 1000.
    When I added more than 900 vendor ids to the query, I get the following exception
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in module RSQL of the database interface.#
    So can you help me here with any kind of solution,
    1) Is it possible to fire a joint query with both these tables involved, through JCO.
    or 2) is there anyway to avoid the exception mentioned above and add more than 900 vendor ids to the query.
    Regards,
    Prakash

    HI Lavanya,
    Do you think this is due to time out issues.
    Because so far, in my system and as well as customer's system we havent faced any timeout issues.
    When I didnt pass any search parameters to the query I was still able to retreieve all the records in the table, without any timeout exceptions (though there were performance issues).
    When I went through other forums, they said this particular exception occurs when they had used more than 900(approx) parameters in the query (IN Parameters).
    My query goes like this.
    Select Field1, Field2 from LFA1 where Field0 = '1' or field0 ='2' or field0='3'.... or field0 = '900' .
    Saravanan had suggested to create a BAPI which does this Joint query stuff in the backend itself. But since customer is going live in a week approving any development in the backend is not possible now.
    So is there any work around to get through this exception, or is there any other RFC already available that can take in joint queries.
    Regards,
    Prakash

  • JCo connection and  SLD

    Greetings, we have a federated portal which is using JCo connections as part of the MSS/ESS business package. We had a situation where the SLD was down therefore the JCo connections were down. Our question is JCo connection completely dependent on SLD. In other words if SLD is down, will that mean our JCo connection will fail thus an outage.
    If this is the case what is the best way to make sure SLD is highly available? Our options are to make SLD highly available or distribute SLD on each system.
    Also, what is the performance hit on making SLD distributed on all Portal system if this the route we go?
    Thanks in advance!

    Hi,
    The distributed SLD servers can cause higher administration expense with regard to consistent data. Therefore, we recommend that you consider to use a single SLD server first.
    but for large system landscapes that are distributed over different geographic locations, a single SLD server might slow down the performance of involved application systems. In this case, a distributed SLDserver installation can be taken into account.
    Samrat

  • How to Remove JCO Connection Config?

    I have a NW2004s system that will not start. The Message Server and IGS Watchdog are running, but the Dispatcher is in a yellow state.
    The last thing that was done on the server before it was restarted was 2 JCO connections were added. Now the system will not start and I do not know how to remove the JCO connections.
    I cannot find relevant configuration within the Config Tool or the Offline Configuration Editor. I am unable to access the Visual Administrator.
    Any ideas?
    Thanks.
    Paul

    Hi,
    If you created JCO connection, then you can remove as follows
    1>go to Portal URL(Ex:http://102.26.88.65:50100/irj/portal)
    2>Go to content administration ->webdynpro-> Maintain JCo connections ->Remove what ever your JCo conn created.
    or search for the JCO connections you created in search box left -->delete

  • Port for JCO connection

    Hi,
      I am accessing an R3 table using JCO connection. Can someone please let me know the port no. of the server which will be neccessary for doing this?
    Thanks

    Hi Jacob,
    try {
    con = cgservice.getConnection("ISOILESconnect", cp);
    ix = con.createInteractionEx();
    ixspec = ix.getInteractionSpec();
    ixspec.setPropertyValue("Name", "Z_MESSAGES");
    rf = ix.getRecordFactory();
    // CCI api only has one datatype: Record
    RecordFactory recordFactory = ix.getRecordFactory();
    MappedRecord importParams=recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS");
    MappedRecord exportParams = (MappedRecord) ix.execute(ixspec, importParams);
    output = (IRecordSet) exportParams.get("LI_MESSAGES");
    This is the piece of code im using, I have already created a system on both the servers and tested them successfuly. But for some reason it works on one but does not give an output when i run it on the other server.
    I get an error which tells me that no output is returned.
    Thanks.

  • Suggestions/Advise on JCO connectivity & Jars

    Hello,
    I have developed a web-application that uses JCO connectivity to call the BAPI/RFC. This web-app should be able to run on different servers such as WebSphere, WebLogic...
    Also this web-app will be part of big product that my company sells.
    I am using the SAP-Connectivity Wizard of NDS(Netweaver Developer Studio) to generate the Java Proxy classes (like Bapi_user_create1_PortType etc) and use these proxy classes in the web-app. Inorder for this web-application to run on different servers the following four jars are necesary...
    sapjco.jar,
    aii_proxy_rt.jar,
    aii_util_misc.jar,
    SAPmdi.jar
    -->1. Is the above procedure advisable? any risks/dangerous i.e. if the web-app is to be deployed on a differen application server (than instead of being deployed to SAP J2EE WebAS)
    -->2. Information - The web-application with the above procedure works perfectly fine with out any issue on tomcat atleast. But the problem is will the three jar files (aii_proxy_rt.jar,aii_util_misc.jar,SAPmdi.jar) change dramaticaly in the future or will be stable.
    -->3. Will SAP support these jars for all future releases, if it does not how much modification should be made to the applications.
    (I know the 3rd point cannot be answered given todays conditions but are there any plans of changing them in the near future)
    The reason to know this information is...
    This web-app will be part of a big product that my company offers/sells, since the jars are propriatery to SAP,the jars cannot be shipped along with product and the customers are requested to get the following jars from NDS. So if NDS does not come with these jars than the whole development goes waste.
    I would greatly apprecaite your help.
    Thank you,
    Yasu

    Hi Raj,
    I have mailed to your personal gmail email id  , can you please check your mail and do the needful.
    Thanks in advance.
    Regards,
    Prasanna.

  • Why WebDynpro UI doesn't work while JCo Connection successfully.

    My system landscape has 3 server
    -R/3(ABAP)
    -Exchange Infrastructure(ABAP+J2EE) : SLD
    -Auto-id (ABAP+J2EE): Auto-id 2.1(compose of ABAP add-on and deploy j2EE SCA) 
    on Auto-id, My JCo Connection using username and password.
    I would like to know
    -what is the cause of the following error?
    -How to fix this problem to make <b>http://myServer:myHTTPport/webdynpro/dispatcher/sap.com/ainsodesktop/DesktopApp work</b> ?
    Error stacktrace:
    <b>com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.sap.ain.model.executionstatus.types.__Ain__Dm_Doc_Type could not be loaded: com.sap.dictionary.runtime.DdException:</b>
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:471)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:346)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:352)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.dictionary.runtime.DdException:
         at com.sap.dictionary.types.mdi.util.ProviderUtil.createAbapTypeXmlMap(ProviderUtil.java:400)
         at com.sap.dictionary.runtime.mdi.DataProvider.createSimpleTypeFromAbapType(DataProvider.java:587)
         at com.sap.dictionary.runtime.mdi.DataProvider.getDataType(DataProvider.java:286)
         at com.sap.dictionary.runtime.DdDictionary.getDataType(DdDictionary.java:81)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:164)
         at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:234)
         ... 31 more
    Thank you.
    Nutida

    Hi Nutida,
    Check your JCO connections are working properly or not.
    For that go to http://<Auto-id's IP>:50000/webdynpro/welcome
    there, click on content administrator.
    here you can find your JCO connections by clicking on Maintain JCO connections.
    Test your JCO connections here.
    Regards,
    Bhavik

  • 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

  • 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

  • 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

  • Problem create jco connection in webdynpro application run time

    Hi There,
    I created webdynpro application using rfc model.
    After deploy the project , i created two jco connection
    for data & meta data this is work o.k (test with no errors). the sld is o.k.
    We are using application server (Single Server) for data
    & message server for meta data (Load Balance).
    During run time there is an error message:
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.ness.crm.customerlasttwo01pckg.model.types.Datab could not be loaded: com.sap.dictionary.runtime.DdException:
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:471)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:433)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.dictionary.runtime.DdException:
         at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:225)
         at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:180)
         at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:78)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:64)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:39)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
         at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:234)
         ... 44 more
    <u>Can some one help me with this matter?</u>
    Best regards Nir Shohat.

    Hi Nir,
    We also had same problem but no we won't. Check ur config on SLD again and the try to the test connection from the http://localhost:4444/webdynpro ( WAS 6.4 )server.
    If this connection is OK then deploy some small application n see.
    Is ur's JCo connection working for J2ee application?
    Arnigs

Maybe you are looking for

  • Contract Account Screen Enhancement - CAA1/2/3

    Hi all, I am in need to Enhance the contract account screen for the well known transactions CAA1/2/3. Now the requirement is to add a new tab named "Add.Info" along with the existing tabs for the main screen. The new tab once defined will have some c

  • Upload using HTTP protocol

    my requirement is to upload/tranfer a file to remote server(LAN/WAN) using http protocol. my application is not a web based application. if anybody knows how to do it, pls. let me know. thanks and regards Savitha

  • Preserving Safari history for use in a new iMac installation

    My Mother is ready for a new iMac but has a strong afinity to using the Safari history for browsing sites she's accessed previously.  Reading about Safari history has alerted me to the "plist" file that the history is saved in.  I need to determine h

  • Premiere Elements 8, organizer will not start

    Premiere Elements 8, organizer will not start

  • Font Issue in Reports Developer 10g Linux

    Dear Members, I am facing a problem while migrating the reports from 6i to 10g Linux. When I migrate any report in 10g Linux, I have to set the format and font name along with its size. Is there any way to have the same font and size after migrating?