又是hibernate的问题。求大神

问题描述

又是hibernate的问题。求大神

我用浏览器访问我的项目,服务器是tomcat,控制台没报错,但是浏览器页面上报了一堆错,如下:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.reflect.InvocationTargetException
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)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

解决方案

1、重启tomcat
2、设置断点,调试

解决方案二:

Hibernate的配置文件和jar包没有设置正确

解决方案三:

拷过来有没有更名???

时间: 2024-09-09 20:22:38

又是hibernate的问题。求大神的相关文章

ssh整合-spring整合hibernate做测试时没有报错,当三个整合时启动就报错啦,求大神指点!!

问题描述 spring整合hibernate做测试时没有报错,当三个整合时启动就报错啦,求大神指点!! 报的错误org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'ecsUnsigned' on target class [class $Proxy17] failed; nested exception is org.springframework.tran

rcale游标超出-hibernate处理的数据量太多,会报游标超出的错误。求大神帮忙

问题描述 hibernate处理的数据量太多,会报游标超出的错误.求大神帮忙 public List getMessageCount(String agentIdDate detectingTimeDate endTime) { StringBuffer sbf = new StringBuffer(); sbf.append(""select targetAddresssourceaddress count(targetAddress) from VpnRecord where 1=

hibernate 一对一注解-hibernate 一对一 唯一外键方式 注解,求大神帮忙?

问题描述 hibernate 一对一 唯一外键方式 注解,求大神帮忙? 例如: 有两张表: Husband(老公表):有字段:hid,hname Wife(老婆表):有字段:wid,wname,husbandid 老公和老婆是一对一,怎么配置一对一 唯一外键 注解,求助?

求大神解答 hibernate Multi-tenancy多租户connection空指针?

问题描述 求大神解答 hibernate Multi-tenancy多租户connection空指针? hibernate Multi-tenancy多租户为什么connection总是空指针? 运行错误详情 Exception in thread "main" java.lang.NullPointerException at org.hibernate.c3p0.internal.C3P0ConnectionProvider.getConnection(C3P0Connection

hibernate全外连接-hibernate中在一对多关系中全外连接语句怎么写,求大神

问题描述 hibernate中在一对多关系中全外连接语句怎么写,求大神 Employee 类与 Department类是多对一关系,分别对应于表s_emp 和 s_dept表 其中s_emp表中外键 dept_id, Employee中有dept成员,Department中有Set集合 hibernate.hbm.xml都配置好了,不知道怎么写 全外连接语句 String hql="select E.id,D.id from Employee E full join Department D&q

编码-oracle11g连接Hibernate遇到问题了。连着连着就断开了。求大神解答

问题描述 oracle11g连接Hibernate遇到问题了.连着连着就断开了.求大神解答 2015-9-5 0:04:42 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000006: Autocommit mode: false 2015-9-5 0:04:42 org.hibernate.service.jdbc.connectio

hibernate-刚学Hibernate,遇到数据插入不全的问题,求大神!

问题描述 刚学Hibernate,遇到数据插入不全的问题,求大神! 代码: package com.java.test; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import org.hibernate.service.ServiceRegistry; im

bean-急求大神大神门解答hibernate的问题

问题描述 急求大神大神门解答hibernate的问题 hibernate 属性关联的时候出现这样的问题 Error creating bean with name 'sessionFactory' Repeated column in mapping for entity: com.bz.entity.Uorder column: user_id (should be mapped with insert="false" update="false") 我只是在关联

c3p0+spring+hibernate在weblogic上部署,启动抛找不到类错,求大神指教

问题描述 c3p0+spring+hibernate在weblogic上部署,启动抛找不到类错,求大神指教 求大神指教,错误详细信息如下: Exception in thread "Timer-2" java.lang.NoClassDefFoundError: com/mchange/v2/util/ResourceClosedException at com.mchange.v2.resourcepool.BasicResourcePool$CheckIdleResourcesTa