[ 
https://jira.nuxeo.com/browse/NXP-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mathieu Guillaume reopened NXP-7930:
------------------------------------


The issue still exists on CMF.

Example:
{noformat}
org.nuxeo.ecm.core.api.ClientException: Failed to intialize core session on 
repository test
        at org.nuxeo.ecm.core.api.CoreInstance.open(CoreInstance.java:130)
        at 
org.nuxeo.ecm.core.storage.sql.SQLRepositoryTestCase.openSessionAs(SQLRepositoryTestCase.java:111)
        at 
org.nuxeo.ecm.core.storage.sql.SQLRepositoryTestCase.openSession(SQLRepositoryTestCase.java:104)
        at 
org.nuxeo.cm.service.TestMailboxManagementService.setUp(TestMailboxManagementService.java:46)
        at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:37)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
org.nuxeo.ecm.core.api.ClientException. message: Failed to load repository test
        at 
org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:106)
        at 
org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:171)
        at 
org.nuxeo.ecm.core.api.AbstractSession.connect(AbstractSession.java:218)
        at 
org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:155)
        at org.nuxeo.ecm.core.api.CoreInstance.open(CoreInstance.java:121)
        ... 23 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
org.nuxeo.ecm.core.api.DocumentException. message: 
org.nuxeo.ecm.core.storage.StorageException: org.h2.jdbc.JdbcSQLException: 
Invalid value jdbc:postgresql://saratoga.in.nuxeo.com:5432/simplet for 
parameter url [90008-114]
        at 
org.nuxeo.ecm.core.storage.sql.coremodel.SQLRepository.getSession(SQLRepository.java:112)
        at 
org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:104)
        ... 27 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
org.nuxeo.ecm.core.storage.StorageException. message: 
org.h2.jdbc.JdbcSQLException: Invalid value 
jdbc:postgresql://saratoga.in.nuxeo.com:5432/simplet for parameter url 
[90008-114]
        at 
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCBackend.initializeModelSetup(JDBCBackend.java:130)
        at 
org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:342)
        at 
org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:316)
        at 
org.nuxeo.ecm.core.storage.sql.coremodel.SQLRepository.getSession(SQLRepository.java:110)
        ... 28 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
org.h2.jdbc.JdbcSQLException. message: Invalid value 
jdbc:postgresql://saratoga.in.nuxeo.com:5432/simplet for parameter url 
[90008-114]
        at org.h2.message.Message.getSQLException(Message.java:105)
        at org.h2.message.Message.getSQLException(Message.java:116)
        at org.h2.message.Message.getInvalidValueException(Message.java:172)
        at org.h2.engine.ConnectionInfo.<init>(ConnectionInfo.java:66)
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:89)
        at org.h2.jdbcx.JdbcXAConnection.<init>(JdbcXAConnection.java:71)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:288)
        at 
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCBackend.initializeModelSetup(JDBCBackend.java:116)
        ... 31 more
{noformat}

> Allow running all tests with another database that H2
> -----------------------------------------------------
>
>                 Key: NXP-7930
>                 URL: https://jira.nuxeo.com/browse/NXP-7930
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 5.3 RC
>            Reporter: Florent Guillaume
>            Assignee: Anahide Tchertchian
>            Priority: Major
>             Fix For: 5.5
>
>
> When running tests with for instance {{-Dnuxeo.test.vcs.db=PostgreSQL}} this 
> configuration isn't taken into account by JUnit4 tests based on 
> {{CoreFeature}}.
> This is because {{RepositorySettings}} half-reinitializes the database based 
> on annotations (which isn't configurable enough from outside the tests).
> -> Remove annotation-based database choice.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to