java.lang.Exception: java.lang.NullPointerException

Pentaho BI Platform Tracking | Paula Clemente | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When deleting more than one Domain File, we get a NullPointerException. Check the attached screenshot. *Repro-path* # Start PME # Create a new Domain File (File > New > Domain File) # Create a new Business Model (File > New > Business Model). Don't need to change anything on Business Model Properties dialog, just click OK. # Click on Save. Enter a name, eg "myDomain_v1" # Repeat Steps 2-3-4. When saving the new domain, name it "myDomain_v2" # Go to File > Delete Domain. Select *myDomain_v2* and click OK. Click Yes to confirm. # Go to File > Delete Domain. Select *myDomain_v1* and click OK. Click Yes to confirm. *Actual Result* We get a NullPointerException. *Expected Result* We should be able to delete all Domain files. The aplication shouldn't throw any error/exception. \\ Stacktrace: {code} java.lang.Exception: java.lang.NullPointerException at org.pentaho.pms.ui.MetaEditor.deleteFile(MetaEditor.java:3007) at org.pentaho.pms.ui.MetaEditor$18.handleEvent(MetaEditor.java:554) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:859) at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3648) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) Caused by: java.lang.NullPointerException at org.pentaho.pms.ui.MetaEditor.deleteFile(MetaEditor.java:2996) ... 16 more {code}

    Pentaho BI Platform Tracking | 1 year ago | Paula Clemente
    java.lang.Exception: java.lang.NullPointerException
  2. 0

    When deleting more than one Domain File, we get a NullPointerException. Check the attached screenshot. *Repro-path* # Start PME # Create a new Domain File (File > New > Domain File) # Create a new Business Model (File > New > Business Model). Don't need to change anything on Business Model Properties dialog, just click OK. # Click on Save. Enter a name, eg "myDomain_v1" # Repeat Steps 2-3-4. When saving the new domain, name it "myDomain_v2" # Go to File > Delete Domain. Select *myDomain_v2* and click OK. Click Yes to confirm. # Go to File > Delete Domain. Select *myDomain_v1* and click OK. Click Yes to confirm. *Actual Result* We get a NullPointerException. *Expected Result* We should be able to delete all Domain files. The aplication shouldn't throw any error/exception. \\ Stacktrace: {code} java.lang.Exception: java.lang.NullPointerException at org.pentaho.pms.ui.MetaEditor.deleteFile(MetaEditor.java:3007) at org.pentaho.pms.ui.MetaEditor$18.handleEvent(MetaEditor.java:554) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:859) at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3648) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) Caused by: java.lang.NullPointerException at org.pentaho.pms.ui.MetaEditor.deleteFile(MetaEditor.java:2996) ... 16 more {code}

    Pentaho BI Platform Tracking | 1 year ago | Paula Clemente
    java.lang.Exception: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.pms.ui.MetaEditor.deleteFile()
    2. org.pentaho.pms
      MetaEditor$18.handleEvent
      1. org.pentaho.pms.ui.MetaEditor.deleteFile(MetaEditor.java:2996)
      2. org.pentaho.pms.ui.MetaEditor$18.handleEvent(MetaEditor.java:554)
      2 frames
    3. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      2. org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      6. org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source)
      7. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      8. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      8 frames
    4. org.pentaho.pms
      MetaEditor.main
      1. org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:859)
      2. org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3648)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
      1 frame