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

Fix UT failure in TestHtmlSanitizerServiceImplwith MariaDB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 8.10
    • Fix Version/s: None
    • Component/s: Infrastructure

      Description

      See https://qa2.nuxeo.org/jenkins/view/8.10/job/8.10/job/nuxeo-8.10-fullbuild-multidb-linux-norandom/Slave=MULTIDB_LINUX_810,dbprofile=mariadb,jdk=java-8-oracle/

      org.nuxeo.ecm.platform.htmlsanitizer.TestHtmlSanitizerServiceImpl.org.nuxeo.ecm.platform.htmlsanitizer.TestHtmlSanitizerServiceImpl
      java.lang.AssertionError: invoke on features error [Holder [type=class org.nuxeo.runtime.test.runner.MDCFeature], Holder [type=class org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature], Holder [type=class org.nuxeo.runtime.test.runner.RandomBug$Feature], Holder [type=class org.nuxeo.runtime.test.runner.RuntimeFeature], Holder [type=class org.nuxeo.runtime.test.runner.ContainerFeature], Holder [type=class org.nuxeo.ecm.core.test.TransactionalFeature], Holder [type=class org.nuxeo.ecm.core.test.CoreFeature]]
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:123)
      	at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:113)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.start(FeaturesRunner.java:193)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:264)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runners.Suite.runChild(Suite.java:127)
      	at org.junit.runners.Suite.runChild(Suite.java:26)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      	Suppressed: org.nuxeo.ecm.core.api.NuxeoException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
      
      The last packet successfully received from the server was 5,284 milliseconds ago.  The last packet sent successfully to the server was 8 milliseconds ago.
      		at org.nuxeo.ecm.core.test.StorageConfiguration.initJDBC(StorageConfiguration.java:156)
      		at org.nuxeo.ecm.core.test.StorageConfiguration.init(StorageConfiguration.java:124)
      		at org.nuxeo.ecm.core.test.CoreFeature.start(CoreFeature.java:178)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner$6.call(FeaturesRunner.java:197)
      		at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
      		... 22 more
      	Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
      
      The last packet successfully received from the server was 5,284 milliseconds ago.  The last packet sent successfully to the server was 8 milliseconds ago.
      		at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      		at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      		at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      		at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      		at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
      		at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:988)
      		at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3552)
      		at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3452)
      		at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3893)
      		at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:875)
      		at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1712)
      		at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1228)
      		at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253)
      		at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)
      		at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)
      		at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806)
      		at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
      		at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      		at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      		at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      		at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      		at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
      		at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)
      		at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)
      		at java.sql.DriverManager.getConnection(DriverManager.java:664)
      		at java.sql.DriverManager.getConnection(DriverManager.java:247)
      		at org.nuxeo.ecm.core.storage.sql.DatabaseMySQL.setUp(DatabaseMySQL.java:61)
      		at org.nuxeo.ecm.core.test.StorageConfiguration.initJDBC(StorageConfiguration.java:154)
      		... 26 more
      	Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
      		at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3004)
      		at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3462)
      		... 47 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vdutat Vincent Dutat
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: