-
Bug
-
Resolution: Fixed
-
P3
-
7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2230147 | 7u21 | Dmitry Cherepanov | P3 | Closed | Fixed | b02 |
JDK-8000154 | na | Dmitry Cherepanov | P3 | Closed | Fixed | b01 |
FULL PRODUCT VERSION :
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
we are having an issue with our existing Web Start Application in Java Version 7 Update 2 and above where the Sub Menu items are not being associated with Internet Explorer with href link as Target when using <related-content> tag in JNLP. This is working fine in JRE 1.6, JRE 1.7.0 and 1.7.1.
REGRESSION. Last worked in version 6u31
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
launch the jnlp file using java webstart
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The Start menu short cuts associated with <related-content/> should assign an applicaton and target as specified in href.
ACTUAL -
The Start menu shortcuts gets created but the shortcuts points to target location "Computer" instead of the what's specified in href.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Java Web Start 10.5.0.06
Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM
User home directory = C:\Users\myname
:
:
network: Disconnect connection to http://localhost:8080/demo/demo.jar
preloader: Delivering: DownloadEvent[type=verify,loaded=0, total=6, percent=90]
security: Blacklist revocation check is enabled
security: The jar file isnt signed so the blacklist check will be skipped
security: Trusted libraries list check is enabled
security: Trusted libraries list file not found
preloader: Delivering: DownloadEvent[type=verify,loaded=6, total=6, percent=95]
network: Cache: Enable a new CacheEntry: http://localhost:8080/demo/demo.jar
network: CleanupThread used 3 us
network: Downloaded http://localhost:8080/demo/demo.jar: C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\42\5f23322a-60d7a732
network: Download Progress: jarsDone: 1
preloader: Delivering: DownloadEvent[type=verify,loaded=1, total=1, percent=100]
preloader: Enter wait for preloader jars to be loaded
preloader: Done with loading of preloader jars. Error=null
network: Created version ID: 1.6+
network: Created version ID: 7.0
basic: _jreInstalled: false
basic: DefaultMatchJRE:
JREDesc: JREDesc[version 1.6+, heap=134217728-268435456, args=null, href=null, sel=true, null, null]
JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_05
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre7\bin\javaw.exe
args is:
native platform is: Windows, x86 [ x86, 32bit ]
enabled is: true
registered is: true
system is: true
Init Heap: 134217728
Max Heap: 268435456
Satisfying: true, true
SatisfyingVersion: true
SatisfyingJVMArgs: true, true
SatisfyingSecure: true
Selected JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
Running JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
basic: passing security checks; secureArgs:true, allSigned:false
basic: trusted app: false, -secure=false
basic: DefaultMatchJRE:
JREDesc: JREDesc[version 1.6+, heap=134217728-268435456, args=null, href=null, sel=true, null, null]
JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_05
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre7\bin\javaw.exe
args is:
native platform is: Windows, x86 [ x86, 32bit ]
enabled is: true
registered is: true
system is: true
Init Heap: 134217728
Max Heap: 268435456
Satisfying: true, true
SatisfyingVersion: true
SatisfyingJVMArgs: true, true
SatisfyingSecure: true
Selected JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
Running JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
temp: Start path: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ desktop C:\Users\username\Desktoptemp: installshortcut with args:
temp: path: C:\Users\username\Desktop\Demo Webstart.lnk
temp: name: Demo Webstart
temp: desc: null
temp: appP: C:\Windows\system32\javaws.exe
temp: args: -localfile -J-Djnlp.application.href=http://localhost:8080/demo/demo.jnlp "C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\53\7fec3bf5-49a9ecf2"
temp: dir : null
temp: icon: C:\Windows\system32\javaws.exe
temp: Installed desktop shortcut for: Demo Webstart.
temp: installshortcut with args:
temp: path: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Demo Webstart\Demo Webstart.lnk
temp: name: Demo Webstart
temp: desc: null
temp: appP: C:\Windows\system32\javaws.exe
temp: args: -localfile -J-Djnlp.application.href=http://localhost:8080/demo/demo.jnlp "C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\53\7fec3bf5-49a9ecf2"
temp: dir : null
temp: icon: C:\Windows\system32\javaws.exe
temp: Installed menu shortcut for: Demo Webstart.
network: Cache entry not found [url: http://www.google.com, version: null]
cache: Cannot get resource from cache: http://www.google.com
temp: installshortcut with args:
temp: path: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Demo Webstart\Google shortcut.lnk
temp: name: Google shortcut
temp: desc: null
temp: appP: null
temp: args: http://www.google.com
temp: dir : null
temp: icon: C:\Windows\system32\javaws.exe
temp: Installed menu shortcut for: Google shortcut.
basic: continuing launch in this VM
basic: Main-class: org.Test
preloader: Delivering: AppInitEvent[type=LoadClass]
preloader: AppInitEvent that is not handled explicitly
security: JAVAWS AppPolicy Permission requested for: http://localhost:8080/demo/demo.jar
security: Add sandbox permissions
security: JAVAWS AppPolicy Permission requested for: http://localhost:8080/demo/demo.jar
security: Add sandbox permissions
preloader: Delivering: AppInitEvent[type=CallMain]
preloader: Stop progressCheck thread
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
1. demo.jnlp
--------------
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.6+" codebase="http://localhost:8080/demo" href="demo.jnlp">
<information>
<title>Demo Webstart</title>
<vendor>Demo Webstart</vendor>
<offline-allowed />
<shortcut online="true">
<desktop />
<menu submenu="Demo Webstart" />
</shortcut>
<related-content href="http://www.google.com">
<title>Google shortcut</title>
</related-content>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+" initial-heap-size="134217728" max-heap-size="268435456"/>
<jar href="demo.jar" main="true" download="eager" main="true"/>
</resources>
<application-desc
name="DemoWebstart"
main-class="org.Test"
width="300"
height="300">
</application-desc>
<update check="timeout" policy="always" />
</jnlp>
2.index.html
-----------------
<html>
<head></head>
<body>
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
// using JavaScript to get location of JNLP file relative to HTML page
var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);
var url = dir + "demo.jnlp";
deployJava.createWebStartLaunchButton(url, '1.6.0');
</script>
<noscript>
<a href="demo.jnlp">Launch</a>
</noscript>
</body>
</html>
3. Test.java (demo.jar)
---------------------------------
package org;
import javax.swing.JFrame;
import java.awt.Dimension;
public class Test {
public Test() {
JFrame faren = new JFrame("Test");
faren.setSize(new Dimension(300, 300));
faren.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
faren.setVisible(true);
}
public static void main(String[] args) {
new Test();
}
}
---------- END SOURCE ----------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
we are having an issue with our existing Web Start Application in Java Version 7 Update 2 and above where the Sub Menu items are not being associated with Internet Explorer with href link as Target when using <related-content> tag in JNLP. This is working fine in JRE 1.6, JRE 1.7.0 and 1.7.1.
REGRESSION. Last worked in version 6u31
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
launch the jnlp file using java webstart
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The Start menu short cuts associated with <related-content/> should assign an applicaton and target as specified in href.
ACTUAL -
The Start menu shortcuts gets created but the shortcuts points to target location "Computer" instead of the what's specified in href.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Java Web Start 10.5.0.06
Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM
User home directory = C:\Users\myname
:
:
network: Disconnect connection to http://localhost:8080/demo/demo.jar
preloader: Delivering: DownloadEvent[type=verify,loaded=0, total=6, percent=90]
security: Blacklist revocation check is enabled
security: The jar file isnt signed so the blacklist check will be skipped
security: Trusted libraries list check is enabled
security: Trusted libraries list file not found
preloader: Delivering: DownloadEvent[type=verify,loaded=6, total=6, percent=95]
network: Cache: Enable a new CacheEntry: http://localhost:8080/demo/demo.jar
network: CleanupThread used 3 us
network: Downloaded http://localhost:8080/demo/demo.jar: C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\42\5f23322a-60d7a732
network: Download Progress: jarsDone: 1
preloader: Delivering: DownloadEvent[type=verify,loaded=1, total=1, percent=100]
preloader: Enter wait for preloader jars to be loaded
preloader: Done with loading of preloader jars. Error=null
network: Created version ID: 1.6+
network: Created version ID: 7.0
basic: _jreInstalled: false
basic: DefaultMatchJRE:
JREDesc: JREDesc[version 1.6+, heap=134217728-268435456, args=null, href=null, sel=true, null, null]
JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_05
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre7\bin\javaw.exe
args is:
native platform is: Windows, x86 [ x86, 32bit ]
enabled is: true
registered is: true
system is: true
Init Heap: 134217728
Max Heap: 268435456
Satisfying: true, true
SatisfyingVersion: true
SatisfyingJVMArgs: true, true
SatisfyingSecure: true
Selected JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
Running JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
basic: passing security checks; secureArgs:true, allSigned:false
basic: trusted app: false, -secure=false
basic: DefaultMatchJRE:
JREDesc: JREDesc[version 1.6+, heap=134217728-268435456, args=null, href=null, sel=true, null, null]
JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_05
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre7\bin\javaw.exe
args is:
native platform is: Windows, x86 [ x86, 32bit ]
enabled is: true
registered is: true
system is: true
Init Heap: 134217728
Max Heap: 268435456
Satisfying: true, true
SatisfyingVersion: true
SatisfyingJVMArgs: true, true
SatisfyingSecure: true
Selected JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
Running JVMParam: [JVMParameters: isSecure: true, args: -Xms128m]
temp: Start path: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ desktop C:\Users\username\Desktoptemp: installshortcut with args:
temp: path: C:\Users\username\Desktop\Demo Webstart.lnk
temp: name: Demo Webstart
temp: desc: null
temp: appP: C:\Windows\system32\javaws.exe
temp: args: -localfile -J-Djnlp.application.href=http://localhost:8080/demo/demo.jnlp "C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\53\7fec3bf5-49a9ecf2"
temp: dir : null
temp: icon: C:\Windows\system32\javaws.exe
temp: Installed desktop shortcut for: Demo Webstart.
temp: installshortcut with args:
temp: path: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Demo Webstart\Demo Webstart.lnk
temp: name: Demo Webstart
temp: desc: null
temp: appP: C:\Windows\system32\javaws.exe
temp: args: -localfile -J-Djnlp.application.href=http://localhost:8080/demo/demo.jnlp "C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\53\7fec3bf5-49a9ecf2"
temp: dir : null
temp: icon: C:\Windows\system32\javaws.exe
temp: Installed menu shortcut for: Demo Webstart.
network: Cache entry not found [url: http://www.google.com, version: null]
cache: Cannot get resource from cache: http://www.google.com
temp: installshortcut with args:
temp: path: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Demo Webstart\Google shortcut.lnk
temp: name: Google shortcut
temp: desc: null
temp: appP: null
temp: args: http://www.google.com
temp: dir : null
temp: icon: C:\Windows\system32\javaws.exe
temp: Installed menu shortcut for: Google shortcut.
basic: continuing launch in this VM
basic: Main-class: org.Test
preloader: Delivering: AppInitEvent[type=LoadClass]
preloader: AppInitEvent that is not handled explicitly
security: JAVAWS AppPolicy Permission requested for: http://localhost:8080/demo/demo.jar
security: Add sandbox permissions
security: JAVAWS AppPolicy Permission requested for: http://localhost:8080/demo/demo.jar
security: Add sandbox permissions
preloader: Delivering: AppInitEvent[type=CallMain]
preloader: Stop progressCheck thread
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
1. demo.jnlp
--------------
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.6+" codebase="http://localhost:8080/demo" href="demo.jnlp">
<information>
<title>Demo Webstart</title>
<vendor>Demo Webstart</vendor>
<offline-allowed />
<shortcut online="true">
<desktop />
<menu submenu="Demo Webstart" />
</shortcut>
<related-content href="http://www.google.com">
<title>Google shortcut</title>
</related-content>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+" initial-heap-size="134217728" max-heap-size="268435456"/>
<jar href="demo.jar" main="true" download="eager" main="true"/>
</resources>
<application-desc
name="DemoWebstart"
main-class="org.Test"
width="300"
height="300">
</application-desc>
<update check="timeout" policy="always" />
</jnlp>
2.index.html
-----------------
<html>
<head></head>
<body>
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
// using JavaScript to get location of JNLP file relative to HTML page
var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);
var url = dir + "demo.jnlp";
deployJava.createWebStartLaunchButton(url, '1.6.0');
</script>
<noscript>
<a href="demo.jnlp">Launch</a>
</noscript>
</body>
</html>
3. Test.java (demo.jar)
---------------------------------
package org;
import javax.swing.JFrame;
import java.awt.Dimension;
public class Test {
public Test() {
JFrame faren = new JFrame("Test");
faren.setSize(new Dimension(300, 300));
faren.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
faren.setVisible(true);
}
public static void main(String[] args) {
new Test();
}
}
---------- END SOURCE ----------
- backported by
-
JDK-2230147 JNLP <related-content> issue in JRE 7u5 Sub Menu Item link not working
-
- Closed
-
-
JDK-8000154 JNLP <related-content> issue in JRE 7u5 Sub Menu Item link not working
-
- Closed
-