JDK-8081506 : The applet can be loaded and played, but it throws java.util.NoSuchElementException in java console
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7,8u60
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2013-12-20
  • Updated: 2015-09-08
  • Resolved: 2015-06-05
Related Reports
Duplicate :  
Description
Testsuite: set1 in applet
Test name(s): vredungmand_MrHopwitMysterious    
Product(s) tested: Jre6u71b12 32bit  
OS/architecture: Ubuntu 12.04 x86  

Reproducible: Always
Reproducible on machine: egtc

Is it a Regression:Not sure
(jre6u71 b11 fcs 32bit+FF26 32bit+Ubuntu 12.04 x86:FAILED,it's the same issue.) 


Test result on the last GAed release for this train:
(jre6u65 b14 32bit+FF26 32bit+Ubuntu 12.04 x86:FAILED,it's the same issue.)

[if Fail] Test result on FCS:(jre6u71 b11 fcs 32bit+FF26 32bit+Ubuntu 12.04 x86:FAILED,it's the same issue.) 

Is it a platform specific issue:Not sure
(jre6u71 b12 32bit+FF26 32bit+WinVista x86:FAILED,it's the same issue.)
 

Exception/Error from Log:
http://aurora-ds.us.oracle.com:9500/runs%2F335498.ManualSubmit-1/workDir/set1/vredungmand_MrHopwitMysterious.jtr


Copy applet workspace,install test jre,and run this case
Steps to reproduce:

1. Browse http://www.vredungmand.dk/games
2. Select to play 'Spacerace to Timbuktu'
3. Review the game instructions provided at the bottom if necessary
4. Play the game, test the applet using all features and functionality
5. Attempt to reload and refresh the applet, browser window
6. Try to resize the applet browser window
7. Check the Java Console for warnings/errors

Exception:

java.util.NoSuchElementException
	at java.util.StringTokenizer.nextToken(Unknown Source)
	at sjg.hiscore.Hiscore$2.run(Hiscore.java:85)

The actual result: 
The applet can be loaded and played,but it throws java.util.NoSuchElementException in java console.Please refer to vredungmand_SpaceraceTimbuktu.jpg and vredungmand_SpaceraceTimbuktu.txt

Validation: 

same configuration/6u33 fcs b04-----Failed as the same issue. 
same configuration/6u45 fcs b06-----Failed as the same issue. 
same configuration/6u65 fcs b14-----Failed as the same issue. 
same configuration/6u71 fcs b11-----Failed as the same issue. 
same JRE( x32 bit ), WinVista x86, FF26-----Failed as the same issue. 
Comments
About the first exception (java.security.AccessControlException) - it's a duplicate of JDK-8075602 (it's not yet backported from cpu repo). And the second one (java.util.NoSuchElementException) is not related to deployment.
05-06-2015

8u60 b17: 1. Add http://www.vredungmand.dk to ESL. 2. Open http://www.vredungmand.dk/games/timbuktu/index.html java.security.AccessControlException: access denied ("java.net.SocketPermission" "www.vredungmand.dk" "resolve") at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source) at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName(Unknown Source) at java.net.InetAddress.getAllByName(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at com.sun.deploy.net.CrossDomainXML.addAccess(Unknown Source) at com.sun.deploy.net.CrossDomainXML.allowNoAccess(Unknown Source) at com.sun.deploy.net.CrossDomainXML.check(Unknown Source) at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source) at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName(Unknown Source) at java.net.InetAddress.getAllByName(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at java.net.URLStreamHandler.getHostAddress(Unknown Source) at java.net.URLStreamHandler.hashCode(Unknown Source) at java.net.URL.hashCode(Unknown Source) at java.util.HashMap.hash(Unknown Source) at java.util.HashMap.get(Unknown Source) at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getImage(Unknown Source) at java.applet.Applet.getImage(Unknown Source) at java.applet.Applet.getImage(Unknown Source) at sjg.animation.Cropper.getImageFromWeb(Cropper.java:77) at sjg.animation.Cropper.cropFromWeb(Cropper.java:100) at sjg.animation.Cropper.<init>(Cropper.java:143) at Timbuktu.init(Timbuktu.java:1075) at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) AND java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(Unknown Source) at sjg.hiscore.Hiscore$2.run(Hiscore.java:85)
29-05-2015

winvista-sp2-x64/6u101b11/IE9:there is same issue
15-05-2015

mac10.9/8u60b14/FF37 There is same issue. RULE set1/vredungmand_MrHopwitMysterious any any RULE set1/vredungmand_SpaceraceTimbuktu any any
09-05-2015

This issue can be reproduce on Windows7 sp1 x86 + jre6u95b04 32bit +Chrome40
27-01-2015

This issue can be reproduce on Windows XP SP3 x86 + jre8u40b18 32bit +IE8
15-12-2014

This issue also happen for 5u81b04 on Windows Vista SP2 x86 with IE9 RULE set1/vredungmand_MrHopwitMysterious any any RULE set1/vredungmand_SpaceraceTimbuktu any any
24-10-2014

It is legal Exception. It Throws when there are no more tokens. http://docs.oracle.com/javase/6/docs/api/java/util/StringTokenizer.html#nextToken%28%29 Need to append test description about this exception. And don't create new bug about it. Or need to remove these applets from test suite. Another way, write letter to site owner and ask to fix applets.
23-12-2013