java.lang.RuntimeException: Error serializing row to byte array

Pentaho BI Platform Tracking | Michal Riedmueller | 8 years ago
  1. 0

    Executing a transformation created under 3.0.4 with 3.1.0M2 returns an exception (see below). Executing the same transformation with 3.0.4 did not throw that exception. The exception is thrown at a database lookup component From the error message it seems obvious that the two types are equal. 'AF' is the first value for country_key read from the set of new values >>>>>>>>>>>>>>>>>>>> Unexpected error : 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : java.lang.RuntimeException: Error serializing row to byte array 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:735) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.addToCache(StreamLookup.java:329) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.readLookupValues(StreamLookup.java:193) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.processRow(StreamLookup.java:396) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2444) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.run(StreamLookup.java:500) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : Caused by: java.lang.RuntimeException: country_key String(50)<binary-string> : There was a data type error: the data type of java.lang.String object [AF] does not correspond to value meta [String(50)<binary-string>] 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.ValueMeta.writeData(ValueMeta.java:2015) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.RowMeta.writeData(RowMeta.java:442) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:728)

    Pentaho BI Platform Tracking | 8 years ago | Michal Riedmueller
    java.lang.RuntimeException: Error serializing row to byte array
  2. 0

    Executing a transformation created under 3.0.4 with 3.1.0M2 returns an exception (see below). Executing the same transformation with 3.0.4 did not throw that exception. The exception is thrown at a database lookup component From the error message it seems obvious that the two types are equal. 'AF' is the first value for country_key read from the set of new values >>>>>>>>>>>>>>>>>>>> Unexpected error : 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : java.lang.RuntimeException: Error serializing row to byte array 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:735) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.addToCache(StreamLookup.java:329) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.readLookupValues(StreamLookup.java:193) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.processRow(StreamLookup.java:396) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2444) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.trans.steps.streamlookup.StreamLookup.run(StreamLookup.java:500) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : Caused by: java.lang.RuntimeException: country_key String(50)<binary-string> : There was a data type error: the data type of java.lang.String object [AF] does not correspond to value meta [String(50)<binary-string>] 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.ValueMeta.writeData(ValueMeta.java:2015) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.RowMeta.writeData(RowMeta.java:442) 2008/08/12 12:11:05 - lookup current entry.0 - ERROR (version 3.1.0-M2, build 709 from 2008/08/12 11:37:56) : at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:728)

    Pentaho BI Platform Tracking | 8 years ago | Michal Riedmueller
    java.lang.RuntimeException: Error serializing row to byte array
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Seems to happen when an Update occurs: (transformation attached) If I truncate the table and run the procedure, it completes normally. INFO 06-11 13:09:27,754 - Get Tenant Data.0 - Finished reading query, closing connection. INFO 06-11 13:09:27,760 - Get Tenant Data.0 - Finished processing (I=422, O=0, R=0, W=422, U=422, E=0) INFO 06-11 13:09:28,250 - Join Rows (cartesian product).0 - Finished processing (I=0, O=0, R=423, W=422, U=422, E=0) ERROR 06-11 13:09:29,353 - Dimension lookup/update.0 - Unexpected error : ERROR 06-11 13:09:29,354 - Dimension lookup/update.0 - java.lang.RuntimeException: Error serializing row to byte array at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:765) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.addToCache(DimensionLookup.java:1022) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.lookupValues(DimensionLookup.java:425) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.processRow(DimensionLookup.java:183) at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2664) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.run(DimensionLookup.java:1267) Caused by: java.lang.RuntimeException: tenant_id BigNumber(16) : There was a data type error: the data type of java.lang.Long object [50] does not correspond to value meta [BigNumber(16)] at org.pentaho.di.core.row.ValueMeta.writeData(ValueMeta.java:2020) at org.pentaho.di.core.row.RowMeta.writeData(RowMeta.java:442) at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:758) ... 5 more ERROR 06-11 13:09:29,358 - populate_tenant_dim - Errors detected!

    Pentaho BI Platform Tracking | 8 years ago | kdikken
    java.lang.RuntimeException: Error serializing row to byte array

    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. java.lang.RuntimeException

      country_key String(50)<binary-string> : There was a data type error: the data type of java.lang.String object [AF] does not correspond to value meta [String(50)<binary-string>]

      at org.pentaho.di.core.row.ValueMeta.writeData()
    2. org.pentaho.di
      RowMeta.extractData
      1. org.pentaho.di.core.row.ValueMeta.writeData(ValueMeta.java:2015)
      2. org.pentaho.di.core.row.RowMeta.writeData(RowMeta.java:442)
      3. org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:728)
      3 frames