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

Sakai JIRA | Bethany Seeger | 3 months ago
  1. 0

    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)

    Sakai JIRA | 3 months ago | Bethany Seeger
    java.io.FileNotFoundException: ../../../../backup/export/bin_dir/fcrepo_4.6_rc/rest/goats/fcr_metadata.ttl (Not a directory)
  2. 0

    unable to create file using sudo user in linux

    Stack Overflow | 1 year ago | Srikanth
    java.io.FileNotFoundException: <<FileName>> (Permission denied)
  3. 0

    Getting the error in starting the OrientDB server in distributed database mode in AWS

    GitHub | 1 year ago | rakeshghodasara
    com.orientechnologies.orient.core.exception.OConfigurationException: Error on creating 'replicator' user
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception on Startup after last Update

    GitHub | 12 months ago | ulise
    java.lang.ExceptionInInitializerError

  1. bluebunnty 8 times, last 2 weeks ago
  2. nasimk 33 times, last 4 days ago
  3. Alexandru Popa 6 times, last 3 weeks ago
  4. pranavprakash 2 times, last 2 months ago
  5. rp 1 times, last 3 months ago
1 more registered users
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

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

    at java.io.FileOutputStream.open0()
  2. Java RT
    FileWriter.<init>
    1. java.io.FileOutputStream.open0(Native Method)
    2. java.io.FileOutputStream.open(FileOutputStream.java:270)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    4. java.io.FileOutputStream.<init>(FileOutputStream.java:162)
    5. java.io.FileWriter.<init>(FileWriter.java:90)
    5 frames
  3. org.fcrepo.exporter
    Exporter.run
    1. org.fcrepo.exporter.Exporter.writeResponse(Exporter.java:143)
    2. org.fcrepo.exporter.Exporter.exportDescription(Exporter.java:119)
    3. org.fcrepo.exporter.Exporter.writeResponse(Exporter.java:151)
    4. org.fcrepo.exporter.Exporter.exportBinary(Exporter.java:107)
    5. org.fcrepo.exporter.Exporter.export(Exporter.java:85)
    6. org.fcrepo.exporter.Exporter.exportMembers(Exporter.java:130)
    7. org.fcrepo.exporter.Exporter.exportDescription(Exporter.java:124)
    8. org.fcrepo.exporter.Exporter.export(Exporter.java:87)
    9. org.fcrepo.exporter.Exporter.run(Exporter.java:79)
    9 frames
  4. org.fcrepo.importexport
    ImportExportDriver.main
    1. org.fcrepo.importexport.ImportExportDriver.run(ImportExportDriver.java:52)
    2. org.fcrepo.importexport.ImportExportDriver.main(ImportExportDriver.java:41)
    2 frames