While trying to run JPT getting a connection error exception

Reg Hawkins November 22, 2019

I have setup a server that is in the same locale as the the JDC servers

I get a response from the dns server when pinging

I have create a user account with admin

final URI myJira = new URI("dnshostname");
jiraOnPremiseTest.setAdminLogin("jpt");
jiraOnPremiseTest.setAdminPassword("jpt@test");

when I try to run the JPT example with this command ./mvnw verify

I get a time out exception shown below

[jpt@esjirdv01 btf-test]$ ./mvnw verify
Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(DefaultDownloader.java:73)
at org.apache.maven.wrapper.DefaultDownloader.download(DefaultDownloader.java:60)
at org.apache.maven.wrapper.Installer.createDist(Installer.java:64)
at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:121)
at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:55)
[jpt@esjirdv01 btf-test]$ [jpt@esjirdv01 btf-test]$ ./mvnw verify

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2019

Hi Reg,

I understand that you're trying to use the Jira-performance-tests and you seem to be running into some problems when connecting here.  The nature of that specific error message would tend to indicate that this script/application can't reach the address being input here.

From looking at some of the examples in that repo, it looks to me like you will need to specify the protocol (http or https) as well as the address (IP or hostname), and possibly even the port number and/or context path (although these last two are optional in some environments).

final URI myJira = new URI("http://localhost:8090/jira/");

I understand if you do not want to post your exact address, but I just wanted to confirm first that you're using the http or https here in the value you enter into that URI.  Try to define the complete address for that value and see if that helps.  If not, please let me know more about the protocol, address type, port number, and if there is a context path to reach this Jira site.

Thanks,

Andy

Reg Hawkins December 16, 2019

I have checked my URI.

I found out the server has no connection to the internet So I had to download all packages and ftp to the server.

A more comprehensive setup guide would be helpful.....

Deleted user July 22, 2020

Facing same issue.

final URI myJira = new URI("https://jiradomain/jira/");

My server has access to internet - added the proxy in settings.xml of maven but still getting same error.

Thanks!

Suggest an answer

Log in or Sign up to answer