我使用jdbc连接数据库,产生
 MESSAGE:Io exception: There is no process to read data written to a pipe.
java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Compiled Code))
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Inlined Compiled Code))
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Compiled Code))
        at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java(Compiled Code))
        at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java(Inlined Compiled Code))
        at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConnection.java(Inlined Compiled C
ode))
        at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.java(Compiled Code))
        at org.apache.commons.dbcp.DelegatingConnection.createStatement(DelegatingConnection.java(Compiled Cod
e))
        at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createStatement(PoolingDataSou
rce.java(Compiled Code))请问什么原因啊

解决方案 »

  1.   

    一直都是这样的,也一直没有问题,可以突然间日志中出现
    MESSAGE:Io exception: There is no process to read data written to a pipe.
    java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
    不知道什么原因,哪为大牛这是由什么原因导致的呢?
      

  2.   


            BasicDataSource bds = new BasicDataSource();
            bds.setDriverClassName("oracle.jdbc.driver.OracleDriver");
            bds.setUrl("jdbc:oracle:thin:@10.13.48.41:1521:frdb");
            bds.setUsername("sdb");
            bds.setPassword("sdb1");
            bds.setInitialSize(5);
            bds.setMaxActive(50);
            bds.setMaxIdle(30);
            bds.setMinIdle(0);
            bds.setMinEvictableIdleTimeMillis(1000 * 120);
            bds.setTimeBetweenEvictionRunsMillis(1000 * 60);
            bds.setMaxWait(1000 * 60);
      

  3.   

    估计是有什么超过数据库限制数了.比如连接数,cursor/session数,能确认是执行哪段代码的时候报的错么?
      

  4.   

    只有调用哪段代码 但是不能确定 是哪行
    因为代码被编译成jar包了,没有具体行数,所以才难定位啊。只能从问题现象上看。
    知道MESSAGE:Io exception: There is no process to read data written to a pipe.
    java.sql.SQLException: Io exception: There is no process to read data written to a pipe.
    能解释下吗?具体什么意思