org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)

Pentaho BI Platform Tracking | Peter Mengaziol | 9 years ago
  1. 0

    Problem using CSV file with Embedded Blanks Problem: Trying to handle files with ff. format is a problem. It may terminate Spoon. Different results with Lazy Conversion toggled. NIO error occurs when Lazy is off. The only way I can import this file is by removing the quote enclosure character. This forces all strings to be seen as quoted. Same thing in Text File Input Step. Position1,Position2,Position3,Position4,Position5,Position6,Position7,Position8,Position9,Position10,Position11,Position12,Position13,Position14,Position15,Position16,Position17 " Pos1"," Pos2","Pos3",4,"Pos5","Pos6","Pos7",8,9,10,"Pos11","P4190" ,"278865100","04/15/05", 525.00,"DIV" ,"@ECOLAB INC" "","","",,"","","",,,,"","P4190" ,"278865100","04/15/05", 525.00,"DIV" ,"@ECOLAB INC" "","","",,"","","",,,,"","Q4144" ,"278865100","04/15/05", 525.00,"DIV" ,"-ECOLAB INC" "","","",,"","","",,,,"","Q4186" ,"149113102","04/15/05", 1620.00,"DIV" ,"-CATELLUS DEVELOPMEN" "","","",,"","","",,,,"","Q4186" ,"278865100","04/15/05", 7525.00,"DIV" ,"-ECOLAB INC" "","","",,"","","",,,,"","Q4186" ,"829226109","04/15/05", 10000.00,"DIV" ,"-SINCLAIR BROADCAST" Used Getfields against the file, Changed an Integer to Number format manually. Differnen CSV with blanks between Delimiter and Enclosure cause Dialog Crash: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:3563) at org.eclipse.swt.SWT.error(SWT.java:3481) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:229) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.preview(CsvInputDialog.java:630) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$300(CsvInputDialog.java:74) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$5.handleEvent(CsvInputDialog.java:334) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:873) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5626) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5722) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at apple.launcher.LaunchRunner.run(LaunchRunner.java:88) at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50) at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52) Caused by: java.lang.NullPointerException at org.pentaho.di.core.row.ValueDataUtil.leftTrim(ValueDataUtil.java:27) at org.pentaho.di.core.row.ValueMeta.trim(ValueMeta.java:1299) at org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1205) at org.pentaho.di.core.row.ValueMeta.convertData(ValueMeta.java:2958) at org.pentaho.di.core.row.ValueMeta.convertBinaryStringToNativeType(ValueMeta.java:1065) at org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1201) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog$6.run(PreviewRowsDialog.java:276) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 24 more

    Pentaho BI Platform Tracking | 9 years ago | Peter Mengaziol
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
  2. 0

    Problem using CSV file with Embedded Blanks Problem: Trying to handle files with ff. format is a problem. It may terminate Spoon. Different results with Lazy Conversion toggled. NIO error occurs when Lazy is off. The only way I can import this file is by removing the quote enclosure character. This forces all strings to be seen as quoted. Same thing in Text File Input Step. Position1,Position2,Position3,Position4,Position5,Position6,Position7,Position8,Position9,Position10,Position11,Position12,Position13,Position14,Position15,Position16,Position17 " Pos1"," Pos2","Pos3",4,"Pos5","Pos6","Pos7",8,9,10,"Pos11","P4190" ,"278865100","04/15/05", 525.00,"DIV" ,"@ECOLAB INC" "","","",,"","","",,,,"","P4190" ,"278865100","04/15/05", 525.00,"DIV" ,"@ECOLAB INC" "","","",,"","","",,,,"","Q4144" ,"278865100","04/15/05", 525.00,"DIV" ,"-ECOLAB INC" "","","",,"","","",,,,"","Q4186" ,"149113102","04/15/05", 1620.00,"DIV" ,"-CATELLUS DEVELOPMEN" "","","",,"","","",,,,"","Q4186" ,"278865100","04/15/05", 7525.00,"DIV" ,"-ECOLAB INC" "","","",,"","","",,,,"","Q4186" ,"829226109","04/15/05", 10000.00,"DIV" ,"-SINCLAIR BROADCAST" Used Getfields against the file, Changed an Integer to Number format manually. Differnen CSV with blanks between Delimiter and Enclosure cause Dialog Crash: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:3563) at org.eclipse.swt.SWT.error(SWT.java:3481) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:229) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.preview(CsvInputDialog.java:630) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$300(CsvInputDialog.java:74) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$5.handleEvent(CsvInputDialog.java:334) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:873) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5626) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5722) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at apple.launcher.LaunchRunner.run(LaunchRunner.java:88) at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50) at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52) Caused by: java.lang.NullPointerException at org.pentaho.di.core.row.ValueDataUtil.leftTrim(ValueDataUtil.java:27) at org.pentaho.di.core.row.ValueMeta.trim(ValueMeta.java:1299) at org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1205) at org.pentaho.di.core.row.ValueMeta.convertData(ValueMeta.java:2958) at org.pentaho.di.core.row.ValueMeta.convertBinaryStringToNativeType(ValueMeta.java:1065) at org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1201) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog$6.run(PreviewRowsDialog.java:276) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 24 more

    Pentaho BI Platform Tracking | 9 years ago | Peter Mengaziol
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
  3. 0

    Example for the NPE in the forum over here: http://forums.pentaho.org/showthread.php?p=181529#post181529 org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source) at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:229) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.preview(TableInputDialog.java:568) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.access$300(TableInputDialog.java:62) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog$6.handleEvent(TableInputDialog.java:303) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.open(TableInputDialog.java:335) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:6420) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2153) at org.pentaho.di.ui.spoon.trans.TransGraph.access$100(TransGraph.java:116) at org.pentaho.di.ui.spoon.trans.TransGraph$4.mouseDoubleClick(TransGraph.java:312) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:873) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5626) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5722) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:116) Caused by: java.lang.NullPointerException at org.pentaho.di.core.row.ValueMeta.convertBooleanToString(ValueMeta.java:907) at org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1251) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog$6.run(PreviewRowsDialog.java:276) at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source) ... 31 more

    Pentaho BI Platform Tracking | 9 years ago | Jens Bleuel
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Example for the NPE in the forum over here: http://forums.pentaho.org/showthread.php?p=181529#post181529 org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source) at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:229) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.preview(TableInputDialog.java:568) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.access$300(TableInputDialog.java:62) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog$6.handleEvent(TableInputDialog.java:303) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.open(TableInputDialog.java:335) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:6420) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2153) at org.pentaho.di.ui.spoon.trans.TransGraph.access$100(TransGraph.java:116) at org.pentaho.di.ui.spoon.trans.TransGraph$4.mouseDoubleClick(TransGraph.java:312) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:873) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5626) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5722) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:116) Caused by: java.lang.NullPointerException at org.pentaho.di.core.row.ValueMeta.convertBooleanToString(ValueMeta.java:907) at org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1251) at org.pentaho.di.ui.core.dialog.PreviewRowsDialog$6.run(PreviewRowsDialog.java:276) at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source) ... 31 more

    Pentaho BI Platform Tracking | 9 years ago | Jens Bleuel
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

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

      No message provided

      at org.pentaho.di.core.row.ValueDataUtil.leftTrim()
    2. org.pentaho.di
      PreviewRowsDialog$6.run
      1. org.pentaho.di.core.row.ValueDataUtil.leftTrim(ValueDataUtil.java:27)
      2. org.pentaho.di.core.row.ValueMeta.trim(ValueMeta.java:1299)
      3. org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1205)
      4. org.pentaho.di.core.row.ValueMeta.convertData(ValueMeta.java:2958)
      5. org.pentaho.di.core.row.ValueMeta.convertBinaryStringToNativeType(ValueMeta.java:1065)
      6. org.pentaho.di.core.row.ValueMeta.getString(ValueMeta.java:1201)
      7. org.pentaho.di.ui.core.dialog.PreviewRowsDialog$6.run(PreviewRowsDialog.java:276)
      7 frames
    3. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2958)
      4 frames
    4. org.pentaho.di
      CsvInputDialog$5.handleEvent
      1. org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:229)
      2. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.preview(CsvInputDialog.java:630)
      3. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$300(CsvInputDialog.java:74)
      4. org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$5.handleEvent(CsvInputDialog.java:334)
      4 frames
    5. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
      5. org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
      6. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
      7. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954)
      7 frames
    6. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:873)
      2. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5626)
      3. org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5722)
      4. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:371)
      4 frames
    7. Java RT
      JavaApplicationLauncher.launch
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      5. apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
      6. apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
      7. apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
      7 frames