Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9909

Concurrent database migration cause SOLR indexer to fail in place of waiting

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.4-milestone-1
    • Fix Version/s: 5.4-rc-1
    • Component/s: Old Core
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:

      • Setup a 4.5.4 XEM (with DW instalation) and install the Workspace Template + 3 subwikis
      • Migrate the wiki instance to 5.3
      • You will see stacktraces before the 5.3 DW kicks in
      • having only the main wiki does not reproduce the issue
      • I only reproduce this on Oracle using a slow machine, but I'm almost sure this is not an Oracle issue, but more a slowness of the machine issue. The other machines I tested on were much faster.

      It seems that db's migration is not finished before SOLR Indexer wants to start indexing, thus triggering db migrations in parallel.

      Here is a stacktrace

      Jan 21, 2014 10:42:22 AM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["http-bio-8080"]
      Jan 21, 2014 10:42:22 AM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
      Jan 21, 2014 10:42:22 AM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 485 ms
      Jan 21, 2014 10:42:22 AM org.apache.catalina.core.StandardService startInternal
      INFO: Starting service Catalina
      Jan 21, 2014 10:42:22 AM org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
      Jan 21, 2014 10:42:22 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/webapps/xwiki
      2014-01-21 10:42:40,596 [localhost-startStop-1] WARN  o.x.e.i.ServletEnvironment     - No permanent directory configured. Using temporary directory [/home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/work/Catalina/localhost/xwiki]. 
      2014-01-21 10:42:40,887 [localhost-startStop-1] INFO  o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server... 
      2014-01-21 10:42:40,887 [localhost-startStop-1] INFO  o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/work/Catalina/localhost/xwiki/solr 
      2014-01-21 10:42:42,275 [localhost-startStop-1] WARN  o.a.s.c.SolrCore               - New index directory detected: old=null new=/home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/work/Catalina/localhost/xwiki/solr/./data/index/ 
      2014-01-21 10:42:42,276 [localhost-startStop-1] WARN  o.a.s.c.SolrCore               - [xwiki] Solr index directory '/home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/work/Catalina/localhost/xwiki/solr/./data/index' doesn't exist. Creating new index... 
      2014-01-21 10:42:43,665 [localhost-startStop-1] INFO  o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server. 
      2014-01-21 10:42:47,904 [localhost-startStop-1] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.platform:xwiki-platform-workspace-ui-4.5.4] on namespace [wiki:xwiki] 
      2014-01-21 10:42:47,904 [localhost-startStop-1] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.enterprise:xwiki-enterprise-ui-all-4.5.4] on namespace [wiki:workspacetemplate] 
      2014-01-21 10:42:47,905 [localhost-startStop-1] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.enterprise:xwiki-enterprise-ui-all-4.5.4] on namespace [wiki:sorinello] 
      2014-01-21 10:42:47,905 [localhost-startStop-1] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.platform:xwiki-platform-wiki-manager-ui-4.5.4] on namespace [wiki:xwiki] 
      2014-01-21 10:42:47,907 [localhost-startStop-1] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.enterprise:xwiki-enterprise-ui-4.5.4] on namespace [wiki:xwiki] 
      2014-01-21 10:42:47,908 [localhost-startStop-1] WARN  ltInstalledExtensionRepository - Invalid extension [org.xwiki.manager:xwiki-manager-ui-4.5.4] on namespace [wiki:xwiki] 
      Jan 21, 2014 10:42:58 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom
      INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [9,688] milliseconds.
      Jan 21, 2014 10:42:58 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/webapps/docs
      Jan 21, 2014 10:42:58 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/webapps/ROOT
      Jan 21, 2014 10:42:59 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/webapps/host-manager
      Jan 21, 2014 10:42:59 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/webapps/manager
      Jan 21, 2014 10:42:59 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/webapps/examples
      Jan 21, 2014 10:42:59 AM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-8080"]
      Jan 21, 2014 10:42:59 AM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-bio-8009"]
      Jan 21, 2014 10:42:59 AM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 36437 ms
      2014-01-21 10:45:51,502 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Storage schema updates and data migrations are enabled 
      2014-01-21 10:45:52,045 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - The following data migration(s) will be applied for database [xwiki] currently in version [43000]: 
      2014-01-21 10:45:52,046 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager -   R530000WorkspacesMigration - http://jira.xwiki.org/browse/XWIKI-9738 
      2014-01-21 10:45:52,046 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Checking Hibernate mapping and updating schema if needed for wiki [xwiki] 
      2014-01-21 10:45:56,842 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Starting data migration [R530000WorkspacesMigration] with version [53000] on database [xwiki] 
      2014-01-21 10:45:57,184 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Data migration [R530000WorkspacesMigration] applied successfully, database [xwiki] upgraded to version [53000] 
      2014-01-21 10:45:57,188 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Database [xwiki] upgraded to latest version [53010] without needing further data migration 
      2014-01-21 10:45:57,192 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - The following data migration(s) will be applied for database [sorinello] currently in version [43000]: 
      2014-01-21 10:45:57,192 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager -   R530000WorkspacesMigration - http://jira.xwiki.org/browse/XWIKI-9738 
      2014-01-21 10:45:57,192 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager -   R530010WikiUserFromXEMMigration - http://jira.xwiki.org/browse/XWIKI-9516 
      2014-01-21 10:45:57,192 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Checking Hibernate mapping and updating schema if needed for wiki [sorinello] 
      2014-01-21 10:46:37,179 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Starting data migration [R530000WorkspacesMigration] with version [53000] on database [sorinello] 
      2014-01-21 10:46:37,581 [XWiki Solr index thread] INFO  .HibernateDataMigrationManager - Storage schema updates and data migrations are enabled 
      2014-01-21 10:46:37,739 [XWiki Solr resolve thread] INFO  .HibernateDataMigrationManager - Storage schema updates and data migrations are enabled 
      2014-01-21 10:46:38,243 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Data migration [R530000WorkspacesMigration] applied successfully, database [sorinello] upgraded to version [53000] 
      2014-01-21 10:46:38,243 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Starting data migration [R530010WikiUserFromXEMMigration] with version [53010] on database [sorinello] 
      2014-01-21 10:46:38,657 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Data migration [R530010WikiUserFromXEMMigration] applied successfully, database [sorinello] upgraded to version [53010] 
      2014-01-21 10:46:38,666 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - The following data migration(s) will be applied for database [workspacetemplate] currently in version [43000]: 
      2014-01-21 10:46:38,666 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager -   R530000WorkspacesMigration - http://jira.xwiki.org/browse/XWIKI-9738 
      2014-01-21 10:46:38,666 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager -   R530010WikiUserFromXEMMigration - http://jira.xwiki.org/browse/XWIKI-9516 
      2014-01-21 10:46:38,666 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Checking Hibernate mapping and updating schema if needed for wiki [workspacetemplate] 
      2014-01-21 10:46:43,274 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Starting data migration [R530000WorkspacesMigration] with version [53000] on database [workspacetemplate] 
      2014-01-21 10:46:43,811 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Data migration [R530000WorkspacesMigration] applied successfully, database [workspacetemplate] upgraded to version [53000] 
      2014-01-21 10:46:43,811 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Starting data migration [R530010WikiUserFromXEMMigration] with version [53010] on database [workspacetemplate] 
      2014-01-21 10:46:44,099 [http://localhost:8080/xwiki/bin/view/Main/WebHome] INFO  .HibernateDataMigrationManager - Data migration [R530010WikiUserFromXEMMigration] applied successfully, database [workspacetemplate] upgraded to version [53010] 
      2014-01-21 10:46:44,170 [XWiki Solr resolve thread] INFO  .HibernateDataMigrationManager - Failed to migrate database [xwiki]... 
      java.lang.NullPointerException: null
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getNeededMigrations(AbstractDataMigrationManager.java:704) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:679) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:619) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:353) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:552) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:696) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:872) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:804) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:799) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1356) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2136) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLocale(XWiki.java:2387) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2374) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2245) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3531) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.internal.MessageToolVelocityContextInitializer.initialize(MessageToolVelocityContextInitializer.java:60) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:64) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.runInitializers(DefaultExecutionContextManager.java:131) [xwiki-commons-context-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:118) [xwiki-commons-context-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.initExecutionContext(AbstractXWikiRunnable.java:104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:123) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      2014-01-21 10:46:44,180 [XWiki Solr resolve thread] ERROR .HibernateDataMigrationManager - Failed to migrate database [xwiki] 
      com.xpn.xwiki.store.migration.DataMigrationException: Failed to migrate database [xwiki]...
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:686) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:619) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:353) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:552) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:696) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:872) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:804) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:799) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1356) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2136) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLocale(XWiki.java:2387) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2374) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2245) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3531) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.internal.MessageToolVelocityContextInitializer.initialize(MessageToolVelocityContextInitializer.java:60) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:64) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.runInitializers(DefaultExecutionContextManager.java:131) [xwiki-commons-context-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:118) [xwiki-commons-context-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.initExecutionContext(AbstractXWikiRunnable.java:104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:123) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      Caused by: java.lang.NullPointerException: null
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getNeededMigrations(AbstractDataMigrationManager.java:704) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:679) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	... 24 common frames omitted
      2014-01-21 10:46:44,181 [XWiki Solr resolve thread] INFO  .HibernateDataMigrationManager - Failed to migrate database [sorinello]... 
      java.lang.NullPointerException: null
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getNeededMigrations(AbstractDataMigrationManager.java:704) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:679) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:619) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:353) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:552) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:696) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:872) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:804) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:799) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1356) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2136) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLocale(XWiki.java:2387) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2374) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2245) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3531) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.internal.MessageToolVelocityContextInitializer.initialize(MessageToolVelocityContextInitializer.java:60) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:64) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.runInitializers(DefaultExecutionContextManager.java:131) [xwiki-commons-context-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:118) [xwiki-commons-context-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.initExecutionContext(AbstractXWikiRunnable.java:104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:123) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      2014-01-21 10:46:44,181 [XWiki Solr resolve thread] ERROR .HibernateDataMigrationManager - Failed to migrate database [sorinello] 
      com.xpn.xwiki.store.migration.DataMigrationException: Failed to migrate database [sorinello]...
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:686) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:619) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:353) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:552) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:696) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:872) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:804) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:799) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1356) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2136) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLocale(XWiki.java:2387) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2374) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2245) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3531) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.internal.MessageToolVelocityContextInitializer.initialize(MessageToolVelocityContextInitializer.java:60) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:64) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.runInitializers(DefaultExecutionContextManager.java:131) [xwiki-commons-context-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:118) [xwiki-commons-context-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.initExecutionContext(AbstractXWikiRunnable.java:104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:123) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      Caused by: java.lang.NullPointerException: null
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getNeededMigrations(AbstractDataMigrationManager.java:704) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:679) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	... 24 common frames omitted
      2014-01-21 10:46:44,182 [XWiki Solr resolve thread] INFO  .HibernateDataMigrationManager - Failed to migrate database [workspacetemplate]... 
      java.lang.NullPointerException: null
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getNeededMigrations(AbstractDataMigrationManager.java:704) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:679) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:619) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:353) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:552) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:696) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:872) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:804) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:799) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1356) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2136) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLocale(XWiki.java:2387) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2374) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2245) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3531) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.internal.MessageToolVelocityContextInitializer.initialize(MessageToolVelocityContextInitializer.java:60) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:64) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.runInitializers(DefaultExecutionContextManager.java:131) [xwiki-commons-context-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:118) [xwiki-commons-context-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.initExecutionContext(AbstractXWikiRunnable.java:104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:123) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      2014-01-21 10:46:44,190 [XWiki Solr resolve thread] ERROR .HibernateDataMigrationManager - Failed to migrate database [workspacetemplate] 
      com.xpn.xwiki.store.migration.DataMigrationException: Failed to migrate database [workspacetemplate]...
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:686) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:619) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:353) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:552) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:696) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:872) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:804) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:799) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1356) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2136) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLocale(XWiki.java:2387) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2374) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2245) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:3531) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.internal.MessageToolVelocityContextInitializer.initialize(MessageToolVelocityContextInitializer.java:60) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:64) [xwiki-commons-velocity-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.runInitializers(DefaultExecutionContextManager.java:131) [xwiki-commons-context-5.3.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:118) [xwiki-commons-context-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.initExecutionContext(AbstractXWikiRunnable.java:104) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:123) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      Caused by: java.lang.NullPointerException: null
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getNeededMigrations(AbstractDataMigrationManager.java:704) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsForDatabase(AbstractDataMigrationManager.java:679) [xwiki-platform-legacy-oldcore-5.3.jar:na]
      	... 24 common frames omitted
      2014-01-21 10:46:44,191 [XWiki Solr resolve thread] ERROR .HibernateDataMigrationManager - 3 database migration(s) failed, it is not safe to continue! 
      2014-01-21 10:46:46,813 [http://localhost:8080/xwiki/bin/view/Main/WebHome] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in xwiki:Scheduler.WatchListHourlyNotifier@1,6 
      2014-01-21 10:46:48,223 [XWiki Solr index thread] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in xwiki:Scheduler.WatchListHourlyNotifier@1,6 
      2014-01-21 10:46:56,202 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FWebHome] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in xwiki:XWiki.WebHome@1,6 
      2014-01-21 10:59:09,050 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FWebHome] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in xwiki:XWiki.WebHome@1,6 
      2014-01-21 10:59:10,399 [http://localhost:8080/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.js?h=-837671017] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in @1,6 
      2014-01-21 10:59:10,561 [http://localhost:8080/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.js?h=-837671017] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 911, SQLState: 22019 
      2014-01-21 10:59:10,561 [http://localhost:8080/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.js?h=-837671017] ERROR o.h.u.JDBCExceptionReporter    - ORA-00911: invalid character
       
      2014-01-21 10:59:12,897 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FWebHome] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in xwiki:XWiki.WebHome@1,6 
      2014-01-21 10:59:13,102 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FWebHome] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [org.xwiki.extension.script.ExtensionManagerScriptService.getInstalledExtension] in xwiki:XWiki.Distribution@124,47 
      2014-01-21 10:59:13,111 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FWebHome] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.api.XWiki.countDocuments] in xwiki:XWiki.Distribution@132,31 
      2014-01-21 11:00:00,205 [DefaultQuartzScheduler_Worker-1] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in xwiki:Scheduler.WatchListHourlyNotifier@1,6 
      

        Attachments

          Activity

            People

            • Assignee:
              softec Denis Gervalle
              Reporter:
              sorinello Sorin Burjan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: