Monday, 15 February 2010

http - Spring fails to update mysql -


I am sending a data from a C # client to a spring server via http post. But, when I send similar data to a Java client, there are thius errors.

Basic reason

org.springframework.orm.jpa.JpaSystemException: org.hibernate.exception.ConstraintViolationException: JDBC batch update could not be performed; Nested exception javax.preistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: JDBC Batch Update org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible (EntityManagerFactoryUtils.java:326) org.springframework.orm.jpa.DefaultJpaDialect not be executed .translateExceptionIfPossible (DefaultJpaDialect.java:120) org.springframework.orm.jpa.JpaTransactionManager.doCommit (JpaTransactionManager.java) 16. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit (Aebstpletfttronssnshodn Mandkkjawa: 754) org.springframework.transaction .support.AbstractPlatformTransactionManager.commit (AbstractPlatformTransactionManager.java:723) org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning (TransactionAspectSupport .java: 393) org.springframework.transaction.interceptor.TransactionInterceptor.invoke (TransactionInterceptor.java:120) Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:172) org.springframework.aop.framework.JdkDynamicAopProxy .invoke (JdkDynamicAopProxy.java:202)

On the Spring Server, I have been checked that there is a difference in the incoming data, but those There is no difference between. Why is this happening?

Your stacktrace clearly states that you constraintiolationException It is that you have defined some obstacles to save data in DB. When you're comfortable hitting your app with the client, you may be trying to save or update something that fails in any of your DB level obstacles.


No comments:

Post a Comment