Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You may be having certificate issues. This is typically the problem I have encountered in the past when working with HTTPS connections in Java. </p> <p>First, you should check and see if the URL to which you are attempting to connect has a signed certificate by a well-known trusted root CA, and is valid (not expired). </p> <p>I would recommend opening the URL in your browser and checking the certificate information. </p> <p>Just a FYI, there may be a disconnect between the Trusted Root CAs recognized by your browser and those recognized by Java. Here is another Stackoverflow question about how to get those recognized by Java: <a href="https://stackoverflow.com/questions/3508050/how-can-i-get-a-list-of-trusted-root-certificates-in-java">How can I get a list of trusted root certificates in Java?</a></p> <p>If this is a self-signed certificate, then there are hoops you will need to jump through regarding importing it into and using a local Keystore. There are numerous sites and blogs that guide you through doing this, here is one such blog (not mine): <a href="http://www.chrissearle.org/node/260" rel="nofollow noreferrer">Adding self-signed https certificates to java keystore</a></p> <p>Also, while you are testing with the browser, this will help you verify that there are no proxy issues. You should definitely check your browser's settings to determine whether or not you are going through a proxy server.</p> <p>You should definitely look into using HttpClient instead of java.net.URL. Here is the <a href="http://hc.apache.org/httpcomponents-client-ga/index.html" rel="nofollow noreferrer">Apache page for HttpClient 4.2.1</a>. </p> <p>Finally, if you are looking to do a file transfer via HTTP or HTTPS, you may want to consider WebDAV. </p> <p>I have used Jakarta Slide WebDAV Client for this in the past. Unfortunately, it looks like <a href="http://jakarta.apache.org/slide/" rel="nofollow noreferrer">Slide is retired at this point</a>, but there are alternatives you can find with a little bit of searching. </p> <p><strong>ADDITION</strong> </p> <p>I copied down your source code sample and looked at it more closely. Looks like you set properties for http, but not https.</p> <p>HTTPS has separate properties:</p> <ul> <li>https.proxyHost</li> <li>https.proxyPort</li> </ul> <p>Try setting:</p> <pre><code>System.setProperty("https.proxyHost","trproxy.rwe.com") ; System.setProperty("https.proxyPort", "443") ; </code></pre> <p>Look at section 2.2 on <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html" rel="nofollow noreferrer">Oracle's Java Networking and Proxies</a>.</p> <p><a href="http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html" rel="nofollow noreferrer">http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html</a></p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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