wf1982
2010-05-20 17:42 阅读 268
已采纳

应用中程序通过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条回答 默认 最新

  • 已采纳
    u012386696 封宸落宇 2010-05-20 17:47

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

    点赞 评论 复制链接分享

相关推荐