有哪位知道问题所在吗?小弟急求中!!!
问题环境:oracle8i,weblogic8.1~
换用一种方式出同样错误,用javabean同样~,真的不知咋办?
Connction conn=DbConn.getConn();
Statement stmt=conn.createStatement();
ResultSet rs = stmt.executeQuery("select content from table1");
if(rs.next())
{
CLOB clob = ((OracleResultSet)rs).getCLOB(1);
try
{
oracle.sql.CLOB clob=((oracle.jdbc.driver.OracleResultSet)RsContent).getCLOB(1);
Reader isClob =clob.getCharacterStream();
BufferedReader bfClob = new BufferedReader(isClob);
String strClob = bfClob.readLine();//此句出错,错误与上一样
while(strClob != null)
{ sbResult.append(strClob); sbResult.append("&"); strClob = bfClob.readLine();
}
}
catch(NullPointerException ex)
{
content = "";
}
}
问题环境:oracle8i,weblogic8.1~
换用一种方式出同样错误,用javabean同样~,真的不知咋办?
Connction conn=DbConn.getConn();
Statement stmt=conn.createStatement();
ResultSet rs = stmt.executeQuery("select content from table1");
if(rs.next())
{
CLOB clob = ((OracleResultSet)rs).getCLOB(1);
try
{
oracle.sql.CLOB clob=((oracle.jdbc.driver.OracleResultSet)RsContent).getCLOB(1);
Reader isClob =clob.getCharacterStream();
BufferedReader bfClob = new BufferedReader(isClob);
String strClob = bfClob.readLine();//此句出错,错误与上一样
while(strClob != null)
{ sbResult.append(strClob); sbResult.append("&"); strClob = bfClob.readLine();
}
}
catch(NullPointerException ex)
{
content = "";
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货