Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5557

java.io.FileNotFoundException when starting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • trayapp
    • None
    • IE 7.0, Windows XP, Hudson 1.344 (Linux), J2SE 1.5

      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)

            1. Java Web Start Error:
            2. 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.

            davyboyhayes davyboyhayes
            hmonteiro hmonteiro
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: