永发信息网

帮忙看一个异常.?。。很急啊?.

答案:2  悬赏:0  手机版
解决时间 2021-03-05 01:34
  • 提问者网友:凉末
  • 2021-03-04 21:23
异常信息如下:
我用的是Spring +Hibernate+Struts;
2009-09-13 12:23:00 Initializing a new instance of the dozer bean mapper.
org.springframework.orm.hibernate3.HibernateSystemException: ids for this class must be manually assigned before calling save(): pack.y2ssh.pojos.TStoeeOutput; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): pack.y2ssh.pojos.TStoeeOutput
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
at pack.y2ssh.daoimpl.t_store_outputDaoImpl.addt_Goods(t_store_outputDaoImpl.java:25)
at pack.y2ssh.serviceimpl.T_store_output_ServiceImpl.add_T_Store_output(T_store_output_ServiceImpl.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): pack.ssh.pojos.TStoeeOutput
at org.hibernate.id.Assigned.generate(Assigned.java:33)
最佳答案
  • 五星知识达人网友:英雄的欲望
  • 2021-03-04 22:51
你吧你异常最前面的那段给我
你这个好像是中间的吧??
ids for this class must be manually assigned before calling save():
这段也许有错
..你好好看看
全部回答
  • 1楼网友:玩世
  • 2021-03-04 23:16
提供的资料太少,单从心电图来看,有心肌缺血的现象,但要进行进一步的检查,必要时行冠状动脉造影明确有无冠心病。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