Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16119

Fix target platforms unit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.1-SNAPSHOT
    • Fix Version/s: 7.1
    • Component/s: Target Platforms

      Description

      Tests are failing at https://qa.nuxeo.org/jenkins/job/addons_nuxeo-target-platforms-master/114/ for a test case related issue (when setting up the test datasource for directories)

      Caused by: org.nuxeo.ecm.directory.DirectoryException: Cannot connect to SQL directory 'targetPlatformOverrides': Cannot find datasource: java:/nxsqldirectory
      	at org.nuxeo.ecm.directory.sql.SQLDirectory.getConnection(SQLDirectory.java:287)
      	at org.nuxeo.ecm.directory.sql.SQLDirectory.initConnection(SQLDirectory.java:161)
      	at org.nuxeo.ecm.directory.sql.SQLDirectory.getSession(SQLDirectory.java:363)
      	at org.nuxeo.ecm.directory.DirectoryServiceImpl.open(DirectoryServiceImpl.java:265)
      	at org.nuxeo.targetplatforms.core.service.TargetPlatformServiceImpl.getDirectoryEntry(TargetPlatformServiceImpl.java:567)
      	... 50 more
      Caused by: java.sql.SQLException: Cannot find datasource: java:/nxsqldirectory
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:965)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:874)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:849)
      	at org.nuxeo.ecm.directory.sql.SQLDirectory.getConnection(SQLDirectory.java:279)
      	... 54 more
      Caused by: javax.naming.NamingException: runtime datasource no installed
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:94)
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:82)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:955)
      	... 57 more
      

      This may be linked to changes for NXP-15949, to check

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: