java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Contribution in debugging..
    via by Unknown author,
  • 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)
    via by Curtis Boyden,
  • 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)
    via by Curtis Boyden,
    • java.lang.NullPointerException at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:420)
    No Bugmate found.