/<Install Dir>/batch/run.pl /<Install Dir>/batch/lib/run_report.py -server servername -port xxx testReport [email protected]
JAWS Command Line Interface (6.4.4, 6.4.4-202212010947)
Report name: testReport
Recipients: 1
Mail server: smtp.server.com
Traceback (most recent call last):
File "/<Install Dir>/batch/lib/run_report.py", line 330, in <module>
main()
File "/<Install Dir>/batch/lib/run_report.py", line 136, in main
url, criteria = run(report_name)
File "/<Install Dir>/batch/lib/run_report.py", line 187, in run
params.login_with_params()
File "/<Install Dir>/batch/lib/params.py", line 97, in login_with_params
jaws.login(user=overridden['user'],
File "/<Install Dir>/batch/lib/jaws.py", line 337, in login
select_server(host=host, http_port=http_port, http_protocol=http_protocol, disable_cert=disable_cert, skip_server_contact=False, skip_version_check=skip_version_check)
File "/<Install Dir>/batch/lib/jaws.py", line 146, in select_server
stream = info_url.openStream()
File "/<Install Dir>/batch/lib/jaws.py", line 146, in select_server
stream = info_url.openStream()
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)
at java.net.Socket.connect(Socket.java:606)
at java.net.Socket.connect(Socket.java:555)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:499)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:594)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:278)
at sun.net.www.http.HttpClient.New(HttpClient.java:375)
at sun.net.www.http.HttpClient.New(HttpClient.java:393)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1240)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1167)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1061)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1584)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1512)
at java.net.URL.openStream(URL.java:1092)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.net.ConnectException: java.net.ConnectException: Connection refused (Connection refused)
serverName:/<Install Dir>/reports $
Release : 6.4.4
This error can occur for one of two reasons:
1. The port specified in the CLI is not the AAI server port, default is 8080.
2. If you have AAI configured with HTTPS, you must specify the https protocol in your CLI like below(Default port is 8443):
/<Install Dir>/batch/run.pl /<Install Dir>/batch/lib/run_report.py -server servername -port 8443 -protocol https testReport [email protected]