Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Albert LeeAlbert Lee(Deactivated)Reporter
Benjamin YehBenjamin Yeh(Deactivated)Labels
Branch Version/s
6.1.xBackported to Branch
CommittedFix Priority
4Caused by
Other bug fixGit Pull Request
Bug Type
Regression BugComponents
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee
Albert Lee
Albert Lee(Deactivated)Reporter
Benjamin Yeh
Benjamin Yeh(Deactivated)Labels
Branch Version/s
6.1.x
Backported to Branch
Committed
Fix Priority
4
Caused by
Other bug fix
Git Pull Request
Bug Type
Regression Bug
Components
Fix versions
Affects versions
Priority
Zendesk Support
Zendesk Support
Zendesk Support
Created February 10, 2012 at 12:43 PM
Updated June 24, 2023 at 4:00 PM
Resolved October 3, 2012 at 5:40 PM
Checking in a document causes console error
Add Documents And Media Portlet
Add Basic Document
Checkout Document
Edit Document
Change file or title
Save and Checkin
System displays console errors.
Same thing happen when you save then checkin.
20:20:42,507 ERROR [JDBCExceptionReporter:75] Duplicate entry '10180-10196-1328905149400-10010-10476-2-0' for key 'IX_8F32DEC9' 20:20:42,510 ERROR [ParallelDestination:111] Unable to process message {destinationName=liferay/async_service, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portlet.social.service.SocialActivityLocalService.addActivity(com.liferay.portlet.social.model.SocialActivity,com.liferay.portlet.social.model.SocialActivity)@com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl, values={principalPassword=test, principalName=10196, companyId=10154}} com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.RuntimeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:108) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at com.liferay.portal.messaging.async.AsyncAdvice$2.run(AsyncAdvice.java:79) at com.liferay.portal.messaging.async.AsyncMessageListener.doReceive(AsyncMessageListener.java:30) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) ... 5 more Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:193) at com.liferay.portlet.social.service.persistence.SocialActivityPersistenceImpl.updateImpl(SocialActivityPersistenceImpl.java:544) at com.liferay.portlet.social.service.persistence.SocialActivityPersistenceImpl.updateImpl(SocialActivityPersistenceImpl.java:1) at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:257) at com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl.addActivity(SocialActivityLocalServiceImpl.java:233) at sun.reflect.GeneratedMethodAccessor1102.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59) at com.liferay.portal.messaging.async.AsyncAdvice$2.run(AsyncAdvice.java:76) ... 7 more Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:30) at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:122) at com.liferay.portal.kernel.dao.orm.ClassLoaderSession.flush(ClassLoaderSession.java:218) at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:95) at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:49) at com.liferay.portlet.social.service.persistence.SocialActivityPersistenceImpl.updateImpl(SocialActivityPersistenceImpl.java:539) ... 18 more Caused by: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:119) ... 22 more Caused by: java.sql.BatchUpdateException: Duplicate entry '10180-10196-1328905149400-10010-10476-2-0' for key 'IX_8F32DEC9' at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1257) at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:943) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268) ... 28 more