首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

急這個jsp運行錯誤是什麼缘故啊

2011-12-22 
急!!!!!這個jsp運行錯誤是什麼原因啊500ServletExceptionjava.sql.SQLException:Theamountofdatareadfromt

急!!!!!這個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错误。
[解决办法]
大概据总数与你从数据中将要取得的数目不符!

热点排行