Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Uploading large files caused "Connection reset by peer: socket write error"

Benjamin:
Here's the full trace:
Exception in thread "main" org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.abc.com:HelloWorldXXL:war:6.0.0 from/to my archiva (http://localhost:9080/archiva/repository/internal/): Connection reset by peer: socket write error
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:341)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:269)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:413)
    at com.datasynapse.fabric.Tesla_Test1.deploy(Tesla_Test1.java:122)
    at com.datasynapse.fabric.Tesla_Test1.main(Tesla_Test1.java:33)
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact com.datasynapse.fabric:HelloWorldXXL:war:6.0.0 from/to my archiva (http://localhost:9080/archiva/repository/internal/): Connection reset by peer: socket write error
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:342)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put(BasicRepositoryConnector.java:271)
    at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:335)
    ... 4 more
Caused by: java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:169)
    at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:119)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.copy(AbstractTransporter.java:202)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.utilPut(AbstractTransporter.java:150)
    at org.eclipse.aether.transport.http.HttpTransporter.access$200(HttpTransporter.java:70)
    at org.eclipse.aether.transport.http.HttpTransporter$PutTaskEntity.writeTo(HttpTransporter.java:517)
    at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:98)
    at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
    at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:98)
    at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
    at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:122)
    at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:197)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:257)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
    at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)
    at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:294)
    at org.eclipse.aether.transport.http.HttpTransporter.implPut(HttpTransporter.java:272)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.put(AbstractTransporter.java:117)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask(BasicRepositoryConnector.java:578)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:337)
    ... 6 more



On Tue, Dec 3, 2013 at 5:45 PM, Benjamin Bentmann <bentmann@xxxxxxxxxxxx> wrote:
Bk Lau wrote:

......
Caused by: java.net.SocketException: Connection reset by peer: socket write
error
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)

It would be helpful to share the complete stack trace, at least all parts involving Aether code. The snippet you posted doesn't even tell which transport library is involved.


Q: How can I get past this?. Is it related to [1] or some settings on the
Apache Archiva?

[1]https://issues.sonatype.org/browse/OSSRH-5033

>From the information at hand, I can't tell what the actual issue or how it could be solved.

In addition to the extended stack trace, you might also want to check the logs of your repository manager during the upload and see what's happening on that side.


Benjamin
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aether-users


Back to the top