server-求大神!! jsp访问之后就是介个样子,求大神看一下是我的环境什么地方配置错了

问题描述

求大神!! jsp访问之后就是介个样子,求大神看一下是我的环境什么地方配置错了
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: org.hibernate.exception.GenericJDBCException: could not initialize a collection: [cn.hongsys.web.dp_emp.bean.Employee.group#1]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
cn.hongsys.web.struts.filter.PrivilegeRequestProcessor.processActionPerform(PrivilegeRequestProcessor.java:43)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
cn.hongsys.web.struts.filter.SetCodeFilter.doFilter(SetCodeFilter.java:27)

root cause

org.hibernate.exception.GenericJDBCException: could not initialize a collection: [cn.hongsys.web.dp_emp.bean.Employee.group#1]
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
org.hibernate.loader.Loader.loadCollection(Loader.java:2022)
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:59)
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:587)
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83)
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1743)
org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:476)
org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:867)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:264)
org.hibernate.loader.Loader.doList(Loader.java:2228)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
org.hibernate.loader.Loader.list(Loader.java:2120)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)
cn.hongsys.web.dp_emp.service.impl.EmployeeServiceBean.getEmployeeByNameandPass(EmployeeServiceBean.java:53)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
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)
sun.proxy.$Proxy9.getEmployeeByNameandPass(Unknown Source)
cn.hongsys.web.dp_emp.struts.action.LogonOnEmployeeAction.execute(LogonOnEmployeeAction.java:24)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
cn.hongsys.web.struts.filter.PrivilegeRequestProcessor.processActionPerform(PrivilegeRequestProcessor.java:43)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
cn.hongsys.web.struts.filter.SetCodeFilter.doFilter(SetCodeFilter.java:27)

root cause

java.sql.SQLException: Illegal mix of collations (gbk_chinese_ciIMPLICIT) and (latin1_swedish_ciIMPLICIT) for operation '='
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
com.mysql.jdbc.Connection.execSQL(Connection.java:2978)
com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:930)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1024)
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
org.hibernate.loader.Loader.getResultSet(Loader.java:1808)
org.hibernate.loader.Loader.doQuery(Loader.java:697)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
org.hibernate.loader.Loader.loadCollection(Loader.java:2015)
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:59)
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:587)
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83)
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1743)
org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:476)
org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:867)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:264)
org.hibernate.loader.Loader.doList(Loader.java:2228)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
org.hibernate.loader.Loader.list(Loader.java:2120)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)
cn.hongsys.web.dp_emp.service.impl.EmployeeServiceBean.getEmployeeByNameandPass(EmployeeServiceBean.java:53)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
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)
sun.proxy.$Proxy9.getEmployeeByNameandPass(Unknown Source)
cn.hongsys.web.dp_emp.struts.action.LogonOnEmployeeAction.execute(LogonOnEmployeeAction.java:24)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
cn.hongsys.web.struts.filter.PrivilegeRequestProcessor.processActionPerform(PrivilegeRequestProcessor.java:43)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
cn.hongsys.web.struts.filter.SetCodeFilter.doFilter(SetCodeFilter.java:27)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.


Apache Tomcat/6.0.29

解决方案

这是 数据的问题你hibernate 实体类中使用了关联但是数据库中关联关系不存在

解决方案二:
报错里面写的很清楚了,

解决方案三:
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: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.hongsys.web.sys_privilege.bean.PrivilegeGroup#402888e54f16217f014f16221dc30001]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
cn.hongsys.web.struts.filter.PrivilegeRequestProcessor.processActionPerform(PrivilegeRequestProcessor.java:43)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
cn.hongsys.web.struts.filter.SetCodeFilter.doFilter(SetCodeFilter.java:27)

root cause

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.hongsys.web.sys_privilege.bean.PrivilegeGroup#402888e54f16217f014f16221dc30001]
org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:409)
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:171)
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)
org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)
org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:873)
org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:590)
org.hibernate.type.EntityType.resolve(EntityType.java:412)
org.hibernate.type.EntityType.nullSafeGet(EntityType.java:227)
org.hibernate.persister.collection.AbstractCollectionPersister.readElement(AbstractCollectionPersister.java:725)
org.hibernate.collection.PersistentSet.readFrom(PersistentSet.java:341)
org.hibernate.loader.Loader.readCollectionElement(Loader.java:1031)
org.hibernate.loader.Loader.readCollectionElements(Loader.java:669)
org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:614)
org.hibernate.loader.Loader.doQuery(Loader.java:724)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
org.hibernate.loader.Loader.loadCollection(Loader.java:2015)
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:59)
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:587)
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83)
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1743)
org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:476)
org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:867)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:264)
org.hibernate.loader.Loader.doList(Loader.java:2228)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
org.hibernate.loader.Loader.list(Loader.java:2120)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)
cn.hongsys.web.dp_emp.service.impl.EmployeeServiceBean.getEmployeeByNameandPass(EmployeeServiceBean.java:53)
sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
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)
sun.proxy.$Proxy9.getEmployeeByNameandPass(Unknown Source)
cn.hongsys.web.dp_emp.struts.action.LogonOnEmployeeAction.execute(LogonOnEmployeeAction.java:24)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
cn.hongsys.web.struts.filter.PrivilegeRequestProcessor.processActionPerform(PrivilegeRequestProcessor.java:43)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
cn.hongsys.web.struts.filter.SetCodeFilter.doFilter(SetCodeFilter.java:27)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.


