Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-245

FileSystemUtils.freeSpaceKb fail and causes to reboot the machine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 1.4
    • None
    • None
    • Win 2003 64-bit, JSDK 1.5 update 6.

    Description

      My application server is running as windows service. One of it's components - responsible check free disk space Then it call to FileSystemUtils.freeSpaceKb(path) - throws IO Exception and server shutting down:

      INFO | jvm 1 | 2010/06/02 23:25:03 | 23:25:03,535 ERROR [ManagementLog] Filed to check server free disk space.
      INFO | jvm 1 | 2010/06/02 23:25:03 | java.io.IOException: Command line returned OS error code '128' for command [cmd.exe, /C, dir /-c D:]
      INFO | jvm 1 | 2010/06/02 23:25:03 | at org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:419)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at org.apache.commons.io.FileSystemUtils.freeSpaceWindows(FileSystemUtils.java:225)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:194)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:166)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at com.proficiency.cg.core.utils.job.ServerDiskSpaceChecker.isDiskSpaceAvailable(ServerDiskSpaceChecker.java:151)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at com.proficiency.cg.core.utils.job.ServerDiskSpaceChecker.perform(ServerDiskSpaceChecker.java:93)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1221)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at java.lang.reflect.Method.invoke(Method.java:585)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at $Proxy9.handleNotification(Unknown Source)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at javax.management.timer.Timer.sendNotification(Timer.java:1295)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at java.util.TimerThread.mainLoop(Timer.java:512)
      INFO | jvm 1 | 2010/06/02 23:25:03 | at java.util.TimerThread.run(Timer.java:462)
      STATUS | wrapper | 2010/06/02 23:25:16 | Machine is shutting down.
      INFO | jvm 1 | 2010/06/02 23:25:16 | 23:25:16,754 INFO [Server] JBoss SHUTDOWN: Undeploying all packages

      Attachments

        Activity

          People

            Unassigned Unassigned
            pavelmmel Pavel Melech
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: