java.io.FileNotFoundException: /Users/yuri/.m2/repository/com/google/gdata/com.google.gdata.client/1.0.0/com.google.gdata.client-1.0.0.jar.tmp (No such file or directory)

Spring JIRA | Yuri de Wit | 9 years ago
  1. 0

    (sorry but I could not find a spring-aws component int he list above) Although I am successfuly able to deploy artifacts to my S3 buckets, I am not able to get artifacts from it. This exception is what I see: java.io.FileNotFoundException: /Users/yuri/.m2/repository/com/google/gdata/com.google.gdata.client/1.0.0/com.google.gdata.client-1.0.0.jar.tmp (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.springframework.aws.maven.TransferProgressFileOutputStream.<init>(TransferProgressFileOutputStream.java:35) at org.springframework.aws.maven.SimpleStorageServiceWagon.getResource(SimpleStorageServiceWagon.java:102) at org.springframework.aws.maven.AbstractWagon.get(AbstractWagon.java:158) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:347) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:302) The reason is that the destination file passed to the SimpleStorageServiceWagon.getResource() points to a file whose parent folder doesnt exist. Not sure who's responsibility is for making sure that the destination folder exists, but I fixed it by adding too lines there: Index: /Users/yuri/Projects/Workspace/frevvo/spring-aws-maven/src/main/java/org/springframework/aws/maven/SimpleStorageServiceWagon.java =================================================================== --- /Users/yuri/Projects/Workspace/frevvo/spring-aws-maven/src/main/java/org/springframework/aws/maven/SimpleStorageServiceWagon.java (revision 12347) +++ /Users/yuri/Projects/Workspace/frevvo/spring-aws-maven/src/main/java/org/springframework/aws/maven/SimpleStorageServiceWagon.java (working copy) @@ -99,6 +99,8 @@ OutputStream out = null; try { in = object.getDataInputStream(); + if( !destination.getParentFile().exists() ) + destination.getParentFile().mkdirs(); out = new TransferProgressFileOutputStream(destination, progress); byte[] buffer = new byte[1024]; int length;

    Spring JIRA | 9 years ago | Yuri de Wit
    java.io.FileNotFoundException: /Users/yuri/.m2/repository/com/google/gdata/com.google.gdata.client/1.0.0/com.google.gdata.client-1.0.0.jar.tmp (No such file or directory)
  2. 0

    (sorry but I could not find a spring-aws component int he list above) Although I am successfuly able to deploy artifacts to my S3 buckets, I am not able to get artifacts from it. This exception is what I see: java.io.FileNotFoundException: /Users/yuri/.m2/repository/com/google/gdata/com.google.gdata.client/1.0.0/com.google.gdata.client-1.0.0.jar.tmp (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.springframework.aws.maven.TransferProgressFileOutputStream.<init>(TransferProgressFileOutputStream.java:35) at org.springframework.aws.maven.SimpleStorageServiceWagon.getResource(SimpleStorageServiceWagon.java:102) at org.springframework.aws.maven.AbstractWagon.get(AbstractWagon.java:158) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:347) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:302) The reason is that the destination file passed to the SimpleStorageServiceWagon.getResource() points to a file whose parent folder doesnt exist. Not sure who's responsibility is for making sure that the destination folder exists, but I fixed it by adding too lines there: Index: /Users/yuri/Projects/Workspace/frevvo/spring-aws-maven/src/main/java/org/springframework/aws/maven/SimpleStorageServiceWagon.java =================================================================== --- /Users/yuri/Projects/Workspace/frevvo/spring-aws-maven/src/main/java/org/springframework/aws/maven/SimpleStorageServiceWagon.java (revision 12347) +++ /Users/yuri/Projects/Workspace/frevvo/spring-aws-maven/src/main/java/org/springframework/aws/maven/SimpleStorageServiceWagon.java (working copy) @@ -99,6 +99,8 @@ OutputStream out = null; try { in = object.getDataInputStream(); + if( !destination.getParentFile().exists() ) + destination.getParentFile().mkdirs(); out = new TransferProgressFileOutputStream(destination, progress); byte[] buffer = new byte[1024]; int length;

    Spring JIRA | 9 years ago | Yuri de Wit
    java.io.FileNotFoundException: /Users/yuri/.m2/repository/com/google/gdata/com.google.gdata.client/1.0.0/com.google.gdata.client-1.0.0.jar.tmp (No such file or directory)
  3. 0

    TeamCity is leaking caches/git file descriptors

    YouTrack | 6 years ago
    java.io.FileNotFoundException: /data/teamcity/BuildServer/system/pluginData/customDataStorage/buildTypes/bt2613/485653500 (Too many open files)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FileNotFoundException during saving of PDF file

    GitHub | 5 years ago | mbastian
    java.io.FileNotFoundException: C:\****\Untilted.pdf (Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus)
  6. 0

    Marker Issues

    GitHub | 4 years ago | TheSeize
    java.io.FileNotFoundException: plugins/dynmap/web/tiles/_markers_/marker_final.json.new (No such file or directory)

  1. tvrmsmith 1 times, last 1 week ago
  2. eti22 3 times, last 3 weeks ago
  3. tyson925 49 times, last 2 weeks ago
  4. MoYapro 1 times, last 1 month ago
  5. musketyr 3 times, last 1 month ago
24 more registered users
71 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

    /Users/yuri/.m2/repository/com/google/gdata/com.google.gdata.client/1.0.0/com.google.gdata.client-1.0.0.jar.tmp (No such file or directory)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    3 frames
  3. org.springframework.aws
    AbstractWagon.get
    1. org.springframework.aws.maven.TransferProgressFileOutputStream.<init>(TransferProgressFileOutputStream.java:35)
    2. org.springframework.aws.maven.SimpleStorageServiceWagon.getResource(SimpleStorageServiceWagon.java:102)
    3. org.springframework.aws.maven.AbstractWagon.get(AbstractWagon.java:158)
    3 frames
  4. Maven
    DefaultWagonManager.getArtifact
    1. org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462)
    2. org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:347)
    3. org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:302)
    3 frames