Apache Tomcat/6.0.29
这是更改玩数据库之后的报错,求大神帮忙解决 !! 本人不不是程序员,求大神说的详细一些 应该怎么该,忘情大神不吝赐教 谢谢!!

解决方案四:
大神们 帮帮忙啦 我这上面催的急了 跪求大神啊 救命啊!11

解决方案五:
ID为402888e54f16217f014f16221dc30001的数据不存在

时间: 2024-10-03 09:00:39

server-求大神!! jsp访问之后就是介个样子,求大神看一下是我的环境什么地方配置错了的相关文章

springmvc 访问不能跳转到Controller 求大神 急急急

问题描述 springmvc 访问不能跳转到Controller 求大神 急急急 这是后台log: 21:50:55.307 [http-apr-8888-exec-6] DEBUG o.s.web.servlet.DispatcherServlet - DispatcherServlet with name 'springMVC' processing GET request for [/workload/addWorkload] 21:50:55.308 [http-apr-8888-exe

数据库-sql server 2008 综合题,求大神指点,我建了一部分表,大神在做的时候可按自己方便插入:

问题描述 sql server 2008 综合题,求大神指点,我建了一部分表,大神在做的时候可按自己方便插入: 因为综合题练得比较少不懂得怎样联系:大神回答时,尽量详细,多谢, 做的好的话,C币还可加: 具体要求: 某公司有很多类型的货车(小型货车,双轴货车,16轮货车等),货车要有货车号, 货车类型(小型货车,双轴货车,16轮货车),载重量,有很多司机,每个司机可开 多种类型的货车,司机要有司机号,姓名,地址,薪水,司机运输货物时有货物名称, 目的地,出发时间,返回时,要更新记录,有返回时间,

node js-Express node.js 如何访问一个域名 并返回数据求大神指教

问题描述 Express node.js 如何访问一个域名 并返回数据求大神指教 我是要去调用接口 (这个接口是别人写好了的 有自己的域名 我只要传参过去 接口就会返回json数据) 才刚学node.js 想想请教大神 给点思路 或者源代码

sql server-Sql server 多表连接,数据横向汇总问题,新手求大神讲解。

问题描述 Sql server 多表连接,数据横向汇总问题,新手求大神讲解. 表1字段是a,b,c. 表2字段是a,T1,T2,T3,T4,T5,T6,T7....T31,M1,M2,M3,M4,M5,M6,M7....M31, 其中 表2中的字段a关联表1的字段a, 循环表1然后根据关联将对应表1中a字段的2表数据横向聚合(T1...T31),(M1....M31),将聚合出来的(T1....T31)值赋值给1表的B字段,(M1....M31)的值赋值给表1的C字段 解决方案 UPDATE t

request-Request();Attribute()这都是什么意思?求大神帮忙解析下下边语句,新手求学习

问题描述 Request():Attribute()这都是什么意思?求大神帮忙解析下下边语句,新手求学习 Request():Attribute()这都是什么意思?求大神帮忙解析下下边语句,新手求学习.跪求大神给解释一下,详细点,并且给推荐个学习方向.跪谢 action: super.getRequest().setAttribute("sCKTGLList", sCKTGLList); super.getRequest().setAttribute("iSOZGRZSZLi

python IDLE 打不开 环境变量都配置对了,求大神帮助!谢谢!!!

问题描述 python IDLE 打不开 环境变量都配置对了,求大神帮助!谢谢!!! Microsoft Windows XP 版本 5.1.2600 版权所有 1985-2001 Microsoft Corp. C:Documents and SettingsAdministrator>C:Python27Libidlelibidle.py Traceback (most recent call last): File "C:Python27Libidlelibidle.py"

javascript-js事件代理问题 求大神啊 在线等!!!!谢谢大神,新年快乐!

问题描述 js事件代理问题 求大神啊 在线等!!!!谢谢大神,新年快乐! js事件代理 比如我的HTML布局是这样的 <div id="all"> <div id="share"> <div id="comment"> <div id="commentList"> </div> ...(N个标签) </div> </div> </div&

c++的问题-急求!有木有C++的大神,有木有string的高人~求帮忙呢?~

问题描述 急求!有木有C++的大神,有木有string的高人~求帮忙呢?~ 小弟写了一个程序,遇到一个很大的问题请帮忙呢,定义了两个string类型的变量,然后用在程序中出现了这样的问题.第一个string A 定义为全局变量,在第一个函数里面,用于接收API收到的const char *类型的参数.然后,在第二个函数里面,再次定义一个string B,并让B = A:此时程序执行到此处时B的结果出现错误,其返回值的前四位是随机的数然后才是A的值.不仅在赋值上如此,所有的对string类型的赋值

arraylist-关于ArrayList求大神为我解析以下几个问题,求大神细细道来,万分感激

问题描述 关于ArrayList求大神为我解析以下几个问题,求大神细细道来,万分感激 求大神为我解析以下几个问题:1.为什么保存的时候还要调用getList() ?2.为什么创建ArrayList?3.if()里什么意思?4. 第二段代码if{}最后一句什么意思?里边怎么就一个参数?5.第二段代码倒数第四句和第三句都什么意思?求大神细细道来,万分感激 public String getList() throws Exception { if ("""".equals