Oops. Looks like the API JAR was broken.
Changed URL for uploadArchives