On 17/03/2011, at 4:48 AM, Peter Niederwieser wrote: > Hi devs, > > I'm trying to manually publish a new snapshot distribution, but I'm always > running into the problem shown below. I've verified that the generated > artifact hasn't been published. Do you have an idea what the problem is?
I suspect the NoSuchElementException is actually a problem in the logging stuff, which is happening when the upload fails. The real exception will be logged when you run with -s > > Cheers, > Peter > > $gradlew clean uploadDists -x test -x integTest -x embeddedIntegTest > ... > Upload > https://gradle.artifactoryonline.com/gradle/distributions/gradle-snapshots/gradle-1.0-milestone-2-20110316160224+0000-all.zip > > FAILURE: Build failed with an exception. > > * Where: > Build file '/swd/prj/gradle/build.gradle' > > * What went wrong: > Execution failed for task ':uploadDists'. > Cause: Could not publish configurations [configuration ':dists']. > > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > > BUILD FAILED > > Total time: 44 mins 36.914 secs > null > java.util.NoSuchElementException > at java.util.LinkedList.remove(LinkedList.java:788) > at java.util.LinkedList.removeLast(LinkedList.java:144) > at > org.gradle.logging.internal.ConsoleBackedProgressRenderer.onOutput(ConsoleBackedProgressRenderer.java:35) > at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) > at > org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) > at > org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88) > at > org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32) > at > org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75) > at $Proxy0.onOutput(Unknown Source) > at > org.gradle.logging.internal.OutputEventRenderer.onOutput(OutputEventRenderer.java:184) > at > org.gradle.logging.internal.ProgressLoggingBridge.completed(ProgressLoggingBridge.java:27) > at > org.gradle.logging.internal.DefaultProgressLoggerFactory$ProgressLoggerImpl.completed(DefaultProgressLoggerFactory.java:82) > at > org.gradle.logging.internal.DefaultProgressLoggerFactory$ProgressLoggerImpl.completed(DefaultProgressLoggerFactory.java:76) > at > org.gradle.initialization.BuildProgressLogger.buildFinished(BuildProgressLogger.java:54) > 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:597) > at > org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) > at > org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) > at > org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88) > at > org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32) > at > org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88) > at > org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32) > at > org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75) > at $Proxy7.buildFinished(Unknown Source) > at > org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) > at > org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:75) > at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) > at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) > at > org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:209) > at > org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:193) > at org.gradle.launcher.Main.execute(Main.java:55) > at org.gradle.launcher.Main.main(Main.java:40) > 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:597) > at > org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46) > at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28) > at org.gradle.launcher.GradleMain.main(GradleMain.java:24) > 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:597) > at > org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:37) > at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58) > at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:42) > > FAILURE: Build failed with an exception. > > * What went wrong: > Failed to notify build listener. > > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/Problem-publishing-snapshot-distribution-tp3790606p3790606.html > Sent from the gradle-dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Adam Murdoch Gradle Developer http://www.gradle.org Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com
