junit.framework.AssertionFailedError: Number of rows is not the same: 3 and 0

Pentaho BI Platform Tracking | Pavel Sakun | 3 years ago
  1. 0

    The test fails intermittently at our local CI, please see stderr/stdout excerpts below: Error Message Number of rows is not the same: 3 and 0 Stacktrace junit.framework.AssertionFailedError: Number of rows is not the same: 3 and 0 at org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.checkRows(DatabaseLookupTest.java:225) at org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.basicDatabaseLookup(DatabaseLookupTest.java:367) Standard Output 2014/02/08 03:17:10 - transname - Dispatching started for transformation [transname] 2014/02/08 03:17:10 - injector step.0 - Finished processing (I=0, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) 2014/02/08 03:17:10 - transname - transname 2014/02/08 03:17:10 - transname - transname 2014/02/08 03:17:10 - transname - Dispatching started for transformation [transname] 2014/02/08 03:17:10 - injector step.0 - Finished processing (I=0, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Finished processing (I=15, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - transname - Dispatching started for transformation [transname] 2014/02/08 03:17:10 - injector step.0 - Finished processing (I=0, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Finished processing (I=2, O=0, R=3, W=3, U=0, E=0) Standard Error 2014/02/08 03:17:10 - look up from [lookup_table1].0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2014-02-08 02.50.35 by jenkins) : Because of an error, this step can't continue: 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Couldn't get row from result set 2014/02/08 03:17:10 - look up from [lookup_table1].0 - 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Unable to get value 'String(30)' from database resultset, index 2 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Invalid value "3" for parameter "columnIndex" [90008-131]

    Pentaho BI Platform Tracking | 3 years ago | Pavel Sakun
    junit.framework.AssertionFailedError: Number of rows is not the same: 3 and 0
  2. 0

    The test fails intermittently at our local CI, please see stderr/stdout excerpts below: Error Message Number of rows is not the same: 3 and 0 Stacktrace junit.framework.AssertionFailedError: Number of rows is not the same: 3 and 0 at org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.checkRows(DatabaseLookupTest.java:225) at org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.basicDatabaseLookup(DatabaseLookupTest.java:367) Standard Output 2014/02/08 03:17:10 - transname - Dispatching started for transformation [transname] 2014/02/08 03:17:10 - injector step.0 - Finished processing (I=0, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) 2014/02/08 03:17:10 - transname - transname 2014/02/08 03:17:10 - transname - transname 2014/02/08 03:17:10 - transname - Dispatching started for transformation [transname] 2014/02/08 03:17:10 - injector step.0 - Finished processing (I=0, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Finished processing (I=15, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - transname - Dispatching started for transformation [transname] 2014/02/08 03:17:10 - injector step.0 - Finished processing (I=0, O=0, R=3, W=3, U=0, E=0) 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Finished processing (I=2, O=0, R=3, W=3, U=0, E=0) Standard Error 2014/02/08 03:17:10 - look up from [lookup_table1].0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2014-02-08 02.50.35 by jenkins) : Because of an error, this step can't continue: 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Couldn't get row from result set 2014/02/08 03:17:10 - look up from [lookup_table1].0 - 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Unable to get value 'String(30)' from database resultset, index 2 2014/02/08 03:17:10 - look up from [lookup_table1].0 - Invalid value "3" for parameter "columnIndex" [90008-131]

    Pentaho BI Platform Tracking | 3 years ago | Pavel Sakun
    junit.framework.AssertionFailedError: Number of rows is not the same: 3 and 0
  3. 0

    Tests fail during build of epubcheck 4.0.1

    GitHub | 1 year ago | jcdarwin
    junit.framework.AssertionFailedError: Outputted json isn't as expected. The number of elements in the array do not match.(/messages) Expected: 2 Actual: 3 expected:<0> but was:<1>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tests fail during build of epubcheck 4.0.1

    GitHub | 1 year ago | jcdarwin
    junit.framework.AssertionFailedError: Outputted json isn't as expected. The number of elements in the array do not match.(/messages) Expected: 2 Actual: 3 expected:<0> but was:<1>
  6. 0

    Tests fail during build of epubcheck 4.0.1

    GitHub | 1 year ago | jcdarwin
    junit.framework.AssertionFailedError: Outputted json isn't as expected. Values do not match(/checker/nWarning) Expected: 1 Actual: 0 Values do not match(/messages[3]/ID) Expected: "PKG-022" Actual: "RSC-022" Values do not match(/messages[3]/severity) Expected: "WARNING" Actual: "INFO" Values do not match(/messages[3]/message) Expected: "Wrong file extension for image. The image is a 'gif' file but has the file extension 'png'." Actual: "Cannot check image details (requires Java version 7 or higher). " Values do not match(/messages[3]/locations[0]/path) Expected: "OPS/images/PlaceHolder.png" Actual: "OPS/images/BigRed.png" The number of elements in the array do not match.(/messages[3]/locations) Expected: 1 Actual: 5 expected:<0> but was:<6>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Number of rows is not the same: 3 and 0

      at org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.checkRows()
    2. org.pentaho.di
      DatabaseLookupTest.basicDatabaseLookup
      1. org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.checkRows(DatabaseLookupTest.java:225)
      2. org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest.basicDatabaseLookup(DatabaseLookupTest.java:367)
      2 frames