JCo Increaing maximum no of connections

Hi,
I have some issues with RFC adapter. I need to increase the Maximum no. of connections for RFC adapter JCo Connection pool. I have increased the maximum connections in RFC receiver adapter. This does not seem to work.
Any help on this is highly appreciated.
Regards,
Jai Shankar

>>>are you looking for maintaining multiple parallel connection?
By default RFC adapter works in COnnection pooling method to increase performance. But the problem is I am getting an error msg
<b>Error while lookup Problem when calling an adapter by using communication channel CC_NSA0004_GIL_RFC_Product_RCV (Party: , Service: <BS_XXX>, Object ID: 2f929451f8d83ce8af30b7275120c14d) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_XXX]2f929451f8d83ce8af30b7275120c14d is exhausted. The current pool size limit (max connections) is 4 connections.'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_XXX]2f929451f8d83ce8af30b7275120c14d is exhausted. The current pool size limit (max connections) is 4 connections.'</b>
Note I have set the max connections to 20 in RFC receiver adapter
Regards,
Jai Shankar

Similar Messages

  • "Maximum no. of connections in use.." error messag...

    Hi
    Recently I am getting this message whenever using Ovi Maps or Google maps :
    "Maximum no. of connections in use. Close an active connection first"
    When i close the O2 active connection it makes me open the O2 video connection, which doesn't work either.
    So i can't use any navigation on this 5800xm
    Latest software (v6.0.xx) & have tried a full phone reset.
    Any advice ?
    Thanks

    97268450 wrote:
    when i open face book application,the same problem maximum number of connection in use. Close an active connection first. i have nokia 5233
    This issue was already answered by other threads. You can click here and  here for more information.
    Hope this will help you.

  • Maximum number of connections in use. Close an act...

    Hi everyone.
    I try to connect my N95 to internet, using "One Touch Access" and USB. It used to be working ages ago! but now, it is impossible. it gets connected with the phone, but when i want to open a web page, it say "maximum number of connections in use. Close an active connection first", and forces me to close my Modem connection, and everything gets disconnected...
    what should i do????
    help please...

    97268450 wrote:
    when i open face book application,the same problem maximum number of connection in use. Close an active connection first. i have nokia 5233
    This issue was already answered by other threads. You can click here and  here for more information.
    Hope this will help you.

  • Maximum number of connection in use. Close an acti...

    When I am using nokia maps . A popup message comes in as (maximum number of connection in use . Close an active connection) and an option yes or no . When I press yes . The active connections are displayed there are only one active connections when it is disconnected . An another message comes in as connection needed to continue nokia maps . And when use no message popup again and again and I can't use maps .... I have formatted phone memory and memory card several times and I have updated phone program also . Can you please help me .
     i am using Nokia 5800xpressmusic . model-5800d-1.
                                                                             tankyou
    Solved!
    Go to Solution.

    Hi virajkumar
    Please bear in mind two processes involved here, OVI Maps application which may either be "Online" or "Offline" (spanner icon > Internet > Connection) and Assisted GPS feature utilizing a network access point (Menu > Applications > Location > Positioning > Positioning server > Access point). 
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • JCo server programming, properties and connection settings

    Greetings, SAP professionals.
    The reason I come to this forum is that I'm hoping to gain some insights into the use of the SAP Java Connector (JCo). I am a developer who was tasked with making a new component for a systems integration application. As is typical of integration software, our app can link together various different systems using a variety of protocols, as well as providing the means to apply business logic on messages passed from one location to another. We already have a connector acting as an SAP client which was implemented using JCo. Now, we were asked to develop a new component: a server capable of accepting RFCs from a remote SAP system acting as client. The server is to be created using the JCo classes, so basically an extension of JCo.Server, with some logic for creating function templates from configuration files.
    However, while I'm understanding the structure of the Java API, it's not entirely clear to me just what the classes do. I've found the JavaDoc for JCo to be mostly descriptive of the interface of classes and methods, but not really explaining what these achieve, or how. So I'm hoping to be set straight, as I fear I'm kind of misunderstanding the functionality of JCo... Being mainly an integrations developer, I unfortunately often have to settle for gaining a superficial knowledge of a variety of systems to quickly interface with them, so I don't have any prior knowledge of SAP but still need to be able to implement something with JCo without too much delay.
    The most important question I have is this: when a JCO.Server implementation is started, does it act as a fully standalone component capable of receiving calls, or does it merely act as a sort of listener for some main SAP system? I'm not talking about a reliability on the two .dll files (or .so for Linux) that are required for the use of JCo, I just wish to know if the JCo package is entirely self-sufficient for server functionality or if it is intended to be linked to some SAP system.
    A second problem I have is that the parameters passed to various constructors aren't clear to me... I'm not familiar with SAP terminology, nor have I worked with any client apps that make use of an SAP system.
    The meaning of client strings, gwhost, gwservice, ashost, system IDs and program IDs mostly elude me, especially when it comes to knowing what client parameters must match what server parameters.
    In order to familiarize myself with the classes, I've tried playing around with them a bit trying to create a small test app that first starts a JCO.Server instance, then tries to make a remote function call to it with a JCO.Client (within the same class, for simplicity and debugging purposes). I was wondering if this actually makes sense... Would a JCo client be capable of connecting to a JCo server, all running purely in Java, or is that nonsense?
    To eliminate some common troubleshooting options, I'll quicly describe the steps I've taken:
    Both librfc32.dll and sapjcorfc.dll were placed in the Windows system32 folder. Maybe only librfd32 needs to be placed there, but I copied both anyway to make sure.
    The directory containing the jar file and both dll files is included in my environment path variable.
    I've added a line to the C:\Windows\system32\drivers\etc\services file as follows:
    sapgw00          3300/tcp                           #SAP System Gateway Port
    I've opened port 3300 in my Windows firewall. In fact, I also tested with the firewall completely turned off.
    However, I do not manage to get my test class to work. I've tried ports 3300, 3200 and 3600. I've tried various permutations of the client and server properties. I've tried removing the line from the services file, which would prompt the client to state upon connecting that the service "sapgw00" is unknown. When I add it back in, the error changes to "partner not reached", so it is definitely picking something up.
    The server itself starts just fine, but connecting through a client doesn't work. My class source code is posted below. Maybe what I'm trying to do doesn't make any sense, but at the moment it's my best guess.
    I realize this is a pretty long post and the class, while not exactly big, also implies a bit of reading of its own. But if anyone could give me any answers that are new to me, I'd be hugely grateful. Right now I'm kind of stuck, and just setting up the service and letting our customer test on it is a somewhat slow approach that can't match developing and testing on one and the same host.
    Preliminary thanks to everyone who took the effort to read this.
    //Start of code
    import java.util.Properties;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.IMetaData;
    import com.sap.mw.jco.IRepository;
    import com.sap.mw.jco.JCO;
    public class Test {
         public static void main(String[] args) {
              Test test = new Test();
              ServerThread serverThread = test.new ServerThread();
              serverThread.start();
              while(!serverThread.isReady) {
                   try {
                        Thread.sleep(5000);
                   } catch(final InterruptedException i) {
                        System.out.println("Rudely awakened");
              try {
    //               JCO.Function func = getSampleFunction(test, "STAY");
    //               serverThread.server.handleRequest(func);
    //               System.out.println(func.getExportParameterList().toXML());
    //               func = getSampleFunction(test, "STOP");
    //               serverThread.server.handleRequest(func);
    //               System.out.println(func.getExportParameterList().toXML());
                   final Properties clientProps = getClientProps();
                   JCO.Client client = JCO.createClient(clientProps);
                   client.connect();
                   IRepository rep = JCO.createRepository("1", client);
                   IFunctionTemplate templ = rep.getFunctionTemplate("TEST_FUNC");
                   JCO.Function function = templ.getFunction();
                   function.getImportParameterList().setValue("STAY", "FIELD1");
                   client.execute(function);
                   JCO.Function function2 = templ.getFunction();
                   function2.getImportParameterList().setValue("STOP", "FIELD1");
                   client.execute(function2);
              } catch(final Exception e) {
                   e.printStackTrace(System.out);
                   serverThread.requestStop();
                   while(serverThread.isAlive) {
                        try {
                             Thread.sleep(5000);
                        } catch(final InterruptedException i) {
                             System.out.println("Rudely awakened");
              } finally {
         private static Properties getClientProps() {
              final Properties props = new Properties();
              props.setProperty("jco.client.client", "100");
              props.setProperty("jco.client.user", "");
              props.setProperty("jco.client.passwd", "");
              props.setProperty("jco.client.lang", "");
              props.setProperty("jco.client.sysnr", "00");
              props.setProperty("jco.client.ashost", "/H/localhost/S/sapgw00");
              props.setProperty("jco.client.gwhost", "localhost");
              props.setProperty("jco.client.gwserv", "sapgw00");
              return props;
         public class ServerThread extends Thread {
              public void run() {
                   isAlive = true;
                   IRepository repos = new TestRepository("testrep");
                   repos.addFunctionInterfaceToCache(getFunctionInterface());
                   server = new TestServer(repos);
                   server.start();
                   System.out.println("Server successfully started");
                   isReady = true;
                   while(!stop) {
                        try {
                             Thread.sleep(1000);
                        } catch(final InterruptedException i) {
                             System.out.println("Wouldn't let me sleep...");
                        stop = server.stopRequested;
                   server.stop();
                   isAlive = false;
                   System.out.println("Server successfully stopped");
              public void requestStop() {
                   server.requestStop();
              public TestServer server;
              public boolean isReady = false;
              public boolean isAlive = false;
         public class TestServer extends JCO.Server {
              public TestServer(IRepository rep) {
                   super("localhost", "sapgw00", "PROGID", rep);
              public void handleRequest(JCO.Function fct) {
                   try {
                        JCO.ParameterList importParams = fct.getImportParameterList();
                        final String importXML = importParams.toXML();
                        System.out.println("XML representation of import parameters: ");
                        System.out.println(importXML);
                        final String input = importParams.getString("FIELD1");
                        System.out.println("FIELD1 value: " + input);
                        JCO.ParameterList exportParams = fct.getExportParameterList();
                        if(input.equals("STOP")) {
                             exportParams.getField("FIELD2").setValue("OK");
                             stopRequested = true;
                   catch(JCO.AbapException ex) {
                        throw ex;
                   catch(Throwable t) {
                        throw new JCO.AbapException("SYSTEM_FAILURE", t.getMessage());
              public boolean checkAuthorization(String functionName, int authorMode, String partner, byte[] key) {
                   System.out.println(functionName + " " + partner);
                   return true;
              public void requestStop() {
                   stopRequested = true;
              public boolean stopRequested = false;
         public class TestRepository extends JCO.BasicRepository implements IRepository {
              public TestRepository(String name) {
                   super(name);
         public static IMetaData getFunctionInterface() {
              JCO.MetaData metaData = new JCO.MetaData("TEST_FUNC");
              metaData.addInfo("FIELD1", IMetaData.TYPE_STRING, 4);
              metaData.setFlags(0, IMetaData.IMPORT_PARAMETER);
              metaData.addInfo("FIELDX", IMetaData.TYPE_STRING, 8);
              metaData.setFlags(1, IMetaData.IMPORT_PARAMETER & IMetaData.OPTIONAL_PARAMETER);
              metaData.addInfo("FIELD2", IMetaData.TYPE_STRING, 2);
              metaData.setFlags(2, IMetaData.EXPORT_PARAMETER);
              return metaData;
         public static JCO.Function getSampleFunction(Test test, String s) {
              TestRepository testRep = test.new TestRepository("testrepository");
              testRep.addFunctionInterfaceToCache(getFunctionInterface());
              JCO.Function func = testRep.getFunctionTemplate("TEST_FUNC").getFunction();
              func.getImportParameterList().setValue(s, "FIELD1");
              return func;
         private static boolean stop = false;

    If I understood you correctly, you want to provide a "service" that can be called from SAP. To provide this service you've chosen to implement an (external) RFC server program via JCo. One common method for RFC server programs is to register in SAP on the gateway - you do this by supplying the three parameters
    <ol>
    <li><b>jco.server.gwhost</b> -  SAP gateway host on which the server should be registered (so this would be the server name or IP address of the SAP gateway; localhost is only correct, if your RFC server program runs on the same server as the SAP gateway)</li>
    <li><b>jco.server.gwserv</b>  - Gateway service, i.e. the port on which a registration can be done</li>
    <li><b>jco.server.progid</b> - Program ID under which your RFC server program can be reached (free, made-up case sensitive name, that should represent the service your RFC server is providing)</li>
    </ol>
    So essentially you're creating a listener, that is registered in SAP and waits for any invocations. Within SAP they will define a <i>RFC destination</i>, which basically represents a TCP/IP connection pointing to the SAP gateway where you registered with the given program ID. If you want more details, check the SAP help pages for <a target="_blank" href="http://help.sap.com/saphelp_nw04/helpdata/en/22/04262b488911d189490000e829fbbd/content.htm">RFC destinations</a> (you're looking for destination type <b>T</b>, see explanations <a target="_blank" href="http://help.sap.com/saphelp_nw04/helpdata/en/22/042652488911d189490000e829fbbd/content.htm">here</a>).
    Usually gateway host and service (port) are given to you by the SAP basis folks and you tell them which program ID you're using. They will then enter those parameters in an RFC destination of type <b>T</b> in SAP. So no need for any of the client parameters you've mentioned. Although, I'd like to repeat, it's usually handy to also have SAP logon parameters maintained on your RFC server program, so that you can utilize the repository data from SAP (might be irrelevant in your case).
    Hope this clarifies it a bit...

  • E66 - "Maximum number of connections in use. Clos...

    When I try to use the web or Google Maps I get an error message: "Maximum number of connections in use. Close an active connection first."
    I suspect it's related to having a connection going for automatic email but I did not have this message on my N78 or my 6120 classic. I suspect it's NOT related to my service provider since it works fine with the other phones.
    The window that lets you close the active connections only has one to close. It crashes Google Maps pretty hard too.
    I've got the e66-2 (NAM version) I don't know if that makes a difference. Any firmware upgrade for the e66-2 yet?
    Any workaround ideas?
    6133>6131>6120c>N82>N78>e66
    Solved!
    Go to Solution.

    Try quitting the active connection and starting a connection on Google Maps first, the next time. This is not abnormal. And are you sure that you used the same provider and were able to do the same thing without closing connections in the other devices ? In my experience, this is network related.
    Mobile Royale - Latest News, Reviews and Software for Mobiles
    Aero Everyday - Aviation News and Insights
    GoMobile Forums-The best mobile technology discussions
    Please visit http://alifeofmisery.blogspot.com or www.miserylife.tk and help someone smile.
    Dreaming of a 5320XpressMusic - 128MB RAM makes up for the 2MP cam !

  • Maximum number of connections in use?! -E71

    Hi, I have this problem when I try to connect to the internet through any program. Before you rush to reply, I WANT to have multiple programs using the internet at the same time. I find it completely idiotic having to close Nokia Messaging to open my web browser. I want to be able to run Nimbuzz while running Nokia Messaging (example). Funny thing is, if I select OK when it asks me to close a connection, and then just cancel, everything works ok!! Well, for a while, and then the message pops up again.
    Come on Nokia, it's just a simple solution, how hard can it be?
    PS. Using E71 with the latest firmware (200)

    You can use multiple applications using the internet at any time but ONLY one access point can be in use.
    you cant be connected with more then one access point therefore if the different applications is set up to use different access points then you will have the maximum number of connection issues.
    Just like the Computer if you are connected to the internet and you connect your phone as a modem the connection from your phone will overwrite the connection and be the default connection. 
    You may change the settings in the individual applications in the options > settings (may vary from applications)
    Mark me a KUDOS if this has helped...

  • Nokia N8-00 'maximum number of connections in use'

    Hi,
    I have creted another APN in the Destinations-Internet settings. Put this APN on priority 1. Then I se internet an it is ok. But when I open Nokia Maps or another App. Sometimes it tries to connect to the old APN then says 'maximum number of connections in use'. Asking me for confirmation to close one connection.
    So I move all APN's and Wireless connections out of the Destination Internet. Except for the new on that I want. Still the same message From time to time. How to stop thi message. Deleting an APN is not a solution I am looking for otherwise I would have done that.
    Any help is appreciated.

    So the on off method I posted earlier did not work. The first APN is still tring to be accessed by some apps after the phone is switched off and on again. The other things I tried..
    - Removed the APN restriction and renamed the first APN. When I start the APP it now gives me a warning and lets me choose the APN. I choose the second one so greate. Close the APP. Now when I rename the fisr APN to the original name. APPS try to access it again and I get that original error.
    The only thing I could do is configure the first APN name with the actual Access Point of the second APN. This worked All apps are accessing the first APN whaich was reconfigured to look like the new Second APN. 
    This is not a solution again it is a workaround. Does anyone-else have this problem. Or am I the only one who is configuring multiple APNs. Since my provider has multiple APNs.
    I would have thought that this phone supports Multiple PDP contexts, or Secondary PDP context. It was defined in the initial 3GPP specs way back in 2003ish. Nokia can you confirm???
    Cheers Peps!

  • Nokia E90 - Maximum number of connections in use e...

    I invariably get the error - Maximum number of connections in use. Please close open connection - (this is not the exact verbiage of the message) when i connect to the gprs / wap. this started occuring after i updated my firmware from 200.x.x to 210.34.75.
    The funniest part is that the application would connect to wap / gprs if i select cancel and ignore the message and continue.
    If i select Yes, then i will be forced to close at least one application which is connected to the wap / gprs
    I have different access points configured for each application and hence i see no reason for this error message.
    Also, i never had this issue with this phone before, when i was using the same setup; separate access points for the applications which use gprs / wap.
    Please advice as to how i can get rid of this message popping up every time i use wap / gprs.
    Please help....
    Also are there any good navigation softwares with Maps for India available, so that i can use it on my E90 and N82.

    Every time you up-date the firmware, you get from your network opperator the settings for various access points (Internet, MMS, Vodafone Live, whatever....) This leads to duplicates (or even mode) access-points. Moreover, some of these access points are saved as "default" access point in various applications. This is where the mess starts.
    To clean-up the mess, you first have to REMOVE all duplicate access points and keep only one access point for each purpose: Internet connection, MMS, Live (if you are are on Vodafone), etc. After this, you will probably get messages from various applications to define a new default access point. And things will be sorted our automatically.
    Hope this helps, even though it might not be simple for some.
    2110i, 6150, 6210, 6310i, 6670, 9300, 9300i, E90, E72, HTC Touch Pro2, Samsung Galaxy S, Samsung Galaxy S II

  • Ora-00020 maximum no .of connections exceeded

    Hi All,
    I tried to connect the production Db is says Maximum number of connections exceeded.
    How to overcome this situation.
    I stoppped and bounced the Db.
    The process paramter in pfile is 50
    Is there any to overcome this

    c:\sql>oerr ora 00020
    00020, 00000, "maximum number of processes (%s) exceeded"
    *Cause:  All process state objects are in use.
    *Action: Increase the value of the PROCESSES initialization parameter.
    Increasing the PROCESSES parameter as suggested by the error information would remove the issue.
    If the database has been working fine for an extending period of time without this error you should consider finding out what caused the increase so you can set parameter appropriately. Could be an increase in use or an application leaking connections.

  • Maximum no of connections exceeded. Can not connect

    We are getting this error: maximum no of connections exceeded. I tried to login from sqlplus as / sysdba but getting same error. What is the best way to login to Oracle and kill some sessions?
    Oracle Version: 11g

    I tried to login from sqlplus as / sysdba but getting same errorThen you are not logged onto OS as same user (oracle?) that owns Oracle software directory.
    If Windows the post results from command below
    SET
    If some flavor Unix post results from command below
    env | sort
    Post Operating System (OS) name & version for DB server system.
    Post results of
    SELECT * from v$version
    Edited by: sb92075 on Dec 1, 2009 10:31 AM

  • GUI connection error MAXIMUM NUMBER OF CONNECTION HANDLES REACHED

    Dear Experts
    while logging on to GUI7.10 I am getting following error
    MAXIMUM NUMBER OF CONNECTION HANDLES REACHED'
    'MAXIMUM NUMBER OF HANDLES REACHED'. 'NO MORE MEMORY IS AVAILABLE'.
    'DO YOU WANT TO SEE DETAILED ERROR DESCRIPTION?'
    When i click on yes to the question above, i get the following:
    'COMPONENT = DPTM'
    'RELEASE = 7.10'
    'VERSION = 10'
    'RETURN CODE= -16'
    'Counter = 3
    This error is not allowing me work.
    Does anyone have a solution?

    Hi,
    I am having the same issue. Did you resolve the issue.
    Please let me know
    Regards

  • Exception:exceeded the configured maximum no of connection!!!!

    Folks
    I need some urgent help please,
    I have developed an application that sends messages in XML Format to the
    Server and the server sends a response back.
    A new request is sent by the client as soon as it receives a response from the
    client
    So if I sends Request A ,I get a response back for request A.
    Then I send Request B,I get a response back for request B
    No suddenly while sending Request C the system halted.
    On checking the Error I encountered a strange IO Exception thrown
    'Java.io.IOException:exceeded the configured maximum number of connections"
    Please can anyone tell me what this means?
    I have an HTTPWriter class that invokes the Server
    public void sendRequest(byte[] str) {
    try {
    urlConnect(url,str);
    }catch(IOException e) {
    String eIs = e.toString();
    Registry.getAlertError("Connection Error", eIS);
    Where eIS is the error message described above.
    Please can some suggest what shud i do? This is extremely urgent folks.
    An honest response is much appreciated

    I am closing each connection in the finally clause
    What shud I do?Re-examine your code to verify that each is being closed.

  • Maximum number of connections for MS Access with JDBC

    Hi guys,
    does anyone know about the maximum no. of connections that MS Access can have with JDBC...

    MS Access has not limit. It doesn't work that way.
    There is certainly going to be some resource limit however, if nothing else then memory will eventually run out.

  • Why do I keep getting the message "Unable to connect to Imap server you may have exceeded the maximum number of connections to this server.

    I already tried reducing the maximum number of connections to 1, but I'm still receiving the message. Is there anything else I can do?
    My computer is a Mac mini running OSX 10.9.5. Firefox is version 34.0.5.

    Ok, IMAP server almost universally allow multiple connections. Thunderbird as you would have observed uses 5 if they are available. As Airmail suggested, iphones just use more and more until they exhaust the available connections. There is no set maximum option.
    However there are other things that can consume connections and some may surprise you.
    Anti spam tools such as mail washer
    Anti virus programs in their anti spam or anti phishing roles
    Web mail.
    The wife sharing the same account on her laptop.
    That is from the top of my head. So could any of those apply.

Maybe you are looking for