Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 257707

Summary: Task Search tries to search on eclipse bugzilla repo, but firewall blocks --> hangs eclipse + error
Product: z_Archived Reporter: Raphael Ackermann <raphael.ackermann>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
error message none

Description Raphael Ackermann CLA 2008-12-05 08:24:52 EST
Created attachment 119616 [details]
error message

I am working behind a corporate firewall that blocks queries to the eclipse bugzilla repository. Therefore I am using local tasks.

1. No editors are open.
3. press Ctrl+H to search for a word.
4. observe: a popup comes up saying: "Updating search options" and Eclipse hangs. Don't think the cancel button on the popup works.
5. After about 10 mintues. an error message is shown: Error was: I/O Error occurred while communicationg with https://bugs.eclipse.org/bugs. SocketException: Malformed reply from SOCKS server.
6. pressing ok on error message still leaves eclipse in a hanging state and I have to force it to close down.

The Task Search is the culprit. If no editor is open, then the task search is somehow invoked. 

If a java editor is open, the java search has default focus. If a different file is open, the file search has default focus. If no editor is open, something bad happens. 

I think the task search is too eager to connect to eclipse.org ( I have an Eclipse.org task repository (not sure whether it comes by default). It should only do so after the user has selected the task search tab in the search dialog.

org.eclipse.core.runtime.CoreException: I/O Error occurred while communicating with https://bugs.eclipse.org/bugs.

SocketException: Malformed reply from SOCKS server
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.authenticate(BugzillaClient.java:436)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.connectInternal(BugzillaClient.java:258)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getConnectGzip(BugzillaClient.java:246)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:577)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin.getRepositoryConfiguration(BugzillaCorePlugin.java:140)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClientManager.getClient(BugzillaClientManager.java:46)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin.getRepositoryConfiguration(BugzillaCorePlugin.java:139)
at org.eclipse.mylyn.internal.bugzilla.ui.search.BugzillaSearchPage$11.run(BugzillaSearchPage.java:1834)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:87)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:429)
at java.net.Socket.connect(Socket.java:519)
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.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
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:346)
at org.eclipse.mylyn.commons.net.WebUtil$2.call(WebUtil.java:273)
at org.eclipse.mylyn.commons.net.WebUtil$2.call(WebUtil.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Comment 1 Steffen Pingel CLA 2008-12-05 13:31:23 EST

*** This bug has been marked as a duplicate of bug 245152 ***