-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: While Saving Data Exception occurs
PostPosted: Sat Oct 24, 2009 7:15 am 
Newbie

Joined: Sat Oct 24, 2009 6:59 am
Posts: 3
Hi All

I got the following exception while saving the record. Please advice me, how to solve this issue.

org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:630)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
com.vendor.audit.management.system.dao.impl.UserLoginDAOImpl.createAppUser(UserLoginDAOImpl.java:70)
com.vendor.audit.management.system.service.impl.UserLoginServiceImpl.createAppUser(UserLoginServiceImpl.java:43)
com.vendor.audit.management.system.action.admin.UserLoginAction.createUser(UserLoginAction.java:104)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)



java.sql.BatchUpdateException: ORA-04098: trigger 'SCOTT.USER_LOGIN_TRIGGER' is invalid and failed re-validation

oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9119)
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:420)
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
com.vendor.audit.management.system.dao.impl.UserLoginDAOImpl.createAppUser(UserLoginDAOImpl.java:70)


Thanks for Advance
Sasikumar


Top
 Profile  
 
 Post subject: Re: While Saving Data Exception occurs
PostPosted: Sat Oct 24, 2009 12:31 pm 
Newbie

Joined: Sat Oct 24, 2009 6:59 am
Posts: 3
I have removed the trigger on database, which created the initail stage of hit to the database. The new trigger is automatically created . then this problem is solved.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.