Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query complains too much when network is disconnected #20

Open
awilkins opened this issue Jul 11, 2013 · 0 comments
Open

Query complains too much when network is disconnected #20

awilkins opened this issue Jul 11, 2013 · 0 comments

Comments

@awilkins
Copy link
Collaborator

The usual Mylyn behaviour with the network is offline is just for the yellow warning triangle to decorate the query folder.

The Redmine connector throws an uncaught exception, which leads to a modal dialog box "Execution of method failed" - this is unnecessarily disruptive and interrupts the user.

Stack trace below

net.sf.redmine_mylyn.api.exception.RedmineApiErrorException: Execution of method failed
    at net.sf.redmine_mylyn.internal.api.client.AbstractClient.performExecuteMethod(AbstractClient.java:191)
    at net.sf.redmine_mylyn.internal.api.client.AbstractClient.executeMethod(AbstractClient.java:83)
    at net.sf.redmine_mylyn.internal.api.client.AbstractClient.executeMethod(AbstractClient.java:74)
    at net.sf.redmine_mylyn.internal.api.client.Api_2_7_ClientImpl.query(Api_2_7_ClientImpl.java:250)
    at net.sf.redmine_mylyn.internal.core.client.Client.query(Client.java:111)
    at net.sf.redmine_mylyn.core.RedmineRepositoryConnector.performQuery(RedmineRepositoryConnector.java:240)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.net.SocketException: Can't connect to SOCKS proxy:Connection refused: connect
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.eclipse.mylyn.internal.commons.net.MonitoredRequest.connect(MonitoredRequest.java:97)
    at org.eclipse.mylyn.internal.commons.net.PollingProtocolSocketFactory.createSocket(PollingProtocolSocketFactory.java:54)
    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.eclipse.mylyn.commons.net.WebUtil$2.execute(WebUtil.java:332)
    at org.eclipse.mylyn.commons.net.WebUtil$2.execute(WebUtil.java:1)
    at org.eclipse.mylyn.internal.commons.net.MonitoredRequest.call(MonitoredRequest.java:51)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant