Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118819

WebView doesnt load pages from protected HTTP server [java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • None
    • javafx
    • None
    • Windows 7 Enterprise

    • web

      I am using WebView in a JavaFX application to load intranet webpages. Kerberos authentication is used and I have configured the Kerberos settings and it is working fine. The webpage is a kind of search page. The initial page loads fine. But when I enter a search term and click search, I get the following error

      Feb 27, 2012 6:42:30 PM com.sun.webpane.webkit.network.URLFetcher doRun
      WARNING: Unexpected error
      java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1411)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
      at com.sun.webpane.webkit.network.URLFetcher.receiveResponse(Unknown Source)
      at com.sun.webpane.webkit.network.URLFetcher.doRun(Unknown Source)
      at com.sun.webpane.webkit.network.URLFetcher.access$000(Unknown Source)
      at com.sun.webpane.webkit.network.URLFetcher$1.run(Unknown Source)
      at com.sun.webpane.webkit.network.URLFetcher$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.webpane.webkit.network.URLFetcher.run(Unknown Source)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      It seems it is because of using streaming mode. But I dont find any option to disable it. How to make it work ?

        1. Gadget.java
          5 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          167 kB
        3. screenshot-2.jpg
          screenshot-2.jpg
          222 kB
        4. screenshot-3.jpg
          screenshot-3.jpg
          19 kB
        5. screenshot-4.jpg
          screenshot-4.jpg
          26 kB
        6. screenshot-5.jpg
          screenshot-5.jpg
          19 kB
        7. screenshot-6.jpg
          screenshot-6.jpg
          80 kB

            vbaranov Vasiliy Baranov (Inactive)
            skumarjfx Senthil Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: