关于javax.servlet.ServletException的问题_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2157 | 回复: 0   主题: 关于javax.servlet.ServletException的问题        下一篇 
malu
注册用户
等级:列兵
经验:90
发帖:5
精华:0
注册:2014-4-29
状态:离线
发送短消息息给malu 加好友    发送短消息息给malu 发消息
发表于: IP:您无权察看 2015-2-9 11:17:05 | [全部帖] [楼主帖] 楼主

1.关于javax.servlet.ServletException的问题    

在调试一个程序时,tomcat报以下错误.不清楚是什么原因,希望大家能帮忙看看!

HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Insert request failed: INSERT INTO BOOK
(BOOK_ID,TITLE,REMOVED,RETURNDATE,AVAILABILITY,ADDEDDATE,`TYPE`,COCOUNT,RATING,AUTHOR,BORROWER_USER_ID_OID) VALUES
(?,?,?,?,?,?,?,?,?,?,?)
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:88)
root cause
javax.jdo.JDODataStoreException: Insert request failed: INSERT INTO BOOK
(BOOK_ID,TITLE,REMOVED,RETURNDATE,AVAILABILITY,ADDEDDATE,`TYPE`,COCOUNT,RATING,AUTHOR,BORROWER_USER_ID_OID) VALUES
(?,?,?,?,?,?,?,?,?,?,?)
NestedThrowables:
java.sql.SQLException: Data too long for column 'REMOVED' at row 1
org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2379)
org.jpox.store.StoreManager.insert(StoreManager.java:775)
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3512)
org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3485)
org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1146)
org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1201)
com.konarkdev.elibrary_manager.client.AddBookAction.execute(Unknown Source)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:88)
root cause
java.sql.SQLException: Data too long for column 'REMOVED' at row 1
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2001)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1168)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1279)
com.mysql.jdbc.Connection.execSQL(Connection.java:2281)
com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1419)
org.jpox.store.rdbms.ParamLoggingPreparedStatement.execute(ParamLoggingPreparedStatement.java:213)
org.jpox.store.rdbms.request.Request.executeUpdate(Request.java:88)
org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:283)
org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2379)
org.jpox.store.StoreManager.insert(StoreManager.java:775)
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3512)
org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3485)
org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1146)
org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1201)
com.konarkdev.elibrary_manager.client.AddBookAction.execute(Unknown Source)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:88)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.


--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论