java.lang.RuntimeException: Unable to verify if [field String<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B

Pentaho BI Platform Tracking | Matt Campbell | 12 months ago
  1. 0

    Reproduction steps above. This error can occur whenever fields from a CSV step using lazy initialization are passed to a Memory Group By step. The error below will occur. This appears to happen because of a mismatch in the ValueMeta data and storage type. The value is converted to normal storage in MemoryGroupBy.addToAggregate, but its storage type remains binary. {noformat} 2015/12/22 12:56:31 - Memory Group by.0 - ERROR (version 6.1.0.0-98, build 1 from 2015-12-15 22.48.55 by buildguy) : Unexpected error 2015/12/22 12:56:31 - Memory Group by.0 - ERROR (version 6.1.0.0-98, build 1 from 2015-12-15 22.48.55 by buildguy) : java.lang.RuntimeException: Unable to verify if [field String<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.value.ValueMetaBase.isNull(ValueMetaBase.java:3337) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.value.ValueMetaBase.compare(ValueMetaBase.java:3370) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.RowMeta.compare(RowMeta.java:991) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.steps.memgroupby.MemoryGroupByData$HashEntry.equals(MemoryGroupByData.java:54) 2015/12/22 12:56:31 - Memory Group by.0 - at java.util.HashMap.getNode(HashMap.java:571) 2015/12/22 12:56:31 - Memory Group by.0 - at java.util.HashMap.get(HashMap.java:556) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.steps.memgroupby.MemoryGroupBy.addToAggregate(MemoryGroupBy.java:242) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.steps.memgroupby.MemoryGroupBy.processRow(MemoryGroupBy.java:175) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/12/22 12:56:31 - Memory Group by.0 - at java.lang.Thread.run(Thread.java:745) 2015/12/22 12:56:31 - Memory Group by.0 - Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.value.ValueMetaBase.isNull(ValueMetaBase.java:3308) 2015/12/22 12:56:31 - Memory Group by.0 - ... 9 more {noformat}

    Pentaho BI Platform Tracking | 12 months ago | Matt Campbell
    java.lang.RuntimeException: Unable to verify if [field String<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B
  2. 0

    Reproduction steps above. This error can occur whenever fields from a CSV step using lazy initialization are passed to a Memory Group By step. The error below will occur. This appears to happen because of a mismatch in the ValueMeta data and storage type. The value is converted to normal storage in MemoryGroupBy.addToAggregate, but its storage type remains binary. {noformat} 2015/12/22 12:56:31 - Memory Group by.0 - ERROR (version 6.1.0.0-98, build 1 from 2015-12-15 22.48.55 by buildguy) : Unexpected error 2015/12/22 12:56:31 - Memory Group by.0 - ERROR (version 6.1.0.0-98, build 1 from 2015-12-15 22.48.55 by buildguy) : java.lang.RuntimeException: Unable to verify if [field String<binary-string>] is null or not because of an error:java.lang.ClassCastException: java.lang.String cannot be cast to [B 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.value.ValueMetaBase.isNull(ValueMetaBase.java:3337) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.value.ValueMetaBase.compare(ValueMetaBase.java:3370) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.RowMeta.compare(RowMeta.java:991) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.steps.memgroupby.MemoryGroupByData$HashEntry.equals(MemoryGroupByData.java:54) 2015/12/22 12:56:31 - Memory Group by.0 - at java.util.HashMap.getNode(HashMap.java:571) 2015/12/22 12:56:31 - Memory Group by.0 - at java.util.HashMap.get(HashMap.java:556) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.steps.memgroupby.MemoryGroupBy.addToAggregate(MemoryGroupBy.java:242) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.steps.memgroupby.MemoryGroupBy.processRow(MemoryGroupBy.java:175) 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/12/22 12:56:31 - Memory Group by.0 - at java.lang.Thread.run(Thread.java:745) 2015/12/22 12:56:31 - Memory Group by.0 - Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B 2015/12/22 12:56:31 - Memory Group by.0 - at org.pentaho.di.core.row.value.ValueMetaBase.isNull(ValueMetaBase.java:3308) 2015/12/22 12:56:31 - Memory Group by.0 - ... 9 more {noformat}

    Pentaho BI Platform Tracking | 12 months ago | Matt Campbell
    java.lang.RuntimeException: Unable to verify if [field String<binary-string>] is null or not because of an error: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.value.ValueMetaBase.isNull()
    2. org.pentaho.di
      MemoryGroupByData$HashEntry.equals
      1. org.pentaho.di.core.row.value.ValueMetaBase.isNull(ValueMetaBase.java:3308)
      2. org.pentaho.di.core.row.value.ValueMetaBase.compare(ValueMetaBase.java:3370)
      3. org.pentaho.di.core.row.RowMeta.compare(RowMeta.java:991)
      4. org.pentaho.di.trans.steps.memgroupby.MemoryGroupByData$HashEntry.equals(MemoryGroupByData.java:54)
      4 frames
    3. Java RT
      HashMap.get
      1. java.util.HashMap.getNode(HashMap.java:571)
      2. java.util.HashMap.get(HashMap.java:556)
      2 frames
    4. org.pentaho.di
      RunThread.run
      1. org.pentaho.di.trans.steps.memgroupby.MemoryGroupBy.addToAggregate(MemoryGroupBy.java:242)
      2. org.pentaho.di.trans.steps.memgroupby.MemoryGroupBy.processRow(MemoryGroupBy.java:175)
      3. org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
      3 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame