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

爱子情深 2015-08-17 02:32:23
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_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) 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
...全文
192 点赞 收藏 9
写回复
9 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
<a href="www.baidu.com">试试这个
回复
兔子托尼啊 2015-08-17
回复
爱子情深 2015-08-17
引用 6 楼 rui888 的回复:
编码看看呢/
编码的问题已经改过了
回复
兔子托尼啊 2015-08-17
回复
爱子情深 2015-08-17
引用 4 楼 dcs4569 的回复:
数据库查到的字段和你建的实体类的属性不匹配,好好检查一下。
那大神 那为什么我在本地访问是没有报错呢,这个网站我在本地的Windows7上访问没有任何问题,放到Linux服务器上之后才有的这个错误?? 大神 求说的详细一些,本人不是程序员,谢谢
回复
dcs4569 2015-08-17
数据库查到的字段和你建的实体类的属性不匹配,好好检查一下。
回复
爱子情深 2015-08-17
数据库的问题我改过了 但是还是有错误啊? 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.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
回复
JDBC: could not initialize a collection 确定是jdbc链接数据库的问题,然后你看看楼上的 ,看看你哪句sql的问题
回复
nicholasbobo 2015-08-17
root cause java.sql.SQLException: Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '=' 注意到这句了吗?你SQL语句有问题
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-08-17 02:32
社区公告
暂无公告