java.io.IOException: A file cannot be of zero length: /repositories/third-party/test/test/1.0/test-1.0.jar

JFrog JIRA | Vitaliy Morarian | 8 years ago
  1. 0

    I can't deploy artifact. Command line: mvn deploy:deploy-file -DrepositoryId=id -Durl=http://maven.domain/artifactory/third-party -DgroupId=test -DartifactId=test -Dversion=1.0 -Dpackaging=jar -Dfile=test.jar In console I get: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [deploy:deploy-file] Uploading: http://maven.domain/artifactory/third-party/test/test/1.0/test-1.0.jar 754K uploaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: http://maven.domain/artifactory/third-party/test/test/1.0/test-1.0.jar. Return code is: 500 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 seconds [INFO] Finished at: Tue Jun 17 21:10:15 EEST 2008 [INFO] Final Memory: 4M/7M [INFO] ------------------------------------------------------------------------ Log file: 2008-06-17 21:06:25,847 [ERROR] (RepoFilter.java:164{10}) - Upload request failed java.io.IOException: A file cannot be of zero length: /repositories/third-party/test/test/1.0/test-1.0.jar at org.artifactory.jcr.fs.JcrFile.<init>(JcrFile.java:165) at org.artifactory.jcr.fs.JcrFile.create(JcrFile.java:86) at org.artifactory.jcr.JackrabbitJcrWrapper.importStream(JackrabbitJcrWrapper.java:331) at org.artifactory.repo.JcrRepo$3.doInJcr(JcrRepo.java:395) at org.artifactory.repo.JcrRepo$3.doInJcr(JcrRepo.java:381) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:381) at org.artifactory.engine.UploadEngine.process(UploadEngine.java:198) at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:162) at org.artifactory.webapp.servlet.RepoFilter.access$100(RepoFilter.java:48) at org.artifactory.webapp.servlet.RepoFilter$JcrWebEntry.doInJcr(RepoFilter.java:111) at org.artifactory.webapp.servlet.RepoFilter$JcrWebEntry.doInJcr(RepoFilter.java:94) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:80) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:110) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:105) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:172) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:110) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:110) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:105) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) at org.apache.jk.server.JkCoyoteHandler.invoke(Unknown Source)

    JFrog JIRA | 8 years ago | Vitaliy Morarian
    java.io.IOException: A file cannot be of zero length: /repositories/third-party/test/test/1.0/test-1.0.jar
  2. 0

    I can't deploy artifact. Command line: mvn deploy:deploy-file -DrepositoryId=id -Durl=http://maven.domain/artifactory/third-party -DgroupId=test -DartifactId=test -Dversion=1.0 -Dpackaging=jar -Dfile=test.jar In console I get: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [deploy:deploy-file] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [deploy:deploy-file] Uploading: http://maven.domain/artifactory/third-party/test/test/1.0/test-1.0.jar 754K uploaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: http://maven.domain/artifactory/third-party/test/test/1.0/test-1.0.jar. Return code is: 500 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 seconds [INFO] Finished at: Tue Jun 17 21:10:15 EEST 2008 [INFO] Final Memory: 4M/7M [INFO] ------------------------------------------------------------------------ Log file: 2008-06-17 21:06:25,847 [ERROR] (RepoFilter.java:164{10}) - Upload request failed java.io.IOException: A file cannot be of zero length: /repositories/third-party/test/test/1.0/test-1.0.jar at org.artifactory.jcr.fs.JcrFile.<init>(JcrFile.java:165) at org.artifactory.jcr.fs.JcrFile.create(JcrFile.java:86) at org.artifactory.jcr.JackrabbitJcrWrapper.importStream(JackrabbitJcrWrapper.java:331) at org.artifactory.repo.JcrRepo$3.doInJcr(JcrRepo.java:395) at org.artifactory.repo.JcrRepo$3.doInJcr(JcrRepo.java:381) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:381) at org.artifactory.engine.UploadEngine.process(UploadEngine.java:198) at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:162) at org.artifactory.webapp.servlet.RepoFilter.access$100(RepoFilter.java:48) at org.artifactory.webapp.servlet.RepoFilter$JcrWebEntry.doInJcr(RepoFilter.java:111) at org.artifactory.webapp.servlet.RepoFilter$JcrWebEntry.doInJcr(RepoFilter.java:94) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:80) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:110) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:105) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:172) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:110) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:110) at org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:105) at org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) at org.apache.jk.server.JkCoyoteHandler.invoke(Unknown Source)

    JFrog JIRA | 8 years ago | Vitaliy Morarian
    java.io.IOException: A file cannot be of zero length: /repositories/third-party/test/test/1.0/test-1.0.jar
  3. 0

    Simulate an IOException?

    Oracle Community | 1 decade ago | 807593
    java.io.IOException: TEST
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 10#13045259

    GitHub | 4 years ago | acraciun
    java.io.IOException: Could not create directory: C:\workspace\test\target\test-1.0\generated-js\META-INF
  6. 0

    GitHub comment 10#13045125

    GitHub | 4 years ago | ghost
    java.io.IOException: Could not create directory: C:\workspace\test\target\test-1.0\generated-js\META-INF

    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.IOException

      A file cannot be of zero length: /repositories/third-party/test/test/1.0/test-1.0.jar

      at org.artifactory.jcr.fs.JcrFile.<init>()
    2. org.artifactory.jcr
      JackrabbitJcrWrapper.importStream
      1. org.artifactory.jcr.fs.JcrFile.<init>(JcrFile.java:165)
      2. org.artifactory.jcr.fs.JcrFile.create(JcrFile.java:86)
      3. org.artifactory.jcr.JackrabbitJcrWrapper.importStream(JackrabbitJcrWrapper.java:331)
      3 frames
    3. org.artifactory.repo
      JcrRepo$3.doInJcr
      1. org.artifactory.repo.JcrRepo$3.doInJcr(JcrRepo.java:395)
      2. org.artifactory.repo.JcrRepo$3.doInJcr(JcrRepo.java:381)
      2 frames
    4. org.artifactory.jcr
      JackrabbitJcrWrapper.doInSession
      1. org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232)
      1 frame
    5. org.artifactory.repo
      JcrRepo.saveResource
      1. org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:381)
      1 frame
    6. org.artifactory.engine
      UploadEngine.process
      1. org.artifactory.engine.UploadEngine.process(UploadEngine.java:198)
      1 frame
    7. org.artifactory.webapp
      RepoFilter$JcrWebEntry.doInJcr
      1. org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:162)
      2. org.artifactory.webapp.servlet.RepoFilter.access$100(RepoFilter.java:48)
      3. org.artifactory.webapp.servlet.RepoFilter$JcrWebEntry.doInJcr(RepoFilter.java:111)
      4. org.artifactory.webapp.servlet.RepoFilter$JcrWebEntry.doInJcr(RepoFilter.java:94)
      4 frames
    8. org.artifactory.jcr
      JackrabbitJcrWrapper.doInSession
      1. org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232)
      1 frame
    9. org.artifactory.webapp
      ArtifactoryFilter$2.doInJcr
      1. org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:80)
      2. org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:110)
      3. org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:105)
      3 frames
    10. org.artifactory.jcr
      JackrabbitJcrWrapper.doInSession
      1. org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232)
      1 frame
    11. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:105)
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
      2 frames
    13. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:172)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    14. org.artifactory.webapp
      ArtifactoryFilter$2.doInJcr
      1. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:110)
      2. org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:110)
      3. org.artifactory.webapp.servlet.ArtifactoryFilter$2.doInJcr(ArtifactoryFilter.java:105)
      3 frames
    15. org.artifactory.jcr
      JackrabbitJcrWrapper.doInSession
      1. org.artifactory.jcr.JackrabbitJcrWrapper.doInSession(JackrabbitJcrWrapper.java:232)
      1 frame
    16. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:105)
      1 frame
    17. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
      4. org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
      5. org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
      7. org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
      8. org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source)
      8 frames
    18. Embedded GlassFish Web
      JkCoyoteHandler.invoke
      1. org.apache.jk.server.JkCoyoteHandler.invoke(Unknown Source)
      1 frame