日期:2014-05-18  浏览次数:20784 次

急!!!!!這個jsp運行錯誤是什麼原因啊
500   Servlet   Exception
java.sql.SQLException:   The   amount   of   data   read   from   the   stream   is   not   =   length.
at   net.sourceforge.jtds.jdbc.ClobImpl.getSubString(ClobImpl.java:254)
at   net.sourceforge.jtds.jdbc.Support.convert(Support.java:319)
at   net.sourceforge.jtds.jdbc.JtdsResultSet.getString(JtdsResultSet.java:844)
at   net.sourceforge.jtds.jdbc.JtdsResultSet.getString(JtdsResultSet.java:1120)
at   _jsp._JavaWeb._fun._viewfirst__jsp._jspService(/JavaWeb/fun/viewfirst.jsp:134)
at   com.caucho.jsp.JavaPage.service(JavaPage.java:87)
at   com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
at   com.caucho.jsp.Page.service(Page.java:407)
at   com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:136)
at   com.caucho.server.http.Invocation.service(Invocation.java:268)
at   com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at   com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:333)
at   com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:266)
at   com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at   java.lang.Thread.run(Thread.java:534)


--------------------------------------------
Resin   2.0.b2   (built   Tue   Apr   17   09:41:58   PDT   2001)

------解决方案--------------------
它上面不是写了“java.sql.SQLException”,是你的SQL错误。
------解决方案--------------------
大概据总数与你从数据中将要取得的数目不符!