You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pavel Melech (JIRA)" <ji...@apache.org> on 2010/06/06 10:36:53 UTC
[jira] Created: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
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.
[jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876038#action_12876038 ]
Sebb commented on IO-245:
-------------------------
Clearly the Exception is being caught, because the (misspelled) log message is shown in the stack trace.
There are two possibilities here:
Either the JBoss server notices the systemLogger.error call, and decides to shutdown.
Or the caller notices that there is no diskspace left (return false) and decides to shutdown.
Again, this is a problem with the application, not 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.
[jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876034#action_12876034 ]
Sebb commented on IO-245:
-------------------------
Has this happened very often? Or just the once?
According to [1], error code 128 means: ERROR_WAIT_NO_CHILDREN - There are no child processes to wait for.
Not sure why this should happen here - maybe the OS shell terminated abruptly.
However, it seems to me that the caller [2] should be able to handle the error without shutting the system down.
Errors sometimes happen when calling external processes; applications should be able to handle these gracefully.
In this case I would expect it to log an error, and continue.
May I suggest you try running a stand-alone program that calls FileSystemUtils.freeSpaceKb() every so often, and see what happens?
[1] http://msdn.microsoft.com/en-us/library/ms681382%28VS.85%29.aspx
[2] com.proficiency.cg.core.utils.job.ServerDiskSpaceChecker.isDiskSpaceAvailable
> 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.
[jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876036#action_12876036 ]
Sebb commented on IO-245:
-------------------------
Yes, I think you do have a problem, but as far as I can tell it is not in Commons IO, more likely in ServerDiskSpaceChecker.java.
Are you sure it is catching IOException?
And if so, what is it doing with the Exceptiion?
Are you sure it is not reporting a fatal error, which is then being treated by JBoss as requiring shutdown?
> 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.
[jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
Posted by "Pavel Melech (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876037#action_12876037 ]
Pavel Melech commented on IO-245:
---------------------------------
Maybe.....
Can you tell me where is the problem here:
private boolean isDiskSpaceAvailable() {
try {
freeSpaceInMB = (FileSystemUtils.freeSpaceKb(serverWorkDir)) / 1024;
if (freeSpaceInMB < diskSpaceBuffer) {
systemLogger.info("The freeDiskSpaceBuffer is " + diskSpaceBuffer + " and available disk Space InMB " + freeSpaceInMB);
return false;
}
} catch (Exception e) {
systemLogger.error("Filed to check server free disk space. ", e);
return false;
}
return true;
}
This is a method from ServerDiskSpaceChecker. The exception throws from first line after try.....
> 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.
[jira] Resolved: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and
causes to reboot the machine
Posted by "Pavel Melech (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876035#action_12876035 ]
Pavel Melech commented on IO-245:
---------------------------------
I saw it on two different customer sites (the same configuration). I think we have a problem here.
According to call to caller error handling: The cal to FileSystemUtils.freeSpaceKb wrapped by try - catch and it can't be issue.
I can to make something then I catch the exception (this is not a problem), but all the system going to reboot !!!!!
> 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.