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

Log more explicit error on RepositoryInit failure in test setup

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10-HF33
    • Fix Version/s: None
    • Component/s: Tests
    • Team:
      PLATFORM

      Description

      Using pre-initialization via RepositoryConfig with org.nuxeo.ecm.core.test.annotations.RepositoryInit may produce unclear exception during populate method execution. 

      In our case due to outdated Studio package we had PropertyNotFoundException that was swallowed by framework and logs showed unhelpful

      [2020-10-13T11:08:52.446Z]      Suppressed: org.nuxeo.ecm.core.api.CoreSessionService$CoreSessionRegistrationInfo: DEBUG: opening stacktrace, sessionId=test/Administrator#308, thread=main[2020-10-13T11:08:52.446Z]          at org.nuxeo.ecm.core.api.CoreSessionServiceImpl.createCoreSession(CoreSessionServiceImpl.java:57)[2020-10-13T11:08:52.446Z]          at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:112)[2020-10-13T11:08:52.446Z]          at org.nuxeo.ecm.core.test.CoreFeature.createCoreSession(CoreFeature.java:369)[2020-10-13T11:08:52.446Z]          at org.nuxeo.ecm.core.test.CoreFeature.initializeSession(CoreFeature.java:336)[2020-10-13T11:08:52.446Z]          at org.nuxeo.ecm.core.test.CoreFeature.beforeSetup(CoreFeature.java:229)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.RunnerFeature.beforeSetup(RunnerFeature.java:108)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner.lambda$beforeSetup$7(FeaturesRunner.java:179)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner.beforeSetup(FeaturesRunner.java:179)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:313)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:345)[2020-10-13T11:08:52.446Z]          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:362)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:440)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:326)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:440)[2020-10-13T11:08:52.446Z]          at org.junit.rules.RunRules.evaluate(RunRules.java:20)[2020-10-13T11:08:52.446Z]          at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)[2020-10-13T11:08:52.446Z]          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)[2020-10-13T11:08:52.446Z]          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)[2020-10-13T11:08:52.446Z]          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[2020-10-13T11:08:52.446Z]          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[2020-10-13T11:08:52.446Z]          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[2020-10-13T11:08:52.446Z]          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)[2020-10-13T11:08:52.446Z]          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)[2020-10-13T11:08:52.446Z]          at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:235)[2020-10-13T11:08:52.446Z]          ... 22 more[2020-10-13T11:08:52.447Z]          Suppressed: java.lang.Exception: DEBUG: closing stacktrace, sessionId=test/Administrator#308, thread=main[2020-10-13T11:08:52.447Z]              at org.nuxeo.ecm.core.api.CoreSessionServiceImpl.releaseCoreSession(CoreSessionServiceImpl.java:81)[2020-10-13T11:08:52.447Z]              at org.nuxeo.ecm.core.api.CoreInstance.closeCoreSession(CoreInstance.java:133)[2020-10-13T11:08:52.447Z]              at org.nuxeo.ecm.core.api.local.LocalSession.close(LocalSession.java:154)[2020-10-13T11:08:52.447Z]              at org.nuxeo.ecm.core.test.CoreFeature.afterRun(CoreFeature.java:217)[2020-10-13T11:08:52.447Z]              at org.nuxeo.runtime.test.runner.FeaturesRunner.lambda$afterRun$4(FeaturesRunner.java:167)[2020-10-13T11:08:52.447Z]              at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)[2020-10-13T11:08:52.447Z]              at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)[2020-10-13T11:08:52.447Z]              at org.nuxeo.runtime.test.runner.FeaturesRunner.afterRun(FeaturesRunner.java:167)[2020-10-13T11:08:52.447Z]              at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:237)[2020-10-13T11:08:52.447Z]              ... 22 more 

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              anechaev Andrei Nechaev
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.