还有如果我通过查询分析器插入数据到表中:报错如下:
是很问题》》。。小弟急死了,(分不过在加)
java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]ResultSet can
not re-read row data for column 7.
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.validateColumnIndex(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.getString(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.getString(Unknown Source)
at _note._index__jsp._jspService(/note/index.jsp:118)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:534)

解决方案 »

  1.   

    抱什么错误?你的bean是否需要初始化?bean里是否有逻辑判断?
      

  2.   

    load.executeUpdate(sql不执行不报错。
    你的bean不需要初始化。bean里没有逻辑判断
      

  3.   

    ResultSet can not re-read row data for column 7./note/index.jsp:118  错误行
    好象是在执行下一次的rs.next()之前重复读取数据了
      

  4.   

    String sql="insert into guest(username,sex,email,qq,url,title,content,images,time) values('"+username+"','"+sex+"','"+email+"','"+qq+"','"+url+"','"+title+"','"+content+"','"+images+"',now())";now()是什么东西?这可不是asp哦!
      

  5.   

    除非你在该页面定义了now(),否则可能就是这个错!
      

  6.   

    看了看,你的那个now()好象在调用数据库本身的函数,这我就不是很了解了。我收回上面所说的话。