HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.springframework.dao.DataAccessResourceFailureException: could not execute query; nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:610)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:378)
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:847)
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:839)
com.database.GenericDaoImpl.findALL(GenericDaoImpl.java:46)
com.service.UserServiceImpl.findAll(UserServiceImpl.java:42)
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:301)
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.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:610)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:378)
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:847)
org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:839)
com.database.GenericDaoImpl.findALL(GenericDaoImpl.java:46)
com.service.UserServiceImpl.findAll(UserServiceImpl.java:42)
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:301)
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.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
解决方案 »
- 怎么防止点击一次按钮触发多次下载事件?
- ajax在IE7下不显示数据,而IE8、火狐都是好用的,求助!!
- 各位专家我想让两系统共用一个session,如何做??
- 有在沈阳昂立公司上班的朋友吗?昂立说让我去实习3个月,白干活,是不是干的好坏都不留啊
- servlet启动时问题
- 急急急!请教高手投票系统中的问题
- 有谁开发过Internet浏览器
- 一个关于读写文件的问题,急!
- 自己做测试,上传文件时,工程目录是只读的,传不上去,怎么解决
- javaweb部署到liunx的tomcat下运行报错
- 紧急求助:麻烦兄弟们看看poi的XWPFTableCell中如何设置其中的内容为红色
- 学习restful,有没有好的网站和资料
// System.out.println("----------------"+this.getPersistClass().getName());
return this.getHibernateTemplate().find("from "+this.getPersistClass().getName());
}
应该是这样才行:
比如你的实体类名为 SysEntity
return this.getHibernateTemplate().find("from "+ SysEntity.class.getName() ) ;
我用的就是Mysql,遇到这种问题该怎么处理呢,有什么好的办法,请教一下。谢谢