you driver can't support so many concurrent connections.
please use other drivers.

解决方案 »

  1.   

    需要建两个连接才行,你用一个连接获得两个ResultSet可不行。
      

  2.   

    hehe, my answer is wrong! execuse me. hahai think you'd better use stored procedure in such situation.
      

  3.   

    是不是像crm2000(浏览器)的那样,要建两个连接?
      

  4.   

    dbconn.executeQuery(sql); //这个是你自己定义的吗?内部具体是怎么写的?
    ----------
    rs2 = dbconn.executeQuery(strTemp);
    while(rs2.next())//考虑可能数据量很大,所以在while里面在套用while
    {
       id = rs2.getString("id");
       ...
    }
    rs2.close();
    -----------
    在这里对应的Statement 也要关闭。
      

  5.   

    不用建两个连接。但要实例化两个Statement对象,分别发出SQL查询,返回各自的ResultSet。像你这样用一个dbconn来做是不行的。
      

  6.   

    你需要用两个不同的Statement就可以解决你的问题了。
    并不需要用两个connection。
      

  7.   

    一个statement只能对应一个resultset,你这样写是对应了两个resultset,
    重新改写一下吧
      

  8.   

    dbconn是如何写的?
    问题在dbconn!?