java.io.FileNotFoundException: ../../../../backup/export/bin_dir/fcrepo_4.6_rc/rest/goats/fcr_metadata.ttl (Not a directory)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If you run with the description dir and binary dir being the same path, there is a collision on file name (and directory) for binaries. This is a normal run, where `goats` is the binary: ├── bin_dir │   └── fcrepo_4.6_rc │   └── rest │   └── goats └── desc_dir └── fcrepo_4.6_rc ├── rest │   ├── asc │   │   ├── 336 │   │   │   └── members.ttl │   │   └── 336.ttl │   ├── asc.ttl │   └── goats │   └── fcr_metadata.ttl └── rest.ttl But if I use the same dir for both I get an error that I believe to be cause by a name collision: BuckyKatt:/Users/bseeger/Projects/fedora/fcrepo4-labs/fcrepo-import-export/fcrepo-import-export-driver/target>java -jar fcrepo-import-export-driver-0.0.1-SNAPSHOT.jar -m export --binDir ../../../../backup/export/bin_dir --descDir ../../../../backup/export/bin_dir --resource http://localhost:8080/fcrepo_4.6_rc/rest Exporting! java.io.FileNotFoundException: ../../../../backup/export/bin_dir/fcrepo_4.6_rc/rest/goats/fcr_metadata.ttl (Not a directory) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at java.io.FileWriter.<init>(FileWriter.java:90) at org.fcrepo.exporter.Exporter.writeResponse(Exporter.java:143) at org.fcrepo.exporter.Exporter.exportDescription(Exporter.java:119) at org.fcrepo.exporter.Exporter.writeResponse(Exporter.java:151) at org.fcrepo.exporter.Exporter.exportBinary(Exporter.java:107) at org.fcrepo.exporter.Exporter.export(Exporter.java:85) at org.fcrepo.exporter.Exporter.exportMembers(Exporter.java:130) at org.fcrepo.exporter.Exporter.exportDescription(Exporter.java:124) at org.fcrepo.exporter.Exporter.export(Exporter.java:87) at org.fcrepo.exporter.Exporter.run(Exporter.java:79) at org.fcrepo.importexport.ImportExportDriver.run(ImportExportDriver.java:52) at org.fcrepo.importexport.ImportExportDriver.main(ImportExportDriver.java:41)
    via by Bethany Seeger,
  • GitHub comment 65#184989908
    via GitHub by shekmun
    ,
  • Cannot get list items to a txt file
    via Stack Overflow by AAlzaabi
    ,
  • GitHub comment 65#205039580
    via GitHub by MrMindlink
    ,
    • java.io.FileNotFoundException: ../../../../backup/export/bin_dir/fcrepo_4.6_rc/rest/goats/fcr_metadata.ttl (Not a directory) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at java.io.FileWriter.<init>(FileWriter.java:90) at org.fcrepo.exporter.Exporter.writeResponse(Exporter.java:143) at org.fcrepo.exporter.Exporter.exportDescription(Exporter.java:119) at org.fcrepo.exporter.Exporter.writeResponse(Exporter.java:151) at org.fcrepo.exporter.Exporter.exportBinary(Exporter.java:107) at org.fcrepo.exporter.Exporter.export(Exporter.java:85) at org.fcrepo.exporter.Exporter.exportMembers(Exporter.java:130) at org.fcrepo.exporter.Exporter.exportDescription(Exporter.java:124) at org.fcrepo.exporter.Exporter.export(Exporter.java:87) at org.fcrepo.exporter.Exporter.run(Exporter.java:79) at org.fcrepo.importexport.ImportExportDriver.run(ImportExportDriver.java:52) at org.fcrepo.importexport.ImportExportDriver.main(ImportExportDriver.java:41)

    Users with the same issue

    olle.hallin
    olle.hallin5 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    103 more bugmates