java.io.IOException: PUT operation to URL http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom failed with status code 409: Conflict

JFrog JIRA | John Chee | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hi, I'm getting the following errors when trying to publish an artifact with ivy: {code} 2013-06-17 22:22:34,631 [http-bio-8081-exec-2578] [INFO ] (o.a.e.UploadServiceImpl:427) - Deploy to 'libs-releases-local:com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom' Content-Length: 2590 2013-06-17 22:22:34,633 [http-bio-8081-exec-2578] [ERROR] (o.a.j.l.SessionLockEntry:266) - Immutable item /repositories/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom has local modifications that will be ignored. 2013-06-17 22:22:34,634 [http-bio-8081-exec-2578] [WARN ] (o.a.r.j.StoringRepoMixin:661) - Could not save resource 'libs-releases-local:com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom': Failed to read POM for 'com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom': Expected root element 'project' but found 'ivy-module' (position: START_TAG seen ...rg/ivy/schemas/ivy.xsd" xmlns:m="http://ant.apache.org/ivy/maven">... @22:197) . 2013-06-17 22:22:34,634 [http-bio-8081-exec-2578] [WARN ] (o.a.e.UploadServiceImpl:600) - Sending HTTP error code 409: Failed to read POM for 'com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom': Expected root element 'project' but found 'ivy-module' (position: START_TAG seen ...rg/ivy/schemas/ivy.xsd" xmlns:m="http://ant.apache.org/ivy/maven">... @22:197) .. {code} The ivy trace with some parts redacted: {code} java -jar /home/jchee/packages/.../ivy/lib/ivy-2.2.0.jar -settings /home/jchee/packages/.../ivysettings.xml -ivy /home/jchee/packages/.../com.example/jchee-test/ivy-0.0.1.xml -deliverto /home/jchee/packages/.../[organisation]/[module]/ivy-[revision].xml -publish artifactory. ... .com -publishpattern /home/jchee/packages/.../[organisation]/[module]/[artifact]-[revision](-[classifier]).[ext] -revision 0.0.1 -m2compatible -username jchee -passwd foobar -realm Artifactory Realm -host artifactory. ... .com -overwrite :: loading settings :: file = /home/jchee/packages/.../ivysettings.xml IvySvn Build-Version: 2.2.0 IvySvn Build-DateTime: 2010-12-20 11:31:47 IvySvn Build-Version: 2.2.0 IvySvn Build-DateTime: 2010-12-20 11:31:47 :: resolving dependencies :: com.example#jchee-test;0.0.1 confs: [default, sources, docs, changelog, test, provided, idl] found com.google.guava#guava;14.0.1 in remote-repos-...-artifactory found com.google.code.findbugs#jsr305;1.3.9 in remote-repos-...-artifactory found javax.inject#javax.inject;1 in remote-repos-...-artifactory :: resolution report :: resolve 132ms :: artifacts dl 8ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 3 | 0 | 0 | 0 || 3 | 0 | | sources | 2 | 0 | 0 | 0 || 2 | 0 | | docs | 0 | 0 | 0 | 0 || 0 | 0 | | changelog | 0 | 0 | 0 | 0 || 0 | 0 | | test | 0 | 0 | 0 | 0 || 0 | 0 | | provided | 0 | 0 | 0 | 0 || 0 | 0 | | idl | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- :: delivering :: com.example#jchee-test;0.0.1 :: 0.0.1 :: release :: Mon Jun 17 16:09:30 PDT 2013 delivering ivy file to /home/jchee/packages/.../com.example/jchee-test/ivy-0.0.1.xml :: publishing :: com.example#jchee-test published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.jar published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1-sources.jar published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1-CHANGELOG.txt Exception in thread "main" java.io.IOException: PUT operation to URL http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom failed with status code 409: Conflict at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82) at org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:225) at org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:148) at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84) at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234) at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:281) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:260) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172) at org.apache.ivy.Ivy.publish(Ivy.java:600) at org.apache.ivy.Main.run(Main.java:304) at org.apache.ivy.Main.main(Main.java:179) FAILURE: java -jar /home/jchee/packages/.../ivy/lib/ivy-2.2.0.jar ... exited non-zero (1) 'failed to push com.example#jchee-test;0.0.1' {code} How can I get a clean publish with artifactory?

    JFrog JIRA | 4 years ago | John Chee
    java.io.IOException: PUT operation to URL http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom failed with status code 409: Conflict
  2. 0

    Hi, I'm getting the following errors when trying to publish an artifact with ivy: {code} 2013-06-17 22:22:34,631 [http-bio-8081-exec-2578] [INFO ] (o.a.e.UploadServiceImpl:427) - Deploy to 'libs-releases-local:com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom' Content-Length: 2590 2013-06-17 22:22:34,633 [http-bio-8081-exec-2578] [ERROR] (o.a.j.l.SessionLockEntry:266) - Immutable item /repositories/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom has local modifications that will be ignored. 2013-06-17 22:22:34,634 [http-bio-8081-exec-2578] [WARN ] (o.a.r.j.StoringRepoMixin:661) - Could not save resource 'libs-releases-local:com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom': Failed to read POM for 'com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom': Expected root element 'project' but found 'ivy-module' (position: START_TAG seen ...rg/ivy/schemas/ivy.xsd" xmlns:m="http://ant.apache.org/ivy/maven">... @22:197) . 2013-06-17 22:22:34,634 [http-bio-8081-exec-2578] [WARN ] (o.a.e.UploadServiceImpl:600) - Sending HTTP error code 409: Failed to read POM for 'com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom': Expected root element 'project' but found 'ivy-module' (position: START_TAG seen ...rg/ivy/schemas/ivy.xsd" xmlns:m="http://ant.apache.org/ivy/maven">... @22:197) .. {code} The ivy trace with some parts redacted: {code} java -jar /home/jchee/packages/.../ivy/lib/ivy-2.2.0.jar -settings /home/jchee/packages/.../ivysettings.xml -ivy /home/jchee/packages/.../com.example/jchee-test/ivy-0.0.1.xml -deliverto /home/jchee/packages/.../[organisation]/[module]/ivy-[revision].xml -publish artifactory. ... .com -publishpattern /home/jchee/packages/.../[organisation]/[module]/[artifact]-[revision](-[classifier]).[ext] -revision 0.0.1 -m2compatible -username jchee -passwd foobar -realm Artifactory Realm -host artifactory. ... .com -overwrite :: loading settings :: file = /home/jchee/packages/.../ivysettings.xml IvySvn Build-Version: 2.2.0 IvySvn Build-DateTime: 2010-12-20 11:31:47 IvySvn Build-Version: 2.2.0 IvySvn Build-DateTime: 2010-12-20 11:31:47 :: resolving dependencies :: com.example#jchee-test;0.0.1 confs: [default, sources, docs, changelog, test, provided, idl] found com.google.guava#guava;14.0.1 in remote-repos-...-artifactory found com.google.code.findbugs#jsr305;1.3.9 in remote-repos-...-artifactory found javax.inject#javax.inject;1 in remote-repos-...-artifactory :: resolution report :: resolve 132ms :: artifacts dl 8ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 3 | 0 | 0 | 0 || 3 | 0 | | sources | 2 | 0 | 0 | 0 || 2 | 0 | | docs | 0 | 0 | 0 | 0 || 0 | 0 | | changelog | 0 | 0 | 0 | 0 || 0 | 0 | | test | 0 | 0 | 0 | 0 || 0 | 0 | | provided | 0 | 0 | 0 | 0 || 0 | 0 | | idl | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- :: delivering :: com.example#jchee-test;0.0.1 :: 0.0.1 :: release :: Mon Jun 17 16:09:30 PDT 2013 delivering ivy file to /home/jchee/packages/.../com.example/jchee-test/ivy-0.0.1.xml :: publishing :: com.example#jchee-test published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.jar published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1-sources.jar published jchee-test to http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1-CHANGELOG.txt Exception in thread "main" java.io.IOException: PUT operation to URL http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom failed with status code 409: Conflict at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82) at org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:225) at org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:148) at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84) at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234) at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:281) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:260) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172) at org.apache.ivy.Ivy.publish(Ivy.java:600) at org.apache.ivy.Main.run(Main.java:304) at org.apache.ivy.Main.main(Main.java:179) FAILURE: java -jar /home/jchee/packages/.../ivy/lib/ivy-2.2.0.jar ... exited non-zero (1) 'failed to push com.example#jchee-test;0.0.1' {code} How can I get a clean publish with artifactory?

    JFrog JIRA | 4 years ago | John Chee
    java.io.IOException: PUT operation to URL http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom failed with status code 409: Conflict

    Root Cause Analysis

    1. java.io.IOException

      PUT operation to URL http://artifactory. ... .com/libs-releases-local/com/example/jchee-test/0.0.1/jchee-test-0.0.1.pom failed with status code 409: Conflict

      at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode()
    2. Apache Ivy
      Main.main
      1. org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82)
      2. org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:225)
      3. org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82)
      4. org.apache.ivy.util.FileUtil.copy(FileUtil.java:148)
      5. org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
      6. org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
      7. org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234)
      8. org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
      9. org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:281)
      10. org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:260)
      11. org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172)
      12. org.apache.ivy.Ivy.publish(Ivy.java:600)
      13. org.apache.ivy.Main.run(Main.java:304)
      14. org.apache.ivy.Main.main(Main.java:179)
      14 frames