United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6693244 Java Web Start app fails on 6u10 beta w/ AssertionError in AuthenticationInfo.requestCompleted
JDK-6693244 : Java Web Start app fails on 6u10 beta w/ AssertionError in AuthenticationInfo.requestCompleted

Details
Type:
Bug
Submit Date:
2008-04-24
Status:
Resolved
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2008-05-13
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.net
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b24)

Related Reports
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
Java Web Start application fails to start on JRE6u10 b14 (beta) with 
java.lang.AssertionError after authentication attempt.
The Java Web Start Error message is:
Application Error: Unable to launch the application


The Exception tab shows:

java.lang.AssertionError
   at sun.net.www.protocol.http.AuthenticationInfo.requestCompleted(Unknown Source)
   at sun.net.www.protocol.http.AuthenticationInfo.endAuthRequest(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
   at com.sun.javaws.Launcher.launch(Unknown Source)
   at com.sun.javaws.Main.launchApp(Unknown Source)
   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
   at com.sun.javaws.Main$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source) 


The problem is strictly reproducible.

                                    

Comments
EVALUATION

This is most likely as a result of the changes for CR 6648001. CR 6648001 was fixed in 6u10 b13.

Aside from this, I can see the possibility that endAuthRequest can be invoked twice with the same key. endAuthRequest in turn invokes requestCompleted, which contains the assertion. If an authentication request succeeds it will be added to the cache, Authentication.addToCache, this method will invoke endAuthRequest. HttpURLConenction.getInputStream has a finally block that will also invoke endAuthRequest.
                                     
2008-04-28
EVALUATION

ChangeSet=http://hg.openjdk.java.net/jdk7/tl/jdk/rev/ec438f2b6886,ChangeRequest=6693244
                                     
2010-02-10



Hardware and Software, Engineered to Work Together