Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.net.UnknownHostException: url
    primarykey
    data
    text
    <p>I have written a java file which opens a HTTPS connection to a server that has given restricted access to call its web services from our unix server. So we are able to ping the server ip, telnet the server ip with port 443 all successfully so the network team has given confirmation that the we can start calling the webservices. Now we have tried everything on Windows server, installed the certificates they have provided in the local folder and simply run the jar. and we were able to establish connection. Now we have to migrate to unix server. We have copied the certificates local to the jar. On running the jar we get the following exception.</p> <pre><code> java.net.UnknownHostException: wugateway2pi.westernunion.net at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:564) at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141) at sun.net.NetworkClient.doConnect(NetworkClient.java:163) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) at sun.net.www.http.HttpClient.openServer(HttpClient.java:523) at sun.net.www.protocol.https.HttpsClient.&lt;init&gt;(HttpsClient.java:272) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient (AbstractDelegateHttpsURLConnection.java:172) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:158) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream (HttpURLConnection.java:1014) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream (HttpsURLConnectionImpl.java:230) at utils.HelloWorld.heartbeat(HelloWorld.java:129) at utils.HelloWorld.main(HelloWorld.java:492) TRANSFAST: Some Error occurs during parsing the sendtrnx response java.lang.IllegalArgumentException: InputStream cannot be null at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120) at utils.HelloWorld.heartbeat(HelloWorld.java:160) at utils.HelloWorld.main(HelloWorld.java:492) java.lang.RuntimeException: Exception in XML Parsing for the Response: at utils.HelloWorld.heartbeat(HelloWorld.java:184) at utils.HelloWorld.main(HelloWorld.java:492) Calling heartbeat noCall </code></pre> <p>No idea what is missing.</p> <p>Regards, Rache</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload