java.lang.InstantiationException: hudson.node_monitors.TemporarySpaceMonitor

tip

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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
    via by sogabe,
  • 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
    via by sogabe,
  • Cannot compile / run any file
    via by 477116,
  • GitHub comment 32#6733959
    via GitHub by marioosh-net
    ,
  • Getting started with ReST
    via by akhil achuthan,
  • Hibernate DAO factory cannot instantiate dao
    via Stack Overflow by m4ri0
    ,
    • 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.<init>(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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    38 more bugmates