java.lang.NullPointerException

Pentaho BI Platform Tracking | Ken Geis | 7 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

    AccessOutputMeta.createObjectsForRow(..) does not check for null values when executing the following lines. values[i] = new Byte( valueMeta.getInteger(valueData).byteValue() ); values[i] = new Short(valueMeta.getInteger(valueData).shortValue()); If you are writing data to Access, and it contains small integer columns with null values, an NPE occurs. 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Unexpected error : 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : java.lang.NullPointerException 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutputMeta.createObjectsForRow(AccessOutputMeta.java:495) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutput.writeToTable(AccessOutput.java:154) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutput.processRow(AccessOutput.java:81) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutput.run(AccessOutput.java:277)

    Pentaho BI Platform Tracking | 7 years ago | Ken Geis
    java.lang.NullPointerException
  2. 0

    AccessOutputMeta.createObjectsForRow(..) does not check for null values when executing the following lines. values[i] = new Byte( valueMeta.getInteger(valueData).byteValue() ); values[i] = new Short(valueMeta.getInteger(valueData).shortValue()); If you are writing data to Access, and it contains small integer columns with null values, an NPE occurs. 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Unexpected error : 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : java.lang.NullPointerException 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutputMeta.createObjectsForRow(AccessOutputMeta.java:495) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutput.writeToTable(AccessOutput.java:154) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutput.processRow(AccessOutput.java:81) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889) 2010/04/09 13:56:58 - write Access table.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : at org.pentaho.di.trans.steps.accessoutput.AccessOutput.run(AccessOutput.java:277)

    Pentaho BI Platform Tracking | 7 years ago | Ken Geis
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.di.trans.steps.accessoutput.AccessOutputMeta.createObjectsForRow()
    2. org.pentaho.di
      AccessOutput.run
      1. org.pentaho.di.trans.steps.accessoutput.AccessOutputMeta.createObjectsForRow(AccessOutputMeta.java:495)
      2. org.pentaho.di.trans.steps.accessoutput.AccessOutput.writeToTable(AccessOutput.java:154)
      3. org.pentaho.di.trans.steps.accessoutput.AccessOutput.processRow(AccessOutput.java:81)
      4. org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889)
      5. org.pentaho.di.trans.steps.accessoutput.AccessOutput.run(AccessOutput.java:277)
      5 frames