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 ?
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 ?
- relates to
-
JDK-8090490 WebView may want to provide finer grained control over HTTP authentication
-
- Open
-
-
JDK-8090268 WebView is unable to POST large file if server requests authentication
-
- Open
-