JDK-4473369 : forceUpdate:true && jnlp:installer-desc == ENDLESS_LOOP
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 1.0,1.0.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-06-22
  • Updated: 2002-08-01
  • Resolved: 2002-03-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
1.2.0 1.2Fixed 1.4.1Fixed
Related Reports
Duplicate :  
Description

Name: tn108358			Date: 06/22/2001


Java Web Start Console, v1.0 started Wed Mar 07 10:16:15 EST 2001
"About Java Web Start"  1.0 (build fcs-b20)

DEFAULT:
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

additional:
java version "1.2.2"
Classic VM (build JDK-1.2.2_005, native threads, symcjit)


  Description:

When there is an installation program (jnlp with <installer-desc/>) used and
javaws.cfg.forceUpdate=true is set in javaws.cfg, Web Start goes into an endless
loop when starting the application from a browser. It keeps running the
installation program over-and-over.

Here are the related files...

*********************
*** DeployIt.jnlp ***
*********************
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for DeployIt Application -->
<jnlp
  spec="1.0+"
  codebase="http://testinfpl/im/dept/ima/aads/ads/cm/DeployIt"
  href="DeployIt.jnlp">

  <information>
    <title>DeployIt</title>
    <vendor>FPL</vendor>
    <homepage href="body.htm"/>
    <description kind="one-line">Tool for deploying applications.</description>
    <description kind="tooltip">DeployIt</description>
    <icon href="DeployIt.gif"/>
    <offline-allowed/>
  </information>

  <security>
      <all-permissions/>
  </security>

  <resources>
    <j2se version="1.2"/>
    <jar href="jars/DeployIt.jar" main="true"/>
    <jar href="jars/DeployItResources.jar" download="eager"/>
    <jar href="jars/FTPProtocol.jar" download="eager"/>
    <extension name="FTP Protocol"
href="http://testinfpl/im/dept/ima/aads/ads/javaws/components/FTPProtocol.jnlp"/
>

    <!-- setup program -->
    <extension name="setup" href="DeployItSetup.jnlp"/>
  </resources>

  <application-desc main-class="com.fpl.ima.pvcs.DeployIt"/>
</jnlp>

**************************
*** DeployItSetup.jnlp ***
**************************
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for DeployIt Setup -->
<jnlp
  spec="1.0+"
  codebase="http://testinfpl/im/dept/ima/aads/ads/cm/DeployIt"
  href="DeployItSetup.jnlp">

  <information>
    <title>DeployIt Setup</title>
    <vendor>FPL</vendor>
    <homepage href="body.htm"/>
    <description kind="one-line">DeployIt Setup Program</description>
    <description kind="tooltip">DeployIt Setup</description>
    <icon href="DeployIt.gif"/>
    <offline-allowed/>
  </information>

  <security>
      <all-permissions/>
  </security>

  <resources>
    <j2se version="1.2"/>
    <jar href="jars/DeployItSetup.jar"/>
  </resources>

  <installer-desc main-class="com.fpl.ima.deployit.setup.TestSetup"/>
</jnlp>

************************
*** FTPProtocol.jnlp ***
************************
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for the FTP Protocol component -->
<jnlp
  spec="1.0+"
  codebase="http://testinfpl/im/dept/ima/aads/ads/javaws/components"
  href="FTPProtocol.jnlp">

  <information>
    <title>FTP Protocol</title>
    <vendor>alphaWorks</vendor>
    <homepage
href="http://alphaworks.ibm.com/ab.nsf/techmain/62CFA1F198FDFA0988256723000AC882
?OpenDocument"/>
    <description kind="one-line">alphaWorks FTP Protocol Bean</description>
    <description kind="tooltip">FTP Protocol</description>
    <description kind="short">
      The File Transfer Protocol (FTP) is the standard protocol for transferring
files to and from remote
      machines running FTP server and client code. The FTP Bean Suite implements
this protocol,
      making it easy to include file transfer functions in your applications.
See the documentation
      included with this bean suite for complete instructions on how to wire
these beans together in a
      visual builder tool.
    </description>
    <icon href="http://alphaworks.ibm.com/g/g.nsf/img/home/$file/beans.gif"/>
    <offline-allowed/>
  </information>

  <security>
      <all-permissions/>
  </security>

  <resources>
    <j2se version="1.1,1.2"/>
    <jar href="FTPProtocol.jar"/>
  </resources>

  <component-desc/>
</jnlp>

******************
*** javaws.cfg ***
******************
#
#Wed Mar 07 10:27:17 EST 2001
javaws.cfg.jre.0.product=1.3.0
javaws.cfg.jre.0.platform=1.3
javaws.favorites.size=0
javaws.cfg.logToFile=false
javaws.cfg.forceUpdate=true
javaws.whenInstall=2
javaws.cfg.jre.1.product=1.2.2_005
javaws.cfg.jre.0.path=C\:\\Program Files\\JavaSoft\\JRE\\1.3\\bin\\javaw.exe
javaws.cfg.jre.1.platform=1.2
javaws.cfg.logFileName=WebStart.out
javaws.cfg.showConsole=true
javaws.cfg.jre.1.path=C\:\\Program Files\\JavaSoft\\JRE\\1.2\\bin\\java.exe
javaws.cfg.proxy.httpproxyoverride=localhost
javaws.whatInstall=3

**********************
*** TestSetup.java ***
**********************
package com.fpl.ima.deployit.setup;

import javax.jnlp.*;
/**
 * Insert the type's description here.
 * Creation date: (3/7/01 7:22:13 AM)
 * @author: Ploch, Mirko
 */
public class TestSetup {
/**
 * TestSetup constructor comment.
 */
public TestSetup() {
	super();
}
/**
 * Starts the application.
 * @param args an array of command-line arguments
 */
public static void main(java.lang.String[] args)
{
	ExtensionInstallerService eis = null;

	System.out.println("Starting setup");

	try
	{
		eis = (ExtensionInstallerService)ServiceManager.lookup
("javax.jnlp.ExtensionInstallerService");

		eis.setHeading("Test Setup Program");

		for (int cnt = 0; cnt <= 100; cnt += 5)
		{
			eis.updateProgress(cnt);
			eis.setStatus("Step: " + cnt);
			System.out.print("o");
			try { Thread.sleep(500L); } catch (InterruptedException
e) {}
		}

		System.out.println();
	}
	catch (UnavailableServiceException e)
	{
		System.err.println(e.toString());
	}
	catch (Throwable t)
	{
		System.err.print("Setup FAILED: " + t.toString());
		if (eis != null)
		{
			eis.installFailed();
		}

		System.exit(1);
	}

	System.out.println("Setup Complete");

	eis.installSucceeded(false);

	System.exit(0);
}
}
(Review ID: 118305) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2 hopper FIXED IN: 1.2 hopper INTEGRATED IN: 1.2 hopper VERIFIED IN: 1.2 hopper-rc
31-08-2004

EVALUATION need to fix for 1.2
31-08-2004

WORK AROUND Name: tn108358 Date: 06/22/2001 Don't use javaws.cfg.forceUpdate=true when you have an installation program. ======================================================================
31-08-2004