首页上一页 1 下一页尾页 8 条记录 1/1页
老师,请帮忙看看这个错误的原因
发表在JavaWeb图书答疑
2015-03-08
是否精华
是
否
版块置顶:
是
否
设置时间:
非永久
永久
起始时间:
结束时间:
是否扣分:
是
否
这是已经部署好了,在浏览器运行时报的错误
HTTP Status 500 - An exception occurred processing JSP page /index.jsp at line 21
--------------------------------------------------------------------------------
type Exception report
message An exception occurred processing JSP page /index.jsp at line 21
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 21
18: -->
19: </style></head>
20: <body>
21: <html:form action="/userLogin.do">
22: <table width="449" height="238" align="center" background="images/index.jpg">
23: <tr>
24: <td colspan="3" height="76" > </td>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
org.apache.jsp.index_jsp._jspService(index_jsp.java:104)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:747)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.index_jsp._jspx_meth_html_005fform_005f0(index_jsp.java:122)
org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.39 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.39
HTTP Status 500 - An exception occurred processing JSP page /index.jsp at line 21
--------------------------------------------------------------------------------
type Exception report
message An exception occurred processing JSP page /index.jsp at line 21
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 21
18: -->
19: </style></head>
20: <body>
21: <html:form action="/userLogin.do">
22: <table width="449" height="238" align="center" background="images/index.jpg">
23: <tr>
24: <td colspan="3" height="76" > </td>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
org.apache.jsp.index_jsp._jspService(index_jsp.java:104)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:747)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.index_jsp._jspx_meth_html_005fform_005f0(index_jsp.java:122)
org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.39 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.39
精彩评论 8
2015-03-11
6L
没有见到struts.xml的文件,里面有applicationContext.xml,struts-config.xml和web.xml这三个文件,
struts-config.xml里面的内容是下面的
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<!-- 用户登录Form -->
<form-bean name="userLoginForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="pwd" type="java.lang.String" />
<form-property name="loginName" type="java.lang.String" />
<form-property name="id" type="java.lang.Integer" />
<form-property name="type" type="java.lang.String" />
<form-property name="mail" type="java.lang.String" />
<form-property name="pwd1" type="java.lang.String" />
</form-bean>
<!-- 学生信息Form -->
<form-bean name="stuUserForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="birthday" type="java.lang.String" />
<form-property name="stuNo" type="java.lang.String" />
<form-property name="tel" type="java.lang.String" />
<form-property name="specialtyId" type="java.lang.String" />
<form-property name="addr" type="java.lang.String" />
<form-property name="stuName" type="java.lang.String" />
<form-property name="stuSex" type="java.lang.String" />
<form-property name="id" type="java.lang.Integer" />
<form-property name="homeAddr" type="java.lang.String" />
</form-bean>
<!-- 专业信息Form -->
<form-bean name="specialtyForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="id" type="java.lang.Integer" />
<form-property name="isFinish" type="java.lang.Integer" />
<form-property name="name" type="java.lang.String" />
<form-property name="langthYear" type="java.lang.String" />
<form-property name="enterYear" type="java.lang.String" />
</form-bean>
<!-- 课程信息Form -->
<form-bean name="courseForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="id" type="java.lang.Integer" />
<form-property name="courseInfo" type="java.lang.String" />
<form-property name="isFinish" type="java.lang.Byte" />
<form-property name="name" type="java.lang.String" />
<form-property name="teacherInfo" type="java.lang.String" />
<form-property name="credit" type="java.lang.Short" />
<form-property name="addr" type="java.lang.String" />
<form-property name="specialtyId" type="java.lang.Integer" />
<form-property name="teacherName" type="java.lang.String" />
<form-property name="schooltime" type="java.lang.String" />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards/>
<action-mappings>
<!-- 处理用户登录页面请求 -->
<action type="org.springframework.web.struts.DelegatingActionProxy"
name="userLoginForm" path="/userLogin" scope="request">
<forward name="index" path="/index.jsp" />
<forward name="manager" path="/manager/manager.jsp" />
<forward name="welcome" path="/stu/welcome.jsp" />
<forward name="addStuInfo" path="/stu/addStuInfo.jsp" />
</action>
<!-- 处理显示学生基础信息请求 -->
<action attribute="stuUserForm" input="/stu/stuInfo.jsp" name="stuUserForm"
path="/stuUser" scope="request" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="welcome" path="/stu/welcome.jsp" />
<forward name="exit" path="/index.jsp" redirect="true" />
<forward name="selected" path="/stu/selected.jsp" />
<forward name="select" path="/stu/select.jsp" />
<forward name="courseInfo" path="/stu/courseInfo.jsp" />
</action>
<!-- 处理用户注册请求 -->
<action path="/reg" scope="request" name="userLoginForm"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="reg" path="/reg.jsp" />
<forward name="addStuInfo" path="/stu/addStuInfo.jsp" />
</action>
<!-- 处理修改密码请求 -->
<action path="/updatePwd" name="userLoginForm" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="updatePwd" path="/updatePwd.jsp" />
<forward name="stuUpdatePwd" path="/stu/stuUpdatePwd.jsp"></forward>
</action>
<!-- 处理与专业信息有关请求 -->
<action path="/specialty" attribute="specialtyForm" scope="request"
name="specialtyForm" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="showSpecialty" path="/manager/showSpecialty.jsp" />
</action>
<!-- 处理与课程信息有关请求 -->
<action path="/course" scope="request" name="courseForm"
parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="addCourse" path="/manager/addCourse.jsp" />
<forward name="showCourse" path="/manager/showCourse.jsp" />
<forward name="courseInfo" path="/manager/courseInfo.jsp" />
</action>
<!-- 处理学生模块相关请求 -->
<action path="/statInfo" parameter="method" name="courseForm"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="showStat" path="/manager/showStat.jsp" />
<forward name="stuList" path="/manager/stuList.jsp" />
</action>
<!-- 处理学生修改密码请求 -->
<action path="/stuP" parameter="/stu/stuUpdatePwd.jsp"
type="org.apache.struts.actions.ForwardAction"></action>
</action-mappings>
<!-- 加载Spring插件 -->
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>
</struts-config>
struts-config.xml里面的内容是下面的
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<!-- 用户登录Form -->
<form-bean name="userLoginForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="pwd" type="java.lang.String" />
<form-property name="loginName" type="java.lang.String" />
<form-property name="id" type="java.lang.Integer" />
<form-property name="type" type="java.lang.String" />
<form-property name="mail" type="java.lang.String" />
<form-property name="pwd1" type="java.lang.String" />
</form-bean>
<!-- 学生信息Form -->
<form-bean name="stuUserForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="birthday" type="java.lang.String" />
<form-property name="stuNo" type="java.lang.String" />
<form-property name="tel" type="java.lang.String" />
<form-property name="specialtyId" type="java.lang.String" />
<form-property name="addr" type="java.lang.String" />
<form-property name="stuName" type="java.lang.String" />
<form-property name="stuSex" type="java.lang.String" />
<form-property name="id" type="java.lang.Integer" />
<form-property name="homeAddr" type="java.lang.String" />
</form-bean>
<!-- 专业信息Form -->
<form-bean name="specialtyForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="id" type="java.lang.Integer" />
<form-property name="isFinish" type="java.lang.Integer" />
<form-property name="name" type="java.lang.String" />
<form-property name="langthYear" type="java.lang.String" />
<form-property name="enterYear" type="java.lang.String" />
</form-bean>
<!-- 课程信息Form -->
<form-bean name="courseForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="id" type="java.lang.Integer" />
<form-property name="courseInfo" type="java.lang.String" />
<form-property name="isFinish" type="java.lang.Byte" />
<form-property name="name" type="java.lang.String" />
<form-property name="teacherInfo" type="java.lang.String" />
<form-property name="credit" type="java.lang.Short" />
<form-property name="addr" type="java.lang.String" />
<form-property name="specialtyId" type="java.lang.Integer" />
<form-property name="teacherName" type="java.lang.String" />
<form-property name="schooltime" type="java.lang.String" />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards/>
<action-mappings>
<!-- 处理用户登录页面请求 -->
<action type="org.springframework.web.struts.DelegatingActionProxy"
name="userLoginForm" path="/userLogin" scope="request">
<forward name="index" path="/index.jsp" />
<forward name="manager" path="/manager/manager.jsp" />
<forward name="welcome" path="/stu/welcome.jsp" />
<forward name="addStuInfo" path="/stu/addStuInfo.jsp" />
</action>
<!-- 处理显示学生基础信息请求 -->
<action attribute="stuUserForm" input="/stu/stuInfo.jsp" name="stuUserForm"
path="/stuUser" scope="request" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="welcome" path="/stu/welcome.jsp" />
<forward name="exit" path="/index.jsp" redirect="true" />
<forward name="selected" path="/stu/selected.jsp" />
<forward name="select" path="/stu/select.jsp" />
<forward name="courseInfo" path="/stu/courseInfo.jsp" />
</action>
<!-- 处理用户注册请求 -->
<action path="/reg" scope="request" name="userLoginForm"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="reg" path="/reg.jsp" />
<forward name="addStuInfo" path="/stu/addStuInfo.jsp" />
</action>
<!-- 处理修改密码请求 -->
<action path="/updatePwd" name="userLoginForm" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="updatePwd" path="/updatePwd.jsp" />
<forward name="stuUpdatePwd" path="/stu/stuUpdatePwd.jsp"></forward>
</action>
<!-- 处理与专业信息有关请求 -->
<action path="/specialty" attribute="specialtyForm" scope="request"
name="specialtyForm" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="showSpecialty" path="/manager/showSpecialty.jsp" />
</action>
<!-- 处理与课程信息有关请求 -->
<action path="/course" scope="request" name="courseForm"
parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="addCourse" path="/manager/addCourse.jsp" />
<forward name="showCourse" path="/manager/showCourse.jsp" />
<forward name="courseInfo" path="/manager/courseInfo.jsp" />
</action>
<!-- 处理学生模块相关请求 -->
<action path="/statInfo" parameter="method" name="courseForm"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="showStat" path="/manager/showStat.jsp" />
<forward name="stuList" path="/manager/stuList.jsp" />
</action>
<!-- 处理学生修改密码请求 -->
<action path="/stuP" parameter="/stu/stuUpdatePwd.jsp"
type="org.apache.struts.actions.ForwardAction"></action>
</action-mappings>
<!-- 加载Spring插件 -->
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>
</struts-config>
2015-03-12
7L
老师,我现在已经可以打开浏览页面了,是struts的配置问题,但现在数据库可以读出来了,就是不能添加数据,请老师看一下
HTTP Status 500 - org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
--------------------------------------------------------------------------------
type Exception report
message org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
com.jwy.dao.SpecialtyDao.insert(SpecialtyDao.java:44)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy6.insert(Unknown Source)
com.jwy.action.SpecialtyAction.insert(SpecialtyAction.java:36)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019)
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937)
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922)
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94)
org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)
org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562)
org.hibernate.impl.SessionImpl.save(SessionImpl.java:550)
org.hibernate.impl.SessionImpl.save(SessionImpl.java:546)
org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:697)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
com.jwy.dao.SpecialtyDao.insert(SpecialtyDao.java:44)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy6.insert(Unknown Source)
com.jwy.action.SpecialtyAction.insert(SpecialtyAction.java:36)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.39 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.39
HTTP Status 500 - org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
--------------------------------------------------------------------------------
type Exception report
message org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.jwy.dto.Specialty]; uncategorized SQLException for SQL [insert into db_database10.tb_specialty (enterYear, name, langthYear, isFinish) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
com.jwy.dao.SpecialtyDao.insert(SpecialtyDao.java:44)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy6.insert(Unknown Source)
com.jwy.action.SpecialtyAction.insert(SpecialtyAction.java:36)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
java.sql.SQLException: Incorrect string value: '\xC2\xBD\xC3\x8C\xC3\x93...' for column 'name' at row 1
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019)
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937)
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922)
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94)
org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)
org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562)
org.hibernate.impl.SessionImpl.save(SessionImpl.java:550)
org.hibernate.impl.SessionImpl.save(SessionImpl.java:546)
org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:697)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
com.jwy.dao.SpecialtyDao.insert(SpecialtyDao.java:44)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy6.insert(Unknown Source)
com.jwy.action.SpecialtyAction.insert(SpecialtyAction.java:36)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.39 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.39