cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco error

krish
Champ in-the-making
Champ in-the-making
00:24:06,027 ERROR [org.alfresco.repo.avm.OrphanReaper] Garbage collector error
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 3 actual row count: -1 expected: 1
        at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
        at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
        at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
        at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:91)
        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:86)
        at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:171)
        at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2271)
        at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2440)
        at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:73)
        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:144)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
        at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
        at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:954)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1099)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
        at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:749)
        at org.alfresco.repo.avm.hibernate.HistoryLinkDAOHibernate.getByDescendent(HistoryLinkDAOHibernate.java:67)
        at org.alfresco.repo.avm.OrphanReaper$1TxnWork.doWork(OrphanReaper.java:270)
        at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:176)
        at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:82)
        at org.alfresco.repo.avm.OrphanReaper.doBatch(OrphanReaper.java:340)
        at org.alfresco.repo.avm.OrphanReaper.run(OrphanReaper.java:213)
        at java.lang.Thread.run(Thread.java:595)


Please help me to fix this issue.Thanks in advance

-Krish
2 REPLIES 2

romschn
Star Collaborator
Star Collaborator
When are you getting this error? Is there any customization you have done? Is this occurring when you are trying to execute some custom functionality? Please provide more details.

kaynezhang
World-Class Innovator
World-Class Innovator
After alfresco 3.4 mybatis has been used as object relational mapping  tools instead of hibernate. So your alfresco version must be less than 3.4.
Why not upgrade it to latest version?