java.io.FileNotFoundException

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.

  • (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;
    via by Yuri de Wit,
  • (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;
    via by Yuri de Wit,
  • TeamCity is leaking caches/git file descriptors
    via by Unknown author,
  • Marker Issues
    via GitHub by TheSeize
    ,
  • Embedded Jetty | Page number 3 | PC E-World
    via by Unknown author,
    • 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)

    Users with the same issue

    filipebatista
    4 times, last one,
    Matty
    1 times, last one,
    Unknown visitor1 times, last one,
    Axelo
    2 times, last one,
    rp
    1 times, last one,
    150 more bugmates