maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bentmann <benjamin.bentm...@udo.edu>
Subject Re: Synchronization issue with parallel downloads
Date Tue, 03 Mar 2009 11:07:37 GMT
Hi,

I just stumbled upon another issue with the parallel artifact resolution 
in 2.1.x:

> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Maven Integration Test :: Boostrap
> [INFO]    task-segment: [test-compile]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] snapshot org.apache.maven.its.plugins:maven-it-plugin-error:2.1-SNAPSHOT: checking
for updates from apache.snapshots
> [INFO] snapshot org.apache.maven.its.plugins:maven-it-plugin-plexus-component-api:2.1-SNAPSHOT:
checking for updates from apache.snapshots
> [INFO] snapshot org.apache.maven.its.plugins:maven-it-plugin-toolchain:2.1-SNAPSHOT:
checking for updates from apache.snapshots
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://repository.sonatype.org/content/repositories/maven.snapshots/org/apache/maven/plugins/maven-clean-plugin/0.1-stub-SNAPSHOT/maven-clean-plugin-0.1-stub-20090302.180447-250.jar
> Downloading: http://repository.sonatype.org/content/repositories/maven.snapshots/org/apache/maven/its/plugins/maven-it-plugin-packaging/2.1-SNAPSHOT/maven-it-plugin-packaging-2.1-20090302.180447-362.jar
> Exception in thread "pool-1-thread-2" java.lang.RuntimeException: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Error transferring file: Connection refused: connect
>   org.apache.maven.plugins:maven-clean-plugin:jar:0.1-stub-20090302.180447-250
> 
> from the specified remote repositories:
>   apache.snapshots (http://repository.apache.org/snapshots),
>   central (http://repo1.maven.org/maven2),
>   maven.it (http://repository.sonatype.org/content/repositories/maven.snapshots)
> 
> Path to dependency: 
> 	1) org.apache.maven.its.bootstrap:maven-it-boostrap:jar:1.0
> 	2) org.apache.maven.plugins:maven-clean-plugin:jar:0.1-stub-SNAPSHOT
> 
> 
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:443)
> 	at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> 	at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error transferring
file: Connection refused: connect
>   org.apache.maven.plugins:maven-clean-plugin:jar:0.1-stub-20090302.180447-250
> 
> from the specified remote repositories:
>   apache.snapshots (http://repository.apache.org/snapshots),
>   central (http://repo1.maven.org/maven2),
>   maven.it (http://repository.sonatype.org/content/repositories/maven.snapshots)
> 
> Path to dependency: 
> 	1) org.apache.maven.its.bootstrap:maven-it-boostrap:jar:1.0
> 	2) org.apache.maven.plugins:maven-clean-plugin:jar:0.1-stub-SNAPSHOT
> 
> 
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:233)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.resolveArtifact(DefaultArtifactResolver.java:453)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:434)
> 	... 3 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file: Connection
refused: connect
> 	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
> 	at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
> 	at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
> 	at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
> 	at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
> 	at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
> 	... 6 more
> Caused by: java.net.ConnectException: Connection refused: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.Socket.connect(Socket.java:519)
> 	at java.net.Socket.connect(Socket.java:469)
> 	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> 	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> 	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
> 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
> 	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
> 	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
> 	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
> 	... 12 more
> Exception in thread "pool-1-thread-1" java.lang.RuntimeException: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Error transferring file: Connection refused: connect
>   org.apache.maven.its.plugins:maven-it-plugin-packaging:jar:2.1-20090302.180447-362
> 
> from the specified remote repositories:
>   apache.snapshots (http://repository.apache.org/snapshots),
>   central (http://repo1.maven.org/maven2),
>   maven.it (http://repository.sonatype.org/content/repositories/maven.snapshots)
> 
> Path to dependency: 
> 	1) org.apache.maven.its.bootstrap:maven-it-boostrap:jar:1.0
> 	2) org.apache.maven.its.plugins:maven-it-plugin-packaging:jar:2.1-SNAPSHOT
> 
> 
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:443)
> 	at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> 	at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error transferring
file: Connection refused: connect
>   org.apache.maven.its.plugins:maven-it-plugin-packaging:jar:2.1-20090302.180447-362
> 
> from the specified remote repositories:
>   apache.snapshots (http://repository.apache.org/snapshots),
>   central (http://repo1.maven.org/maven2),
>   maven.it (http://repository.sonatype.org/content/repositories/maven.snapshots)
> 
> Path to dependency: 
> 	1) org.apache.maven.its.bootstrap:maven-it-boostrap:jar:1.0
> 	2) org.apache.maven.its.plugins:maven-it-plugin-packaging:jar:2.1-SNAPSHOT
> 
> 
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:233)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.resolveArtifact(DefaultArtifactResolver.java:453)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:434)
> 	... 3 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file: Connection
refused: connect
> 	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
> 	at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
> 	at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
> 	at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
> 	at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
> 	at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
> 	... 6 more
> Caused by: java.net.ConnectException: Connection refused: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.Socket.connect(Socket.java:519)
> 	at java.net.Socket.connect(Socket.java:469)
> 	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> 	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> 	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
> 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
> 	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
> 	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
> 	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
> 	... 12 more

That's the complete log I could grab from 
core-it-suite/target/test-classes/bootstrap/log.txt during a local run 
of the ITs. Note that the log does not contain "BUILD ERROR" or any 
other indication of the build termination, it's hanging (for about 20 
minutes now)... I guess the exception handling needs some more love.


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message