commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCI-68) FilesystemAlterationMonitor NullPointerException when directory not readable
Date Mon, 19 Aug 2013 10:15:49 GMT

    [ https://issues.apache.org/jira/browse/JCI-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743700#comment-13743700
] 

Emmanuel Bourg commented on JCI-68:
-----------------------------------

Thank you for the report Jan.

We'll have to check if the FileAlterationMonitor of commons-io is also affected by this issue.

Here is the stacktrace:

{code}
Exception in thread "Thread-1" java.lang.NullPointerException
        at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl$MonitorFileImpl.listFiles(FilesystemAlterationObserverImpl.java:64)
        at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl$Entry.compareChilds(FilesystemAlterationObserverImpl.java:119)
        at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl$Entry.needsToBeDeleted(FilesystemAlterationObserverImpl.java:203)
        at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkEntries(FilesystemAlterationObserverImpl.java:317)
        at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkAndNotify(FilesystemAlterationObserverImpl.java:331)
        at org.apache.commons.jci.monitor.FilesystemAlterationMonitor.run(FilesystemAlterationMonitor.java:122)
        at java.lang.Thread.run(Thread.java:662)

{code}
                
> FilesystemAlterationMonitor NullPointerException when directory not readable
> ----------------------------------------------------------------------------
>
>                 Key: JCI-68
>                 URL: https://issues.apache.org/jira/browse/JCI-68
>             Project: Commons JCI
>          Issue Type: Bug
>          Components: fam
>    Affects Versions: 1.1
>         Environment: Linux
>            Reporter: Jan
>              Labels: fam, permissions
>             Fix For: 1.1
>
>         Attachments: FileAlteration.java
>
>
> When one of the directories monitored by the FilesystemAlterationMonitor is not readable
by the proess, the monitoring crashes with a NullPointerException

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message