java.io.IOException

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.

  • 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)
    via by Vitaliy Morarian,
  • 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)
    via by Vitaliy Morarian,
    • 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)
    No Bugmate found.