为什么同样的程序在jdeveloper9i下能运行正常而在jbuilder8下就不对呢??

03-04-10 shane1974

为什么同样的程序在jdeveloper9i下能运行正常而在jbuilder8下就不对呢??

程序如下:

Writer clobWriter = clobObject.getCharacterOutputStream();

char[] c_buffer = content.toCharArray();

clobWriter.write(c_buffer);

clobWriter.flush();

clobWriter.close();

在jdeveloper9i下运行一切正常,在jbuilder8下运行报错:

java.io.IOException: 无法从套接字读取更多的数据

at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java:716)

at oracle.jdbc.driver.OracleClobWriter.flushBuffer(OracleClobWriter.java:270)

at oracle.jdbc.driver.OracleClobWriter.flush(OracleClobWriter.java:204)

java.sql.SQLException: Io 异常: Software caused connection abort: socket write error

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)

at oracle.jdbc.driver.OracleConnection.commit(OracleConnection.java:1345)

不解ing...