Hi,
I am getting the following error .. i couldn't resolve it. please try to give me the solution for this.
Code:
2010-10-19 04:11:35,392 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -99999, SQLState: null
2010-10-19 04:11:35,392 [ERROR] JDBCExceptionReporter.logExceptions(78) - Non-atomic batch failure. The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.
2010-10-19 04:11:35,408 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -301, SQLState: 42895
2010-10-19 04:11:35,408 [ERROR] JDBCExceptionReporter.logExceptions(78) - Error for batch element #0: DB2 SQL error: SQLCODE: -301, SQLSTATE: 42895, SQLERRMC: 2
2010-10-19 04:11:35,408 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -301, SQLState: 42895
2010-10-19 04:11:35,408 [ERROR] JDBCExceptionReporter.logExceptions(78) - Error for batch element #1: DB2 SQL error: SQLCODE: -301, SQLSTATE: 42895, SQLERRMC: 2
2010-10-19 04:11:35,408 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -301, SQLState: 42895
2010-10-19 04:11:35,408 [ERROR] JDBCExceptionReporter.logExceptions(78) - Error for batch element #2: DB2 SQL error: SQLCODE: -301, SQLSTATE: 42895, SQLERRMC: 2
2010-10-19 04:11:35,408 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -301, SQLState: 42895
2010-10-19 04:11:35,408 [ERROR] JDBCExceptionReporter.logExceptions(78) - Error for batch element #3: DB2 SQL error: SQLCODE: -301, SQLSTATE: 42895, SQLERRMC: 2
2010-10-19 04:11:35,408 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -301, SQLState: 42895
2010-10-19 04:11:35,408 [ERROR] JDBCExceptionReporter.logExceptions(78) - Error for batch element #4: DB2 SQL error: SQLCODE: -301, SQLSTATE: 42895, SQLERRMC: 2
2010-10-19 04:11:35,408 [WARN ] JDBCExceptionReporter.logExceptions(77) - SQL Error: -301, SQLState: 42895
2010-10-19 04:11:35,408 [ERROR] JDBCExceptionReporter.logExceptions(78) - Error for batch element #5: DB2 SQL error: SQLCODE: -301, SQLSTATE: 42895, SQLERRMC: 2
2010-10-19 04:11:35,408 [ERROR] AbstractFlushingEventListener.performExecutions(301) - Could not synchronize database state with session
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2220)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2650)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:52)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1562)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
at org.springframework.orm.hibernate3.HibernateTemplate$35.doInHibernate(HibernateTemplate.java:979)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:367)
at org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:969)
at org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:962)
at com.dao.impl.InputMessageDAOHibernate.getInputMessageById(InputMessageDAOHibernate.java:43)
at sun.reflect.GeneratedMethodAccessor513.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:104)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
Thanks,
Bhagavathy Vinoth