java.lang.NullPointerException

Pentaho BI Platform Tracking | Sadiel | 7 years ago
  1. 0

    It is not difficult to corrupt the repositories.xml file which will prevent spoon from opening Repro: Note: This MUST be done with a clean repositories.xml file (Erase existing one completely if there is anything in it) 1) Start Spoon 2) Create a connection to an EE repository that is NOT running (localhost in my test case) 3) Attempt to login 4) Close error dialog 5) Press Cancel to proceed to Spoon 6) Close Spoon 7) Try to re-open spoon (You will see the following exception in Spoon's console if you enabled it and put a "pause" at the end) java.lang.NullPointerException at org.pentaho.di.ui.repository.model.RepositoriesModel.getRepositoryIndex(RepositoriesModel.java:124) at org.pentaho.di.ui.repository.controllers.RepositoriesController.show(RepositoriesController.java:188) at org.pentaho.di.ui.repository.RepositoriesDialog.show(RepositoriesDialog.java:102) at org.pentaho.di.ui.spoon.Spoon.selectRep(Spoon.java:6752) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6918) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567) 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:134) ERROR 06-04 16:22:33,388 - Spoon - Fatal error : java.lang.NullPointerException ERROR 06-04 16:22:33,388 - Spoon - java.lang.NullPointerException at org.pentaho.di.ui.repository.model.RepositoriesModel.getRepositoryIndex(RepositoriesModel.java:124) at org.pentaho.di.ui.repository.controllers.RepositoriesController.show(RepositoriesController.java:188) at org.pentaho.di.ui.repository.RepositoriesDialog.show(RepositoriesDialog.java:102) at org.pentaho.di.ui.spoon.Spoon.selectRep(Spoon.java:6752) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6918) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567) 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:134)

    Pentaho BI Platform Tracking | 5 years ago | Curtis Boyden
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    It is not difficult to corrupt the repositories.xml file which will prevent spoon from opening Repro: Note: This MUST be done with a clean repositories.xml file (Erase existing one completely if there is anything in it) 1) Start Spoon 2) Create a connection to an EE repository that is NOT running (localhost in my test case) 3) Attempt to login 4) Close error dialog 5) Press Cancel to proceed to Spoon 6) Close Spoon 7) Try to re-open spoon (You will see the following exception in Spoon's console if you enabled it and put a "pause" at the end) java.lang.NullPointerException at org.pentaho.di.ui.repository.model.RepositoriesModel.getRepositoryIndex(RepositoriesModel.java:124) at org.pentaho.di.ui.repository.controllers.RepositoriesController.show(RepositoriesController.java:188) at org.pentaho.di.ui.repository.RepositoriesDialog.show(RepositoriesDialog.java:102) at org.pentaho.di.ui.spoon.Spoon.selectRep(Spoon.java:6752) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6918) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567) 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:134) ERROR 06-04 16:22:33,388 - Spoon - Fatal error : java.lang.NullPointerException ERROR 06-04 16:22:33,388 - Spoon - java.lang.NullPointerException at org.pentaho.di.ui.repository.model.RepositoriesModel.getRepositoryIndex(RepositoriesModel.java:124) at org.pentaho.di.ui.repository.controllers.RepositoriesController.show(RepositoriesController.java:188) at org.pentaho.di.ui.repository.RepositoriesDialog.show(RepositoriesDialog.java:102) at org.pentaho.di.ui.spoon.Spoon.selectRep(Spoon.java:6752) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6918) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567) 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:134)

    Pentaho BI Platform Tracking | 5 years ago | Curtis Boyden
    java.lang.NullPointerException
  4. 0

    Contribution in debugging..

    pentaho.com | 1 year ago
    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.ui.spoon.TransFileListener.open()
    2. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.TransFileListener.open(TransFileListener.java:61)
      2. org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3100)
      3. org.pentaho.di.ui.spoon.Spoon.loadLastUsedFile(Spoon.java:5704)
      4. org.pentaho.di.ui.spoon.Spoon.handleStartOptions(Spoon.java:5532)
      5. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5555)
      6. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:412)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames