Evernote Confluence Plugin - Connection timed out

Not CK April 24, 2013

Hello,

I get this exception when I try and authenticate:

Caused by: java.net.ConnectException: Connection timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
	at org.scribe.model.Request.addBody(Request.java:125)
	at org.scribe.model.Request.doSend(Request.java:104)
	at org.scribe.model.Request.send(Request.java:62)
	... 256 more
My confluence instance is behind a web proxy, so I've set the following JVM command line parameters:
-Dhttp.proxyHost=proxyhostname -Dhttp.proxyPort=4321
Which works fine for confluence to access Atlassian Marketplace, but doesn't seem to work in this case. Any suggestions?
Thanks,
Chris

2 answers

1 accepted

3 votes
Answer accepted
Not CK May 9, 2013

The plugin developer got back to me, and had me add:

https.proxyHost and https.proxyPort

to my JVM command line, which did the trick.

Thanks,

Chris

1 vote
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

I would guess that internally in their plugin they are using a HttpClient instance but not setting the proxy details provided by the system properties? I've had to do that before in plugins. I'm sure the authors will help here though

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events