FileUtils recursive delete may throw NullPointerException if files are deleted 
outside of the JVM
-------------------------------------------------------------------------------------------------

                 Key: QPID-1803
                 URL: https://issues.apache.org/jira/browse/QPID-1803
             Project: Qpid
          Issue Type: Bug
          Components: Java Common
    Affects Versions: M4
            Reporter: Martin Ritchie
            Priority: Minor
             Fix For: 0.5


Summary:

When performing a recursive delete if a file that java has not yet processed is 
deleted then a NPE will be thrown an example of this can be seen when the FtD 
code is clearing the queueBacking store and the user is performing an rm -rf of 
the backing store at the same time:

java.lang.NullPointerException
        at org.apache.qpid.util.FileUtils.delete(FileUtils.java:253)
        at org.apache.qpid.util.FileUtils.delete(FileUtils.java:255)
        at org.apache.qpid.util.FileUtils.delete(FileUtils.java:255)
        at 
org.apache.qpid.server.queue.FileQueueBackingStoreFactory.setFlowToDisk(FileQueueBackingStoreFactory.java:87)
        at 
org.apache.qpid.server.queue.FileQueueBackingStoreFactory.configure(FileQueueBackingStoreFactory.java:41)


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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to