如题:
try{
Connection conn=connect.getconn();//运行到这里没错,
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);这里有错,
sql="insert into UserInfo_table values('"+user.getMyloginname()+"','"+user.getMyusername()+"','"+user.getMypassword()+"','"+user.getMyemail()+"','"+user.getMytype()+"','"+user.getMystatus()+"','"+user.getMymark()+"','"+user.getMylevel()+"','"+user.getCreatTime()+"','"+user.getUpdateTime()+"','"+user.getDeleteTime()+"')";
sql=new String(sql.getBytes("ISO8859-1"),"GB2312");
int i=stmt.executeUpdate(sql);
return i;
}catch(SQLException SqlE){
SqlE.printStackTrace();
return -1;
}catch(Exception E){
E.printStackTrace();
return -2;
}
finally{
connect.close(stmt, rs, conn);
}
当程序运行到那里时就抱如下的错误:
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c921010, pid=2500, tid=3920
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x1010]
#
# An error report file with more information is saved as hs_err_pid2500.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
这是怎么了啊?要怎么解决啊?希望大家帮帮忙,在线等.
[此贴子已经被作者于2007-10-31 21:59:18编辑过]