com.xpn.xwiki.store.migration.DataMigrationException

Data migration R35101XWIKI7645 failed

Solutions on the web7

  • via XWiki.org JIRA by Luca Cappello, 10 months ago
    Data migration R35101XWIKI7645 failed
  • via XWiki.org JIRA by Sorin Burjan, 10 months ago
    Data migration R40000XWIKI6990 failed
  • via XWiki.org JIRA by Sorin Burjan, 10 months ago
    Main database migration failed, it is not safe to continue!
  • Stack trace

    • com.xpn.xwiki.store.migration.DataMigrationException: Data migration R35101XWIKI7645 failed at com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration.migrate(AbstractHibernateDataMigration.java:111)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:621)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:546)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:493)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:296)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:421)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:666)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:813)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:746)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:736)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1438)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1481)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2215)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2247)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.render.XWikiMacrosMappingRenderer.loadPreferences(XWikiMacrosMappingRenderer.java:107)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.render.XWikiMacrosMappingRenderer.<init>(XWikiMacrosMappingRenderer.java:83)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.<init>(DefaultXWikiRenderingEngine.java:72)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.resetRenderingEngine(XWiki.java:1114)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:790)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.<init>(XWiki.java:738)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:399)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:486)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)[xwiki-platform-legacy-oldcore-4.1.3.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.doGet(ActionServlet.java:414)[struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)[javax.j2ee.servlet.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)[javax.j2ee.servlet.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)[com.ibm.ws.webcontainer.jar:na] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:184)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)[com.ibm.ws.webcontainer.jar:na] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)[xwiki-platform-wysiwyg-server-4.1.3.jar:na] at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:184)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)[com.ibm.ws.webcontainer.jar:na] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)[xwiki-platform-webdav-server-4.1.3.jar:na] at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:184)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)[com.ibm.ws.webcontainer.jar:na] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)[xwiki-platform-container-servlet-4.1.3.jar:na] at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:184)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)[com.ibm.ws.webcontainer.jar:na] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)[xwiki-platform-container-servlet-4.1.3.jar:na] at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:184)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)[com.ibm.ws.webcontainer.jar:na] at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)[com.ibm.ws.runtime.jar:na] at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)[com.ibm.ws.runtime.jar:na] at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)[com.ibm.ws.runtime.jar:na] at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)[com.ibm.ws.runtime.jar:na] at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)[com.ibm.ws.runtime.jar:na] at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)[com.ibm.ws.runtime.jar:na] at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)[com.ibm.ws.runtime.jar:na] at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)[com.ibm.ws.runtime.jar:na] at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)[com.ibm.ws.runtime.jar:na] at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)[com.ibm.ws.runtime.jar:na] at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)[com.ibm.ws.runtime.jar:na] at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)[com.ibm.ws.runtime.jar:na] Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: error executing work at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1214)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:1322)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.hibernate.R35101XWIKI7645DataMigration.hibernateMigrate(R35101XWIKI7645DataMigration.java:94)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration.migrate(AbstractHibernateDataMigration.java:109)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] ... 70 more Caused by: org.hibernate.exception.GenericJDBCException: error executing work at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)[hibernate-core-3.6.9.Final.jar:3.6.9.Final] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)[hibernate-core-3.6.9.Final.jar:3.6.9.Final] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)[hibernate-core-3.6.9.Final.jar:3.6.9.Final] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)[hibernate-core-3.6.9.Final.jar:3.6.9.Final] at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)[hibernate-core-3.6.9.Final.jar:3.6.9.Final] at com.xpn.xwiki.store.migration.hibernate.R35101XWIKI7645DataMigration$1.doInHibernate(R35101XWIKI7645DataMigration.java:99)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1208)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] ... 73 more Caused by: java.sql.SQLException: ORA-22858: invalid alteration of datatype at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:942)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1770)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1739)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:299)[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.execute(WSJdbcStatement.java:632)[com.ibm.ws.runtime.jar:na] at com.xpn.xwiki.store.migration.hibernate.R35101XWIKI7645DataMigration$R35101Work.execute(R35101XWIKI7645DataMigration.java:124)[xwiki-platform-legacy-oldcore-4.1.3.jar:na] at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)[hibernate-core-3.6.9.Final.jar:3.6.9.Final] ... 75 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    8 times, 3 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 16 seconds ago
    Unknown user
    Once, 16 seconds ago
    169 more bugmates