HTTP error 409

  6 posts   Feedicon  
Replies: 5 - Last Post: May 10, 2011 03:17
by: dengdai
showing 1 - 6 of 6
 
Posted: September 16, 2009 19:25 by Fabrizio Giudici
Hi.

A few months ago I've set up a Maven repo at http://kenai.com/svn/tidalwave~maven-repo/aux/2, backed by Subversion. At the time I was able to deploy some files to it.

Now I can't and I get the following error - can you help? Thanks.

fritz% mvn -e deploy:deploy-file -DgroupId=javax.media -DartifactId=jai_codec -Dfile=jai_codec.jar -Dversion=1.1.3 -Dpackaging=jar -DrepositoryId=maven2-aux-repository.tidalwave.kenai.com -Durl=https://kenai.com/svn/tidalwave~maven-repo/aux/2
+ Error stacktraces are turned on.
[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: https://kenai.com/svn/tidalwave~maven-repo/aux/2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar
252K uploaded
[INFO] Error for project: Maven Default Project (during deploy:deploy-file)
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: https://kenai.com/svn/tidalwave~maven-repo/aux/2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar. Return code is: 409

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Failed to transfer file: https://kenai.com/svn/tidalwave~maven-repo/aux/2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar. Return code is: 409
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:228)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Failed to transfer file: https://kenai.com/svn/tidalwave~maven-repo/aux/2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar. Return code is: 409
at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:244)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Failed to transfer file: https://kenai.com/svn/tidalwave~maven-repo/aux/2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar. Return code is: 409
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:240)
... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://kenai.com/svn/tidalwave~maven-repo/aux/2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.jar. Return code is: 409
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:172)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:245)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:161)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
... 19 more
 
Posted: September 16, 2009 19:52 by john_brock
an HTTP 409 error means that there is a conflict when trying to access a file. Are you sure that someone else is not trying to do an update at the same time? Just have to ask the obvious Q's first. Smile
 
Posted: September 16, 2009 20:23 by Edwin Goei
I don't have much experience with maven but I would start debugging by seeing if one can upload the file to the subversion repo without maven. Unless someone else has any other ideas, I would open a bug on it.
 
Posted: September 16, 2009 21:16 by Fabrizio Giudici
Obvious Q's first, of course! Smile

But not, nobody else is doing this at the same time, as there are no other developers than me in this project, so nobody can commit. I've tried to check out the repo on my disk and add a test file, and I can commit it. It seems something strictly related with Maven. Is there any log file that you can check?
 
Posted: September 18, 2009 17:43 by Fabrizio Giudici
Aaaaahhh.. my fault. When running mvn deploy-file, when specifying the url parameter Durl=svn:https://kenai.com/svn/tidalwave~maven-repo/aux/2 I was missing the leading svn: ...
 
Posted: September 18, 2009 17:55 by john_brock
Thanks for posting up the solution. Hopefully others who run into this will be able to search on it now and find the answer.

--jb

The Project Kenai Team
showing 1 - 6 of 6
Replies: 5 - Last Post: May 10, 2011 03:17
by: dengdai
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close