java.lang.ClassCastException: java.lang.String cannot be cast to [B

Pentaho BI Platform Tracking | Jos van Dongen | 8 years ago
  1. 0

    Creating ARFF output generates an error; when I first write the output to CSV and use this as input for the ARFF file, it works fine. Error messages: 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Unexpected error : org.pentaho.di.core.exception.KettleStepException: 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Problem writing field content to file 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Unable to verify if [income-group String(5)<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : org.pentaho.di.core.exception.KettleStepException: 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Problem writing field content to file 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Unable to verify if [income-group String(5)<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutputData.writeField(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutputData.writeRow(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutput.processRow(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutput.run(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Caused by: java.lang.RuntimeException: Unable to verify if [income-group String(5)<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.core.row.ValueMeta.isNull(ValueMeta.java:2834) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutputData.formatField(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : ... 4 more 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.core.row.ValueMeta.isNull(ValueMeta.java:2813) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : ... 5 more 2009/05/11 20:44:24 - Create IncomeGroups.0 - Finished, processing 3 rows Case: downloaded adult.data & adult.test from http://archive.ics.uci.edu/ml/datasets/Adult. Create two CSV inputs, filtered 1st row from test file and converted . to nothing using the Replace in String step. Then appended both streams and used Reservoir sampling to get 10000 rows. Writing to ARFF failed; it worked before adding the .text file and it also works when the data is first written to CSV and then used as a source fo the ARFF file.

    Pentaho BI Platform Tracking | 8 years ago | Jos van Dongen
    java.lang.ClassCastException: java.lang.String cannot be cast to [B
  2. 0

    Creating ARFF output generates an error; when I first write the output to CSV and use this as input for the ARFF file, it works fine. Error messages: 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Unexpected error : org.pentaho.di.core.exception.KettleStepException: 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Problem writing field content to file 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Unable to verify if [income-group String(5)<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : org.pentaho.di.core.exception.KettleStepException: 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Problem writing field content to file 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Unable to verify if [income-group String(5)<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutputData.writeField(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutputData.writeRow(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutput.processRow(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutput.run(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Caused by: java.lang.RuntimeException: Unable to verify if [income-group String(5)<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.core.row.ValueMeta.isNull(ValueMeta.java:2834) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.arff.ArffOutputData.formatField(Unknown Source) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : ... 4 more 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : at org.pentaho.di.core.row.ValueMeta.isNull(ValueMeta.java:2813) 2009/05/11 20:44:24 - Create IncomeGroups.0 - ERROR (version 3.2.0-RC1, build 10551 from 2009-05-01 14.00.23 by tomcat) : ... 5 more 2009/05/11 20:44:24 - Create IncomeGroups.0 - Finished, processing 3 rows Case: downloaded adult.data & adult.test from http://archive.ics.uci.edu/ml/datasets/Adult. Create two CSV inputs, filtered 1st row from test file and converted . to nothing using the Replace in String step. Then appended both streams and used Reservoir sampling to get 10000 rows. Writing to ARFF failed; it worked before adding the .text file and it also works when the data is first written to CSV and then used as a source fo the ARFF file.

    Pentaho BI Platform Tracking | 8 years ago | Jos van Dongen
    java.lang.ClassCastException: java.lang.String cannot be cast to [B
  3. 0

    ClassCastException when trying to (string)args received

    GitHub | 2 years ago | dimitrilahaye
    java.lang.ClassCastException: [B cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    kundera: java.lang.ClassCastException: java.lang.String cannot be cast to [B

    Stack Overflow | 7 months ago | h.zak
    java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to [B

    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.ClassCastException

      java.lang.String cannot be cast to [B

      at org.pentaho.di.core.row.ValueMeta.isNull()
    2. org.pentaho.di
      ArffOutput.run
      1. org.pentaho.di.core.row.ValueMeta.isNull(ValueMeta.java:2813)
      2. org.pentaho.di.arff.ArffOutputData.formatField(Unknown Source)
      3. org.pentaho.di.arff.ArffOutputData.writeField(Unknown Source)
      4. org.pentaho.di.arff.ArffOutputData.writeRow(Unknown Source)
      5. org.pentaho.di.arff.ArffOutput.processRow(Unknown Source)
      6. org.pentaho.di.arff.ArffOutput.run(Unknown Source)
      6 frames