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

Failed to instantiate TemporarySpaceMonitor and DiskSpaceMonitor

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Gentoo Linux
      Sun JDK 1.6.0_17 64bit

      Hudson 1.339 (clean install)

      I got the forrowing stack trace. Perhaps TemporarySpaceMonitor and DiskSpaceMonitor should have a default constructor.

      — START —
      2009/12/29 21:40:43 hudson.model.ComputerSet createDefaultInstance
      致命的: Failed to instanciate class hudson.node_monitors.TemporarySpaceMonitor
      java.lang.InstantiationException: hudson.node_monitors.TemporarySpaceMonitor
      at java.lang.Class.newInstance0(Class.java:340)
      at java.lang.Class.newInstance(Class.java:308)
      at hudson.model.ComputerSet.createDefaultInstance(ComputerSet.java:381)
      at hudson.model.ComputerSet.(ComputerSet.java:369)
      at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:214)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

      2009/12/29 21:40:43 hudson.model.ComputerSet createDefaultInstance
      致命的: Failed to instanciate class hudson.node_monitors.DiskSpaceMonitor
      java.lang.InstantiationException: hudson.node_monitors.DiskSpaceMonitor
      at java.lang.Class.newInstance0(Class.java:340)
      at java.lang.Class.newInstance(Class.java:308)
      at hudson.model.ComputerSet.createDefaultInstance(ComputerSet.java:381)
      at hudson.model.ComputerSet.(ComputerSet.java:369)
      at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:214)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

      2009/12/29 21:40:42 hudson.model.DownloadService$Downloadable doPostBack
      情報: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
      — END —

      Steps to reproduce

      1. rm -rf $HUDSON_HOME; mkdir $HUDSON_HOME
      2. java -jar hudson.jar
      3. see Hudson.log

          [JENKINS-5162] Failed to instantiate TemporarySpaceMonitor and DiskSpaceMonitor

          ashlux added a comment -

          Introduced with JENKINS-2552.

          ashlux added a comment - Introduced with JENKINS-2552 .

          ashlux added a comment -

          On a fresh install temp space and disk space are not monitored because of this problem. As a workaround, enabling both monitors fixes the problem.

          ashlux added a comment - On a fresh install temp space and disk space are not monitored because of this problem. As a workaround, enabling both monitors fixes the problem.

          ashlux added a comment -

          I've attached a possible fix.

          I'm not seeing a better way to do this without a default constructor. I am more than happy to commit this fix unless someone has a better idea.

          Since I'm new here, I'm going to wait for word before doing anything (and in particular http://wiki.jenkins-ci.org/display/JENKINS/About+Hudson+project says I should discuss changes at first before making them).

          ashlux added a comment - I've attached a possible fix. I'm not seeing a better way to do this without a default constructor. I am more than happy to commit this fix unless someone has a better idea. Since I'm new here, I'm going to wait for word before doing anything (and in particular http://wiki.jenkins-ci.org/display/JENKINS/About+Hudson+project says I should discuss changes at first before making them).

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/node_monitors/AbstractDiskSpaceMonitor.java
          trunk/hudson/main/core/src/main/java/hudson/node_monitors/DiskSpaceMonitor.java
          trunk/hudson/main/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=25730
          Log:
          [FIXED JENKINS-5162] in 1.341.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/node_monitors/AbstractDiskSpaceMonitor.java trunk/hudson/main/core/src/main/java/hudson/node_monitors/DiskSpaceMonitor.java trunk/hudson/main/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=25730 Log: [FIXED JENKINS-5162] in 1.341.

            Unassigned Unassigned
            sogabe sogabe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: