org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

XWiki.org JIRA | Bogdan Flueras | 5 years ago
  1. 0

    When I run the wiki30((execute runWeb.sh)) on a CLEAN repo and clean (empty tables) MYSQL DB, I get the following DB error: http://localhost:8080/xwiki/bin/save/XWiki/WysiwygEditorConfig] ERROR o.h.j.AbstractBatcher - Exception executing batch: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:90) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:189) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133) [hibernate-core-3.6.7.Final.jar:3.6.7.Final] at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:881) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:852) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.store.XWikiHibernateStore.deleteLock(XWikiHibernateStore.java:1698) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.store.XWikiCacheStore.deleteLock(XWikiCacheStore.java:521) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.doc.XWikiDocument.removeLock(XWikiDocument.java:5869) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:166) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:62) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:228) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-2.5.jar:2.5] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5.jar:2.5] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-3.3-SNAPSHOT.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:284) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-3.3-SNAPSHOT.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) [xwiki-platform-webdav-server-3.3-20111101.125003-108.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Server.handle(Server.java:346) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) [jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20] 2011-11-02 10:53:05,249 [http://localhost:8080/xwiki/bin/save/XWiki/WysiwygEditorConfig] WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 13008 in 3: Exception while deleting lock Wrapped Exception: Failed to commit or rollback transaction. Root cause [] com.xpn.xwiki.XWikiException: Error number 13008 in 3: Exception while deleting lock Wrapped Exception: Failed to commit or rollback transaction. Root cause [] at com.xpn.xwiki.store.XWikiHibernateStore.deleteLock(XWikiHibernateStore.java:1701) ~[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.store.XWikiCacheStore.deleteLock(XWikiCacheStore.java:521) ~[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.doc.XWikiDocument.removeLock(XWikiDocument.java:5869) ~[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:166) ~[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:62) ~[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:228) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet-api-2.5.jar:2.5] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5.jar:2.5] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-3.3-SNAPSHOT.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:284) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118) [xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-3.3-SNAPSHOT.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) [xwiki-platform-webdav-server-3.3-20111101.125003-108.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) [xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Server.handle(Server.java:346) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) [jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20] This is not normal and sould be fixed.

    XWiki.org JIRA | 5 years ago | Bogdan Flueras
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  2. 0

    12:29:26,367 ERROR http-10080-Processor15 http://www.xwiki.org/xwiki/bin/view/AdminGuide/Configuration AbstractFlushingEventListener:performExecutions:299 - Could not synchronize database state with session org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 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.engine.ActionQueue.executeActions(ActionQueue.java:230) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:611) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:585) at com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:859) at com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:219) at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:59) at com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:143) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:210) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    XWiki.org JIRA | 9 years ago | Ludovic Dubost
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
  3. 0

    Hibernate Tutorial for Beginners | The Sencide Blog

    sencide.com | 5 months ago
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [LPS-42094] Session timeout leads to exception when upload Multiple Documents - Liferay Issues

    liferay.com | 1 year ago
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  6. 0

    hibernate exception: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

    Stack Overflow | 4 years ago | Chailie
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

  1. mortalman7 1 times, last 4 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.StaleStateException

    Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

    at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched()
  2. Hibernate
    ActionQueue.executeActions
    1. org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    2. org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    3. org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:90)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    4. org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    5. org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    6. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    7. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:189)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    7 frames
  3. Hibernate
    SessionImpl.managedFlush
    1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    4. org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    4 frames
  4. Hibernate
    JDBCTransaction.commit
    1. org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133)[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
    1 frame
  5. com.xpn.xwiki
    XWikiAction.execute
    1. com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:881)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    2. com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:852)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    3. com.xpn.xwiki.store.XWikiHibernateStore.deleteLock(XWikiHibernateStore.java:1698)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    4. com.xpn.xwiki.store.XWikiCacheStore.deleteLock(XWikiCacheStore.java:521)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    5. com.xpn.xwiki.doc.XWikiDocument.removeLock(XWikiDocument.java:5869)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    6. com.xpn.xwiki.web.SaveAction.save(SaveAction.java:166)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    7. com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:62)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    8. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:228)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    9. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    9 frames
  6. struts
    ActionServlet.doPost
    1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)[struts-1.2.9.jar:1.2.9]
    2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)[struts-1.2.9.jar:1.2.9]
    3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)[struts-1.2.9.jar:1.2.9]
    4. org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)[struts-1.2.9.jar:1.2.9]
    4 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)[servlet-api-2.5.jar:2.5]
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)[servlet-api-2.5.jar:2.5]
    2 frames
  8. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    2 frames
  9. com.xpn.xwiki
    ActionFilter.doFilter
    1. com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    1 frame
  10. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  11. org.xwiki.wysiwyg
    ConversionFilter.doFilter
    1. org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)[xwiki-platform-wysiwyg-server-3.3-SNAPSHOT.jar:na]
    1 frame
  12. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  13. org.xwiki.container
    SavedRequestRestorerFilter.doFilter
    1. org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)[xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na]
    1 frame
  14. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  15. org.xwiki.container
    SetCharacterEncodingFilter.doFilter
    1. org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)[xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na]
    1 frame
  16. Jetty
    Dispatcher.forward
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)[jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725]
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    11. org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:284)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    12. org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    12 frames
  17. com.xpn.xwiki
    ActionFilter.doFilter
    1. com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118)[xwiki-platform-legacy-oldcore-3.3-20111101.124411-108.jar:na]
    1 frame
  18. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  19. org.xwiki.wysiwyg
    ConversionFilter.doFilter
    1. org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)[xwiki-platform-wysiwyg-server-3.3-SNAPSHOT.jar:na]
    1 frame
  20. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  21. com.xpn.xwiki
    XWikiDavFilter.doFilter
    1. com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)[xwiki-platform-webdav-server-3.3-20111101.125003-108.jar:na]
    1 frame
  22. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  23. org.xwiki.container
    SavedRequestRestorerFilter.doFilter
    1. org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)[xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na]
    1 frame
  24. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  25. org.xwiki.container
    SetCharacterEncodingFilter.doFilter
    1. org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)[xwiki-platform-container-servlet-3.3-20111101.122813-126.jar:na]
    1 frame
  26. Jetty
    HttpConnection.handle
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)[jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725]
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    14. org.eclipse.jetty.server.Server.handle(Server.java:346)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    15. org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    16. org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    17. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)[jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725]
    18. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725]
    19. org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
    19 frames
  27. GWT dev
    SelectChannelEndPoint$1.run
    1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)[jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725]
    2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)[jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725]
    2 frames
  28. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725]
    1 frame
  29. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)[na:1.6.0_20]
    1 frame