Skip to main content
WolfShade
Legend
July 23, 2012
Question

cfcollection not deleting files - "open in java"

  • July 23, 2012
  • 1 reply
  • 1082 views

Hello, everyone.

While testing a cfcollection delete, I noticed that not only will it not remove the collection from CFAdmin (refreshing the collections page shows the collection still there), but if you go into the folder and try to manually delete the files, an error message appears saying that the files cannot be deleted because they are still open in java.

The only way (so far) that I've been able to delete the files is by stopping the CF service, delete the files, then restart the CF service.  Both Verity and Solr.

This is also preventing the collections from being optimized (no change), but not preventing indexing.

Is this a bug?  Has anyone else experienced this?

Alienware Area 51 - Windows 7 Pro - 12G RAM - Intel Core i7 2.80GHz - ColdFusion 9.0.1

Thanks,

^_^

    This topic has been closed for replies.

    1 reply

    Cyril Hanquez
    Participating Frequently
    July 23, 2012

    As you're running windows, I just found this in the documentation

    You cannot delete Verity collections on Windows if they are created outside of the ColdFusion collections directory or on a drive other than C:, D: or E:. To use a different drive letter, edit the cf_dir/verity/common/verity.cfg file and replace an entry with the directory you wish to use

    Is it your case?

    Cyril

    WolfShade
    WolfShadeAuthor
    Legend
    July 23, 2012

    Thank you for your reply, Cyril.  No, that is not my case. 

    I have the collections in C:\ColdFusion9\collections, which I understand to be the default CF collections directory. 

    Also, this isn't limited to Verity; it's happening to Solr, too.

    Thanks,

    ^_^

    Cyril Hanquez
    Participating Frequently
    July 23, 2012

    Can you check if there's anything wrong in the logs? Are CF services running with a dedicated or power user? Haven't played much with Solr or Verity so trying to find a clue... :-)