把xml清一下,进tomcat控制台设置一下.

解决方案 »

  1.   

    参考一下,是不是得到了连接不放
    或者打开的游标(Statement)太多
    public boolean execute(String s) {
    Connection connection = getConnection();
    Statement statement = null;
    boolean flag2;
    try {
    statement = connection.createStatement();
    int i = statement.executeUpdate(s);
    if (i != 0) {
    boolean flag = true;
    return flag;
    }
    boolean flag1 = false;
    return flag1;
    } catch (SQLException sqlexception) {
    DebugWriter.writeDebug(
    "Exception in execute(String s) in " + sqlexception);
    flag2 = false;
    } finally {
    try {
    if (!connection.isClosed()) {
    connection.close();
    }
    } catch (SQLException e) {
    DebugWriter.writeDebug(
    "Error in closing connection in execute() "
    + "of QueryProcessor "
    + e);
    }
    }
    return flag2;
    }