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

Fix Nuxeo JSF UI Hotreload Tests failsafe error related to log4j configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Seam / JSF UI, Tests

      Description

      cd nuxeo-jsf-ui/ftests/nuxeo-jsf-ui-hotreload-tests
      mvn -nsu verify
      

      leads to:

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      ERROR StatusLogger Unable to access file:///home/ataillefer/sources/nuxeo-jsf-ui/ftests/nuxeo-jsf-ui-hotreload-tests/src/test/resources/log4j.xml
       java.io.FileNotFoundException: /home/ataillefer/sources/nuxeo-jsf-ui/ftests/nuxeo-jsf-ui-hotreload-tests/src/test/resources/log4j.xml (Aucun fichier ou dossier de ce type)
      	at java.base/java.io.FileInputStream.open0(Native Method)
      	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
      	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
      	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
      	at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
      	at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
      	at org.apache.logging.log4j.core.config.ConfigurationSource.fromUri(ConfigurationSource.java:325)
      	at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:480)
      	at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:416)
      	at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:318)
      	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:687)
      	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708)
      	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
      	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
      	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
      	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
      	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:602)
      	at org.nuxeo.mail.SmtpMailServerFeature.<clinit>(SmtpMailServerFeature.java:82)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader$Holder.<init>(FeaturesLoader.java:62)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.loadFeature(FeaturesLoader.java:168)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.loadFeatures(FeaturesLoader.java:144)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.<init>(FeaturesRunner.java:94)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
      	at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
      	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
      	at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
      	at org.junit.runner.Computer.getRunner(Computer.java:50)
      	at org.junit.runner.Computer$1.runnerForClass(Computer.java:31)
      	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
      	at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:125)
      	at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:111)
      	at org.junit.runners.Suite.<init>(Suite.java:81)
      	at org.junit.runner.Computer$2.<init>(Computer.java:33)
      	at org.junit.runner.Computer.getSuite(Computer.java:28)
      	at org.junit.runner.Request.classes(Request.java:77)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:126)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      ERROR StatusLogger Reconfiguration failed: No configuration found for '55054057' at 'null' in 'null'
      

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m