java.lang.NullPointerException

Pentaho BI Platform Tracking | Christopher Kingsbury | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When importing a CSV File, it failed on this error: 2008/12/01 17:55:25 - Database lookup.0 - Starting to run... 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : Unexpected error : 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : java.lang.NullPointerException 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.core.row.RowMeta.searchValueMeta(RowMeta.java:357) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.core.row.RowMeta.exists(RowMeta.java:105) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.core.row.RowMeta.addValueMeta(RowMeta.java:116) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.steps.csvinput.CsvInputMeta.getFields(CsvInputMeta.java:313) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.steps.csvinput.CsvInput.processRow(CsvInput.java:64) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2664) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.steps.csvinput.CsvInput.run(CsvInput.java:691) I found that a few of the columns had no name assigned to them, so I populate those columns with unique names and was able to successfully import.

    Pentaho BI Platform Tracking | 8 years ago | Christopher Kingsbury
    java.lang.NullPointerException
  2. 0

    When importing a CSV File, it failed on this error: 2008/12/01 17:55:25 - Database lookup.0 - Starting to run... 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : Unexpected error : 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : java.lang.NullPointerException 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.core.row.RowMeta.searchValueMeta(RowMeta.java:357) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.core.row.RowMeta.exists(RowMeta.java:105) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.core.row.RowMeta.addValueMeta(RowMeta.java:116) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.steps.csvinput.CsvInputMeta.getFields(CsvInputMeta.java:313) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.steps.csvinput.CsvInput.processRow(CsvInput.java:64) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2664) 2008/12/01 17:55:25 - CSV file input.0 - ERROR (version 3.1.0, build 826 from 2008/12/01 11:18:28) : at org.pentaho.di.trans.steps.csvinput.CsvInput.run(CsvInput.java:691) I found that a few of the columns had no name assigned to them, so I populate those columns with unique names and was able to successfully import.

    Pentaho BI Platform Tracking | 8 years ago | Christopher Kingsbury
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.di.core.row.RowMeta.searchValueMeta()
    2. org.pentaho.di
      CsvInput.run
      1. org.pentaho.di.core.row.RowMeta.searchValueMeta(RowMeta.java:357)
      2. org.pentaho.di.core.row.RowMeta.exists(RowMeta.java:105)
      3. org.pentaho.di.core.row.RowMeta.addValueMeta(RowMeta.java:116)
      4. org.pentaho.di.trans.steps.csvinput.CsvInputMeta.getFields(CsvInputMeta.java:313)
      5. org.pentaho.di.trans.steps.csvinput.CsvInput.processRow(CsvInput.java:64)
      6. org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2664)
      7. org.pentaho.di.trans.steps.csvinput.CsvInput.run(CsvInput.java:691)
      7 frames