Can't Solve the "Too Many Clients Tasks" Problem

Hello All ,
I am creating a java desktop application , and i keep getting this error message:
[Microsoft][ODBC Microsoft Access Driver] Too many client tasks.
Any way ,i googled for this error and i found that because i creates many connections with database "more than 10 i think " , and that why i get this error message ..
The problem is that i do not know how to solve it , i tried to close the connections and i still getting the same error
I searched this forum , and someone suggest to close the connections and the statements and the resultset , but still not working
this is the code
public class Database_Mangement {
    private String User_ID;
    private String  user_name;
    private String password;
    private Admin_Connection c;
    private Connection conn;
    private Connection uni_conn;
    private ArrayList<Admin_TableEntry> data;
    public Database_Mangement() throws SQLException
      conn = null;
      uni_conn = null;
      conn = DriverManager.getConnection("jdbc:odbc:smart_database");// Connect with database no 1 through ODBC
      uni_conn = DriverManager.getConnection("jdbc:odbc:uni_database");//Connect with database no 2 through ODBC
      data = new ArrayList<Admin_TableEntry>();
     ArrayList<Admin_TableEntry> getInformation(int type)throws SQLException
         Statement stm = null;
         ResultSet getInfo = null;
       try{
         //get User Information
            if(type==1)
                 stm = conn.createStatement();
                String temp;
                temp = "select * from Students";
                getInfo = stm.executeQuery(temp);
            else if(type==2)
                 stm = uni_conn.createStatement();
                String temp;
                temp = "select * from Students";
                getInfo = stm.executeQuery(temp);
             while(getInfo.next())
                  Admin_TableEntry tempclass = new Admin_TableEntry();
                  if(type==1)
                  {tempclass.ID = getInfo.getString("Student_ID");
                   tempclass.Name =getInfo.getString("Student_Name");
                   tempclass.balance=getInfo.getString("Student_Balance");}
                  else if(type==2)
                      tempclass.ID =getInfo.getString("Student_ID");
                      tempclass.Name = getInfo.getString("First_Name");
                      tempclass.Last_Name =getInfo.getString("Last_Name");
                      tempclass.haveaccount=getInfo.getBoolean("Have_SmartCard");
                   data.add(tempclass);
catch(Exception e)
{System.out.println(e.getMessage();}
finally
     conn.close();
     uni_conn.close();
    stm.close();
//    getInfo.close();  Please note that i get an error message when i try to close the ResultSet
//and this is the error message
// Exception in thread "main" java.sql.SQLException: ResultSet is closed
               return data;
}and thank you for your time..

Thanks , but it only solved the ResultSet.close() problem ,
i am still getting the Too Many Clients error
and i am closing every connection i created after the end of every function .
i think i will switch to SQl server 2008 ... Hope it will be better

Similar Messages

  • SQLException :Too many client tasks problem

    Hi,
    In my Standalone Java Swing application, iam using connections to the MS-Access Database using Connection pooling..Iam initializing around 10 connections. After executing, performing some operations on application, after sometime...i get the SQL Exception Too many client tasks exception..
    I have checked my programs..iam closing all my result set and prepared statements..
    Where am i going wrong?
    Can anybody pls advice me to solve this problem?
    Regards,
    SRhodes.

    remember access has a max number of connection to handle which you are not closing. you close only resultset and statements
    ivo

  • MS ACCESS EXCEPTION TOO MANY CLIENT TASKS

    hi all
    i am developing an application in jsp for calll center users.
    there are 4 types of users who can interact with the appl
    in that 100 users of one type are interacting with it.
    i am using MS ACCESS for the database connection.
    it is working well when 10 users simultaneously logs in
    but when users increases its capacity degrades and it throws an exception TOO MANY CLIENT TASKS
    i have surfed through net and diffrent forums in that the soln is to switch to Mysql or SQL SERVER
    i had talked to the PM
    he needs in MS ACCESS itself
    i am using tomcat version 5 jdk 1.5

    LOVECODING wrote:
    hi all
    i am developing an application in jsp for calll center users.
    there are 4 types of users who can interact with the appl
    in that 100 users of one type are interacting with it.
    i am using MS ACCESS for the database connection.
    it is working well when 10 users simultaneously logs in
    but when users increases its capacity degrades and it throws an exception TOO MANY CLIENT TASKS
    i have surfed through net and diffrent forums in that the soln is to switch to Mysql or SQL SERVER
    i had talked to the PM
    he needs in MS ACCESS itselfSounds like your PM is screwed.
    i am using tomcat version 5 jdk 1.5Irrelevant.
    %

  • How can you fix the too many http redirects on the App Store

    Each time I use my App Store and click on top 25 or categories it says too many http redirects and I need help fixing this problem. This problem has been occurring for about 1-2 weeks

    I never had happen on app store but try this:
    Removing or clearing stored Safari content
    To clear your history from Safari, tap Settings > Safari > Clear History
    To clear all cookies from Safari, tap Settings > Safari > Clear Cookies and Data
    iOS 5 or later: To clear other stored information from Safari, tap Advanced > Website Data > Remove All Website Data
    referenced artilce HT1677. If it still does not work just use a computer and sync apps over or call apple support (you most likely will have to pay for it though).

  • I would like to update to Firefox 5.0.1, but I can't due to, too many things won't work with the version & will be disabled.

    I have wanted to update from 3.6.22, to 5.0.1, but can't do to the following reasons: I can't due to, too many things won't work with the version & will be disabled. They are: Microsoft. NET Framework Assistant 1.2.1, Iconix 3.90.1, HP Detect 1.0.5.1, Yahoo! Toolbar 2.3.5.201101200332202 (I don't care about Yahoo! Toolbar, because I don't use it!). As soon as these issues are fixed, I will be able to update, to the latest versions. These issues should be fixed & ready to work, before a new version is available. Thank you!

    Try using this extension to force compatibility.
    * https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Check and tell if its working.

  • Iphone 5 I do not go out or do not appear in upgrede AirPlay for ios 7.0.4 safari browser is not smooth and too long kept out the phrase "safari can not search for too many repetitions search"

    iphone 5 I do not go out or do not appear in upgrede AirPlay for ios 7.0.4 safari browser is not smooth and too long kept out the phrase "safari can not search for too many repetitions search"

    AphexTwin wrote:
    - no Apple input?
    Of course not.  Didn't you bother to read the TOU of this forum?  This is a USER TO USER technical support forum.  Apple doesn't post here.

  • Livecache issue LC10 BY0 Too many users (task limit)

    Hi,
    we have 2 application servers with one CI/DB, maxusertasks is 500
    we figured out a livecache pb, with the following error messages
    (db analyzer)
    LC10 BY0 > Too many users (task limit)
    User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SAPAPO_CLEANUP application pid
    User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SIM_SIMSESSION_CONTROL, pid 31685
    ...User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : APS_ACT_SCHEDULE, pid 3168
    before  we had the warining:  UTK5 is running 1804s, CPU 50% and CPU 100% (LC)
    we have checked knldiag/knldiagerr files and we are unable to find what is the root cause of the problem?
    How could we analyse this issue and find the treatment which triggers this issue?
    (trace: (SAPAPO/OM01)
    Thanks and Best regards,
    any help would be rewarded.
    Best regards,
    John
    Edited by: DCWE COREADMIN on Feb 11, 2011 6:54 PM

    Hello John,
    We need additional information about the liveCache version, OS of the liveCache server; more details about situation when the issue occurred. Run "x_cons <SID> sh all 10 10 > task_info.txt" when the issue occurred to collect more information.
    Check if the savepoint task is active - "x_cons <SID> show active".
    Is the issue occurred during high loading to te liveCache?
    Please review the SAP note 1391322 where the SPORADIC standstill in high load situation is also described, this issue is already fixed in the new liveCache releases.
    This situation occured sporadically. It will be helpful to login to your system for further analysis of the reported issue to get clear if your system run into this known problem because the savepoint was hanging, because of that you had  big amount of the user tasks which were hours in the state 'Prep-End' until the liveCache restart.
    < It could be the reason for "livecache issue LC10 BY0 > Too many users (task limit)", you reached the MAXUSERTASKS limit,
      the increasing of the liveCache parameter will not help you to solve the issue. >
    You checked/saw the Database Analyzer log :
    "User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SAPAPO_CLEANUP application pid
    User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SIM_SIMSESSION_CONTROL, pid 31685
    ...User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : APS_ACT_SCHEDULE, pid 3168
    You are SAP customer. As already recommended by Ivan, create the SAP message to the component "BC-DB-LVC" and get SAP support.
    Thank you and best regards, Natalia Khlopina

  • HT4623 My iPad2 is frozen, I am trying to download the upgrade software but fails after a while, how can I solve the issue. I have not upgraded the iPad 2 since I bought it.

    y iPad2 is frozen, I am trying to download the upgrade software but fails after a while, how can I solve the issue. I have not upgraded the iPad 2 since I bought it.

    Try and force iPad into Recovery Mode:
    1. Turn off iPad
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • I have to send large files like 5MB or biger via mobile phone, but in that cases phone is telling mi to plug in power. And when I do that, there is no problem to send the file. For smaller files there is no problem. How can I solve the problem? Because wh

    I have to send large files like 5MB or biger via mobile phone, but in that cases phone is telling mi to plug in power. And when I do that, there is no problem to send the file. For smaller files there is no problem. How can I solve the problem? Because when I'm not at home I can't plug in the power.

    hi,
    I am sending file from server to client i.e client will request for a file and service will send it back....... no socket connection is there...I am using JBOSS and apache axis.
    pls help me out.....
    Rashi

  • I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on th

    I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on the FTP server Blog.

    You haven't a problem. You simply did not read the iWeb Help :

  • MY IPOD IS RECOGNIZED BY THE PC (WIN 7) as a digital camera. ONE WEEK AGO WAS SEEN AS hd. How can I solve the problem?

    MY IPOD IS RECOGNIZED BY THE PC (WIN 7) as a digital camera. ONE WEEK AGO WAS SEEN AS hd. How can I solve the problem?

    First, try disabling the camera notification for the iPod.  See this article for details on how to do this.
    http://support.apple.com/kb/TS1500
    B-rock

  • How can i solve the contact itunes support issue when trying to make in app purchases

    how can i solve the "please contact itunes support" issue when trying to make in app purchases? my account has available credit from a gift card

    Click here and request assistance.
    (69559)

  • I HAVE TO INSTAL A PRODUCT C LLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON  ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??

    I HAVE TO INSTALL A PRODUCT CALLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON  ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??

    if you try to install an app that depends on adobe air, you should be prompted to download and install adobe air (unless it's already installed).
    you can download and install directly so you're not prompted by that app, Adobe - Adobe AIR

  • Every time i want to delete something  the iMac wants my password.. before it was not like this.. even with pictures.. how can i solve the problem so can delete my pics without my password all the time

    With everything i want to delete the iMac wants my password, before it was not like that, i'm getting crazy of it.. Even with pics he's asking for my password..
    How can i solve the problem and delete stuff without filling in my password every time..
    Already thnx for your support and help..

    Normally, that's caused because of a permissions problem. Have a look at this site > http://www.thexlab.com/faqs/trash.html#Anchor-Files-46919

  • How can i know the size of client

    hi
    how can i know the size of client ?
    SAP  ECC6
    OS AIX 5.2
    DB  ORACLE10g
    regards
    Karan

    Hi,
    1)Test run normal client copy .
    =DDt will give the size.
    2)There is SAP note for Client size analyse.
       Here is 118823
    3)run program YSTABSIZ.
    Regards,
    Muralidhar

Maybe you are looking for

  • 1st generation ipod touch to 5th generation music transfer

    I have a 1st generation iPod touch and I want to trade it in and purchase a 5th generation iPod touch. My computer completely died a few days ago, so I do not have access to my iTunes to sync my music to my new iPod touch. Is there a way I can transf

  • What is it with yield() that I don't understand?

    The following code starts a thread that awaits a notification that never comes. However, I was expecting the Foo main thread to enter the running state again sometime after it yields and print the last line "main running again", but not so. The progr

  • Problem in Hierarchy column

    Hi All, Currently working in OBIEE 11g, I have kept product hierarchy column ( Product Total - > Product Group -> Product Sub Group -> Product Detail ) as dashboard prompt, created graph with the following columns product hierarchy in report prompt l

  • Changing multiple video tags in iTunes7

    I feel fortunate to say that I've had no problems at all with iTunes 7, which seems to be a fabulous upgrade. I've upgraded all three of my Macs with no problem. I'm wondering, tho: All of the video I've ripped from concert CDs then converted for iPo

  • Purcahsign data tables for the extractors 2lis_02_scl and 2lis_02_itm

    Hi, Can any one tell in which tables the purchasing data is stored in R/3 Thanks in Advance Dru