java.lang.NullPointerException

Jenkins JIRA | dadoonet | 7 years ago
  1. 0

    When starting the Tray App, it crashes with an "Application Error" Window. Application Error: 1)Launch file: --- copy/paste --- <?xml version="1.0" encoding="UTF-8"?><jnlp codebase="http://192.168.1.1:8082/hudson/plugin/hudsontrayapp/"><information><title>Hudson Tray Application</title><vendor>David Hayes</vendor><offline-allowed/></information><security><all-permissions/></security><resources><jar href="HudsonTrayApp.jar" main="true" download="eager"/><j2se version="1.6+" initial-heap-size="32m" max-heap-size="32m"/><j2se version="1.5" initial-heap-size="32m" max-heap-size="32m"><resources><extension name="jdic" href="jdic"/></resources></j2se><j2se version="1.4" initial-heap-size="32m" max-heap-size="32m"><resources><extension name="jdic" href="jdic"/></resources></j2se></resources><application-desc main-class="org.hudson.trayapp.HudsonTrayApp"><argument>server=http://192.168.1.1:8082/hudson/</argument></application-desc></jnlp> --- end copy/paste --- 2)Exception: --- copy/paste --- java.lang.NullPointerException at org.hudson.trayapp.gui.tray.TrayIconImplementation.displayException(TrayIconImplementation.java:36) at org.hudson.trayapp.model.Server.isHudsonBuild173orGreater(Server.java:294) at org.hudson.trayapp.model.Server.update(Server.java:70) at org.hudson.trayapp.model.Server.<init>(Server.java:45) at org.hudson.trayapp.model.Model.addServer(Model.java:65) at org.hudson.trayapp.HudsonTrayApp.<init>(HudsonTrayApp.java:75) at org.hudson.trayapp.HudsonTrayApp.getHudsonTrayAppInstance(HudsonTrayApp.java:47) at org.hudson.trayapp.HudsonTrayApp.main(HudsonTrayApp.java:39) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) --- end copy/paste --- 3)Console: --- copy/paste --- java.io.FileNotFoundException: C:\Documents and Settings\myuser\.hudson\trayapp\preferences (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at org.hudson.trayapp.HudsonTrayApp.<init>(HudsonTrayApp.java:65) at org.hudson.trayapp.HudsonTrayApp.getHudsonTrayAppInstance(HudsonTrayApp.java:47) at org.hudson.trayapp.HudsonTrayApp.main(HudsonTrayApp.java:39) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #### Java Web Start Error: #### null --- end copy/paste --- NOTE: Hudson configuration doesn't allow jobs to be viewed by anonymous users. So you have to login in order to view anything at all. Following the link present in XML dump (logged in), the output is: --- copy/paste --- Status Code: 404 Exception: Stacktrace: (none) -------------------------------------------------------------------------------- Generated by Winstone Servlet Engine v0.9.10 at Tue Feb 09 11:14:23 WET 2010 --- end copy/paste --- Another issue I noticed, that could have to do with this problem is, although I'm not loged in hudson, the "Launch Tray App" link in the left menu still appears, but the image is not loaded. Following the image link access is denied because I'm not authenticated to load it.

    Jenkins JIRA | 7 years ago | hmonteiro
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    When starting the Tray App, it crashes with an "Application Error" Window. Application Error: 1)Launch file: --- copy/paste --- <?xml version="1.0" encoding="UTF-8"?><jnlp codebase="http://192.168.1.1:8082/hudson/plugin/hudsontrayapp/"><information><title>Hudson Tray Application</title><vendor>David Hayes</vendor><offline-allowed/></information><security><all-permissions/></security><resources><jar href="HudsonTrayApp.jar" main="true" download="eager"/><j2se version="1.6+" initial-heap-size="32m" max-heap-size="32m"/><j2se version="1.5" initial-heap-size="32m" max-heap-size="32m"><resources><extension name="jdic" href="jdic"/></resources></j2se><j2se version="1.4" initial-heap-size="32m" max-heap-size="32m"><resources><extension name="jdic" href="jdic"/></resources></j2se></resources><application-desc main-class="org.hudson.trayapp.HudsonTrayApp"><argument>server=http://192.168.1.1:8082/hudson/</argument></application-desc></jnlp> --- end copy/paste --- 2)Exception: --- copy/paste --- java.lang.NullPointerException at org.hudson.trayapp.gui.tray.TrayIconImplementation.displayException(TrayIconImplementation.java:36) at org.hudson.trayapp.model.Server.isHudsonBuild173orGreater(Server.java:294) at org.hudson.trayapp.model.Server.update(Server.java:70) at org.hudson.trayapp.model.Server.<init>(Server.java:45) at org.hudson.trayapp.model.Model.addServer(Model.java:65) at org.hudson.trayapp.HudsonTrayApp.<init>(HudsonTrayApp.java:75) at org.hudson.trayapp.HudsonTrayApp.getHudsonTrayAppInstance(HudsonTrayApp.java:47) at org.hudson.trayapp.HudsonTrayApp.main(HudsonTrayApp.java:39) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) --- end copy/paste --- 3)Console: --- copy/paste --- java.io.FileNotFoundException: C:\Documents and Settings\myuser\.hudson\trayapp\preferences (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at org.hudson.trayapp.HudsonTrayApp.<init>(HudsonTrayApp.java:65) at org.hudson.trayapp.HudsonTrayApp.getHudsonTrayAppInstance(HudsonTrayApp.java:47) at org.hudson.trayapp.HudsonTrayApp.main(HudsonTrayApp.java:39) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #### Java Web Start Error: #### null --- end copy/paste --- NOTE: Hudson configuration doesn't allow jobs to be viewed by anonymous users. So you have to login in order to view anything at all. Following the link present in XML dump (logged in), the output is: --- copy/paste --- Status Code: 404 Exception: Stacktrace: (none) -------------------------------------------------------------------------------- Generated by Winstone Servlet Engine v0.9.10 at Tue Feb 09 11:14:23 WET 2010 --- end copy/paste --- Another issue I noticed, that could have to do with this problem is, although I'm not loged in hudson, the "Launch Tray App" link in the left menu still appears, but the image is not loaded. Following the image link access is denied because I'm not authenticated to load it.

    Jenkins JIRA | 7 years ago | hmonteiro
    java.lang.NullPointerException
  4. 0

    During launching the JNLP the following NPE is thrown. {{java.lang.NullPointerException at org.hudson.trayapp.gui.tray.TrayIconImplementation.displayException(TrayIconImplementation.java:36) at org.hudson.trayapp.model.Server.isHudsonBuild173orGreater(Server.java:294) at org.hudson.trayapp.model.Server.update(Server.java:70) at org.hudson.trayapp.model.Server.<init>(Server.java:45) at org.hudson.trayapp.model.Model.addServer(Model.java:65) at org.hudson.trayapp.HudsonTrayApp.<init>(HudsonTrayApp.java:75) at org.hudson.trayapp.HudsonTrayApp.getHudsonTrayAppInstance(HudsonTrayApp.java:47) at org.hudson.trayapp.HudsonTrayApp.main(HudsonTrayApp.java:39) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)}} {{<jnlp codebase="http://valid-ip:8080/jenkins/plugin/hudsontrayapp/"> <information> <title>Hudson Tray Application</title> <vendor>David Hayes</vendor> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <jar href="HudsonTrayApp.jar" main="true" download="eager"/> <j2se version="1.6+" initial-heap-size="32m" max-heap-size="32m"/> <j2se version="1.5" initial-heap-size="32m" max-heap-size="32m"> <resources> <extension name="jdic" href="jdic"/> </resources> </j2se> <j2se version="1.4" initial-heap-size="32m" max-heap-size="32m"> <resources> <extension name="jdic" href="jdic"/> </resources> </j2se> </resources> <application-desc main-class="org.hudson.trayapp.HudsonTrayApp"> <argument>server=http://valid-ip:8080/jenkins/</argument> </application-desc> </jnlp>}}

    Jenkins JIRA | 4 years ago | Christian Schulze
    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.hudson.trayapp.gui.tray.TrayIconImplementation.displayException()
    2. org.hudson.trayapp
      HudsonTrayApp.main
      1. org.hudson.trayapp.gui.tray.TrayIconImplementation.displayException(TrayIconImplementation.java:36)
      2. org.hudson.trayapp.model.Server.update(Server.java:98)
      3. org.hudson.trayapp.model.Server.<init>(Server.java:45)
      4. org.hudson.trayapp.model.Model.addServer(Model.java:65)
      5. org.hudson.trayapp.HudsonTrayApp.<init>(HudsonTrayApp.java:75)
      6. org.hudson.trayapp.HudsonTrayApp.getHudsonTrayAppInstance(HudsonTrayApp.java:47)
      7. org.hudson.trayapp.HudsonTrayApp.main(HudsonTrayApp.java:39)
      7 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
    4. com.sun.javaws
      Launcher.run
      1. com.sun.javaws.Launcher.executeApplication(Unknown Source)
      2. com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      3. com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      4. com.sun.javaws.Launcher.run(Unknown Source)
      4 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame