You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/06/06 14:44:57 UTC

[jira] Resolved: (IO-245) FileSystemUtils.freeSpaceKb fail and causes to reboot the machine

     [ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved IO-245.
---------------------

    Resolution: Invalid

This is not a problem in Commons IO.

> FileSystemUtils.freeSpaceKb fail and causes to reboot the machine
> -----------------------------------------------------------------
>
>                 Key: IO-245
>                 URL: https://issues.apache.org/jira/browse/IO-245
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Win 2003 64-bit, JSDK 1.5 update 6.
>            Reporter: Pavel Melech
>            Priority: Critical
>
> 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
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.