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

XWiki 10.8RC1 fails to start on Oracle

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.8-rc-1
    • Fix Version/s: 9.11.8, 10.8, 10.9
    • Component/s: Notifications
    • Labels:
    • Environment:
      Windows 10 Pro 64 bit, Firefox 62, using a local instance XWiki 10.8RC1 on Oracle 11.2
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      When configured with ORACLE 11.2 DB (usingĀ ojdbc6.jar connector), XWiki 10.8RC1 fails to initialize and the following stacktrace is displayed in the console:

       2018-09-21 11:47:43,904 [XWiki initialization] ERROR c.x.x.i.XWikiInitializerJob    - Exception thrown during job execution
      java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.getSchema()Ljava/lang/String;
              at org.apache.commons.dbcp2.DelegatingConnection.getSchema(DelegatingConnection.java:941)
              at org.apache.commons.dbcp2.PoolingConnection.getSchemaOrNull(PoolingConnection.java:282)
              at org.apache.commons.dbcp2.PoolingConnection.createKey(PoolingConnection.java:128)
              at org.apache.commons.dbcp2.PoolingConnection.prepareStatement(PoolingConnection.java:437)
              at org.apache.commons.dbcp2.DelegatingConnection.prepareStatement(DelegatingConnection.java:292)
              at org.apache.commons.dbcp2.DelegatingConnection.prepareStatement(DelegatingConnection.java:292)
              at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
              at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
              at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
              at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1700)
              at org.hibernate.loader.Loader.doQuery(Loader.java:801)
              at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
              at org.hibernate.loader.Loader.doList(Loader.java:2542)
              at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
              at org.hibernate.loader.Loader.list(Loader.java:2271)
              at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:119)
              at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1716)
              at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:347)
              at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
              at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager$1.doInHibernate(HibernateDataMigrationManager.java:104)
              at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager$1.doInHibernate(HibernateDataMigrationManager.java:99)
              at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:921)
              at com.xpn.xwiki.store.XWikiHibernateBaseStore.failSafeExecute(XWikiHibernateBaseStore.java:885)
              at com.xpn.xwiki.store.XWikiHibernateBaseStore.failSafeExecuteRead(XWikiHibernateBaseStore.java:976)
              at com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.getDBVersionFromDatabase(HibernateDataMigrationManager.java:98)
              at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getDataMigrationStatus(AbstractDataMigrationManager.java:421)
              at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.getDatabaseStatus(AbstractDataMigrationManager.java:564)
              at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:532)
              at com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:339)
              at com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:302)
              at com.xpn.xwiki.internal.store.hibernate.HibernateStore.beginTransaction(HibernateStore.java:472)
              at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:682)
              at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:894)
              at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:353)
              at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1896)
              at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1958)
              at com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1321)
              at com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1295)
              at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1213)
              at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1155)
              at com.xpn.xwiki.XWiki.<init>(XWiki.java:1128)
              at com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
              at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
              at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
              at java.lang.Thread.run(Unknown Source) 

      The issue cannot be reproduced on XWiki 10.7 (using the same connector, as I useĀ  basically when I configure an instance with Oracle 11.2).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gdelhumeau Guillaume Delhumeau
                Reporter:
                iandriuta Ilie Andriuta
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

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