Prezados colegas,
Identifiquei um problema quando vou anexar. E o mesmo retorna com o seguinte erro:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL [insert into AnexoIndicador (arquivo_id, descricao, indicador_id, nome, id) values (?, ?, ?, ?, ?)]; Batch entry 0 insert into AnexoIndicador (arquivo_id, descricao, indicador_id, nome, id) values (62, Teste, 63, Teste, 14) was aborted. Call getNextException to see the cause.; nested exception is java.sql.BatchUpdateException: Batch entry 0 insert into AnexoIndicador (arquivo_id, descricao, indicador_id, nome, id) values (62, Teste, 63, Teste, 14) was aborted. Call getNextException to see the cause. org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:91) org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:257) org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424) org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:411) org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:370) org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:786) br.com.linkcom.sgm.dao.AnexoIndicadorDAO.saveOrUpdate(AnexoIndicadorDAO.java:119) br.com.linkcom.sgm.service.AnexoIndicadorService.salvaAnexoIndicadorDetalhe(AnexoIndicadorService.java:55) br.com.linkcom.sgm.dao.IndicadorDAO.updateSaveOrUpdate(IndicadorDAO.java:178) br.com.linkcom.neo.persistence.GenericDAO.saveOrUpdate(GenericDAO.java:233) br.com.linkcom.sgm.dao.IndicadorDAO.access$1(IndicadorDAO.java:1) br.com.linkcom.sgm.dao.IndicadorDAO$1.doInTransaction(IndicadorDAO.java:186) org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) br.com.linkcom.sgm.dao.IndicadorDAO.saveOrUpdate(IndicadorDAO.java:184) br.com.linkcom.sgm.dao.IndicadorDAO.saveOrUpdate(IndicadorDAO.java:1) br.com.linkcom.neo.service.GenericService.saveOrUpdate(GenericService.java:96) br.com.linkcom.sgm.service.IndicadorService.saveOrUpdate(IndicadorService.java:517) br.com.linkcom.sgm.controller.process.DistribuicaoPesosIndicadoresProcess.salvarPopUp(DistribuicaoPesosIndicadoresProcess.java:288) sun.reflect.GeneratedMethodAccessor1330.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) br.com.linkcom.neo.controller.MultiActionController.invokeNamedMethod(MultiActionController.java:511) br.com.linkcom.neo.controller.MultiActionController.handleRequestInternal(MultiActionController.java:373) org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139) org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658) br.com.linkcom.neo.controller.DispatcherServlet.doService(DispatcherServlet.java:55) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) br.com.linkcom.neo.authorization.AuthenticationControlFilter.doFilter(AuthenticationControlFilter.java:108) br.com.linkcom.neo.core.web.NeoFilter.doFilterInternal(NeoFilter.java:103) br.com.linkcom.sgm.util.RequestFilter.doFilterInternal(RequestFilter.java:45) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Como podemos resolver a falha?
desde já agradecida
Atenciosamente,
Nathalia Brito
Apache Tomcat/5.5.20
Autor: Nathalia Brito