Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340567 - Usage Data Collector (UDC) fails ungracefully when unable to connect to the usage data upload server
Summary: Usage Data Collector (UDC) fails ungracefully when unable to connect to the u...
Status: RESOLVED WONTFIX
Alias: None
Product: EPP
Classification: Technology
Component: Usage Data Collector (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Wayne Beaton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 09:57 EDT by Daniel U. Thibault CLA
Modified: 2021-05-07 10:23 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel U. Thibault CLA 2011-03-21 09:57:58 EDT
Build Identifier: M20109017-0705

!ENTRY org.eclipse.epp.usagedata.recording 2 0 2011-03-21 09:40:27.652
!MESSAGE Could not connect to the usage data upload server at http://udc.eclipse.org/upload.php.
!STACK 0
java.net.ConnectException: Connection timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
	at java.net.Socket.connect(Socket.java:546)
	at java.net.Socket.connect(Socket.java:495)
	at java.net.Socket.<init>(Socket.java:392)
	at java.net.Socket.<init>(Socket.java:266)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at org.eclipse.epp.usagedata.internal.recording.uploading.BasicUploader.doUpload(BasicUploader.java:206)
	at org.eclipse.epp.usagedata.internal.recording.uploading.BasicUploader.upload(BasicUploader.java:129)
	at org.eclipse.epp.usagedata.internal.recording.uploading.BasicUploader$1.run(BasicUploader.java:105)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The above is what the console viewer shows when this problem occurs.  One would instead expect the exception to be captured and an alert to pop up in the GUI, possibly with an option to "retry".

Reproducible: Always

Steps to Reproduce:
1. I guess you need an uncooperative firewall to achieve this.
Comment 1 Bron Eubanks CLA 2011-10-04 16:11:47 EDT
I've gotten the same problem. Others reported this in Bug 336631 (where someone uploaded a patch) and Bug 241511 (which is closed). However, it might not matter, because according to Bug 347069, the UDC will be removed from Eclipse Juno.
Comment 2 Jonah Graham CLA 2021-05-07 10:23:06 EDT
The Usage Data Collector was decommissioned a long time ago. Therefore any
remaining bugs are now being closed as WONTFIX. If this bug is still relevant,
please make a comment and we'll move it to the correct project/component for
further investigation.

This change was made as part of a bulk change.