Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3107

Unit test failure for DBCPServiceTest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.2.0
    • Component/s: Extensions
    • Labels:
    • Environment:
      OSX Yosemite
      Apache Maven 3.3.3
      Java version: 1.8.0_60, vendor: Oracle Corporation

      Description

      When I attempt to build the DBCPService module, I see a failure with the following output:

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.nifi.dbcp.DBCPServiceTest
      Tests run: 11, Failures: 0, Errors: 2, Skipped: 4, Time elapsed: 1.492 sec <<< FAILURE! - in org.apache.nifi.dbcp.DBCPServiceTest
      testDropInvalidConnectionsH2_Default(org.apache.nifi.dbcp.DBCPServiceTest) Time elapsed: 0.141 sec <<< ERROR!
      org.apache.nifi.processor.exception.ProcessException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection is broken: "java.io.EOFException: localhost" [90067-192])
      at java.io.DataInputStream.readInt(DataInputStream.java:392)
      at org.h2.value.Transfer.readInt(Transfer.java:153)
      at org.h2.engine.SessionRemote.done(SessionRemote.java:617)
      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:133)
      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:448)
      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:329)
      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:118)
      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:102)
      at org.h2.Driver.connect(Driver.java:72)
      at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
      at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
      at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
      at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
      at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
      at org.apache.nifi.dbcp.DBCPConnectionPool.getConnection(DBCPConnectionPool.java:249)
      at org.apache.nifi.dbcp.DBCPServiceTest.testDropInvalidConnectionsH2_Default(DBCPServiceTest.java:200)

      testDropInvalidConnectionsH2_Better(org.apache.nifi.dbcp.DBCPServiceTest) Time elapsed: 0.008 sec <<< ERROR!
      org.apache.nifi.processor.exception.ProcessException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection is broken: "java.io.EOFException: localhost" [90067-192])
      at java.io.DataInputStream.readInt(DataInputStream.java:392)
      at org.h2.value.Transfer.readInt(Transfer.java:153)
      at org.h2.engine.SessionRemote.done(SessionRemote.java:617)
      at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:133)
      at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:448)
      at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:329)
      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:118)
      at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:102)
      at org.h2.Driver.connect(Driver.java:72)
      at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
      at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
      at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
      at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
      at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
      at org.apache.nifi.dbcp.DBCPConnectionPool.getConnection(DBCPConnectionPool.java:249)
      at org.apache.nifi.dbcp.DBCPServiceTest.testDropInvalidConnectionsH2_Better(DBCPServiceTest.java:252)

      Results :

      Tests in error:
      DBCPServiceTest.testDropInvalidConnectionsH2_Better:252 » Process org.apache.c...
      DBCPServiceTest.testDropInvalidConnectionsH2_Default:200 » Process org.apache....

      Tests run: 11, Failures: 0, Errors: 2, Skipped: 4

      I've tried running "mvn clean install" several times, always with these failures. Sometimes I see only 1 of them, sometimes both of them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ijokarumawak Koji Kawamura
                Reporter:
                markap14 Mark Payne
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: