wf1982 2010-05-20 17:42
浏览 277
已采纳

应用中程序通过getBean方式 得到spring中 hibernate sessionFactory问题

应用中程序通过getBean方式 得到spring中 hibernate sessionFactory问题:

程序使用正常方式是正常的 然后报错的地方为session.save(Object)

模式已经在配置文件中设定, 且程序中hibernate sql语句正常。
但报错莫名出 现ADMINISTRATOR.I_FITDETAIL,始终找不到原因,请告知。

Hibernate: insert into ADMIN.fitdetail (fit_detail_flag, fit_detail_no, matereil_fit_id, materiel_count, materiel_key, materiel_name, materiel_no, materiel_price, materiel_unit, m_unit_id, total_price, fit_detail_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2010-05-20 17:43:01 WARN JDBCExceptionReporter:100 - SQL Error: -723, SQLState: 09000
2010-05-20 17:43:01 ERROR JDBCExceptionReporter:101 - DB2 SQL error: SQLCODE: -723, SQLSTATE: 09000, SQLERRMC: ADMINISTRATOR.I_FITDETAIL;-407;23502;TBSPACEID=2, TABLEID=535, COLNO=1
2010-05-20 17:43:01 ERROR AbstractFlushingEventListener:324 - Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not insert: [com.iss.delver.entity.FitDetail]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2285)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2678)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at com.ibm.crl.dis.dao.impl.DISHibernateDAOImpl.createBO(DISHibernateDAOImpl.java:57)
at com.ibm.crl.dis.service.DISBaseCRUDService.createBO(DISBaseCRUDService.java:32)
at com.ibm.crl.dis.util.DISFeedXMLUtil.invokeCRUDBOByDISService(DISFeedXMLUtil.java:625)
at com.ibm.crl.dis.util.DISFeedXMLUtil.crudBOTypeByDISService(DISFeedXMLUtil.java:585)
at com.ibm.crl.dis.util.DISFeedXMLUtil.parseReceivedFeedAndBuildReturnFeedForByBO(DISFeedXMLUtil.java:340)
at com.ibm.crl.dis.servlet.ReceiveDataFromDISServlet.parseReceivedFeedAndSendFeed(ReceiveDataFromDISServlet.java:68)
at com.ibm.crl.dis.servlet.ReceiveDataFromDISServlet.doPost(ReceiveDataFromDISServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.iss.delver.common.util.ResponseFilter.doFilter(ResponseFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.iss.delver.common.util.CashFilter.doFilter(CashFilter.java:40)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -723, SQLSTATE: 09000, SQLERRMC: ADMINISTRATOR.I_FITDETAIL;-407;23502;TBSPACEID=2, TABLEID=535, COLNO=1
at com.ibm.db2.jcc.c.fg.d(fg.java:1340)

  • 写回答

1条回答 默认 最新

  • 封宸落宇 2010-05-20 17:47
    关注

    应该有外键吧!看一下外键设置!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comsol温度场仿真无法模拟微米级激光光斑
  • ¥15 上传图片时提交的存储类型
  • ¥15 Ubuntu开机显示器只显示kernel,是没操作系统(相关搜索:显卡驱动)
  • ¥15 VB.NET如何绘制倾斜的椭圆
  • ¥15 在rhel8中安装qemu-kvm时遇到“cannot initialize crypto:unable to initialize gcrypt“报错”
  • ¥15 arbotix没有/cmd_vel话题
  • ¥20 找能定制Python脚本的
  • ¥15 odoo17的分包重新供应路线如何设置?可从销售订单中实时直接触发采购订单或相关单据
  • ¥15 用C语言怎么判断字符串的输入是否符合设定?
  • ¥15 通信专业本科生论文选这两个哪个方向好研究呀