com.microsoft.sqlserver.jdbc.SQLServerException: 将 char 值转换为 JDBC 数据类型
INTEGER 时发生错误。
at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:473)
at com.microsoft.sqlserver.jdbc.ServerDTVImpl.getValue(dtv.java:2474)
at com.microsoft.sqlserver.jdbc.DTV.getValue(dtv.java:176)
at com.microsoft.sqlserver.jdbc.Column.getValue(Column.java:113)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getValue(SQLServerResultSet.java:1981)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getValue(SQLServerResultSet.java:1966)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getInt(SQLServerResultSet.java:2218)
at _shopping._personal_22dcenter._my_22dcollection__jsp._jspService(/shopping/personal-center/my-collection.jsp:636)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:181)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:217)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:159)
at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NumberFormatException: For input string: "null"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.valueOf(Integer.java:766)
at com.microsoft.sqlserver.jdbc.DDC.convertStringToObject(DDC.java:292)
at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:436)
... 16 more