Reporter.jar can't connect to the network

When I attempt to run Reporter.jar on one of our servers, I'm greeted with the error message "Network is not available. Check connection and try again.". However, the server does have access to the internet and ipv6 is enabled. With that said, running Reporter.jar on my local machine does not raise this error.


Running the Reporter.jar in debug mode also says that it's able to connect.

java -jar Reporter.jar p=Reporter.properties m=robot.xml Sales.debug

System Properties
Java: Oracle Corporation 1.7.0_85
OS: Linux 2.6.32-431.17.1.el6.x86_64 amd64


Trying to connect to Sales...
Not using a proxy.
Connected.
Response headers:
  null: HTTP/1.1 200 OK
  Content-Language: en-US
  Date: Mon, 23 Nov 2015 23:42:10 GMT
  Content-Length: 317
  Set-Cookie: JSESSIONID=WYHiofe52hoS0VVwU+gEM6Fi; Path=/reportservice
  Content-Type: text/html;charset=ISO-8859-1
  X-Powered-By: JSP/2.2
  Server: Apache-Coyote/1.1
Closing connection...
Done.

Any help would be appreciated.

Did you get with some solution? Same problem here. I try to execute jar in PHP in my server and the error is allways Network connection error...


Many thanks!

I am experiencing the same error both on my local machine and my Linux EC2 instance. Continuing to search for a solution... will post here if solution is found.

Getting the same problem. I suspect the problem is connected to the "Not using a proxy" above. So all we need to do is get Java to use a proxy.

It seems Apple have altered the certificate and URL for the reporter....notably the "-sh" part 🙂


https://reportingitc-reporter-sh.apple.com

hi,

I changed the URL to https://reportingitc-reporter-sh.apple.com


But it doesn't work too.

In Java, you can specify proxy settings when invoking the JVM. For example:


java -Dhttp.proxyHost=your.server.com -Dhttp.proxyPort=8080 -jar Reporter.jar


Supported properties include:

  • htttps.proxyHost
  • https.proxyPort
  • htttp.proxyHost
  • http.proxyPort


See http://docs.oracle.com/javase/7/docs/technotes/guides/net/proxies.html

For people that will come here from searh I'm posting the solution that fixes the issue on macOS High Sierra with Java for OS X 2017-001.


Reporter.jar was working fine out of the box on 10.13 with old 2015-001 Java.


However, since 10.13.1 you can only install 2017-001 Java and it is broken.


Reporter.jar can't connect to reporting API due to broken CA store in Java installation (incorrect symbolic link to cacerts).

It fails with an error "Network is not available. Check connection and try again."


As a quick solution (until it's fixed) you need:

(1) to go to https://reportingitc-reporter.apple.com/ in Firefox or other browser and save CA certificates

(2) to import those certificates into JRE trusted ca store


Once you saved CA certs into files "VeriSignClass3PublicPrimaryCertificationAuthority-G5.crt" and "Desktop/SymantecClass3EVSSLCA-G3.crt" run the following commands in Terminal:


sudo su -
cd /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security
mv cacerts cacerts.orig
keytool -import -alias CA1 -keystore cacerts -storepass changeit -file /Users/noname/Desktop/VeriSignClass3PublicPrimaryCertificationAuthority-G5.crt
keytool -import -alias CA2 -keystore cacerts -storepass changeit -file /Users/noname/Desktop/SymantecClass3EVSSLCA-G3.crt
Old post, but having the same issue now. Did anyone find a definitive cause and fix? For me, it works fine on localhost but fails when run via Heroku where it has been running without issue for 4+ years. No code or stack updates, it just stopped working.
Reporter.jar can't connect to the network
 
 
Q