Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 57212 invoked from network); 6 Jun 2010 12:43:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Jun 2010 12:43:20 -0000 Received: (qmail 38176 invoked by uid 500); 6 Jun 2010 12:43:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 37931 invoked by uid 500); 6 Jun 2010 12:43:20 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 37922 invoked by uid 99); 6 Jun 2010 12:43:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jun 2010 12:43:20 +0000 X-ASF-Spam-Status: No, hits=-1501.1 required=10.0 tests=ALL_TRUSTED,AWL,T_FRT_PROFILE2 X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jun 2010 12:43:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o56CgwOX003535 for ; Sun, 6 Jun 2010 12:42:59 GMT Message-ID: <13685543.205281275828178826.JavaMail.jira@thor> Date: Sun, 6 Jun 2010 08:42:58 -0400 (EDT) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (IO-245) FileSystemUtils.freeSpaceKb fail and causes to reboot the machine In-Reply-To: <24013746.204431275813413757.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.