Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6691570
Votes 0
Synopsis JNLP_TCK test SingleInstanceService/AddRemove2Tests[SingleInstanceService2005] fails since 6u10_b21
Category javawebstart:other
Reported Against
Release Fixed 6u10(b24)
State 11-Closed, Verified, bug
Priority: 1-Very High
Related Bugs
Submit Date 21-APR-2008
Description
TESTSUITE: JNLP_TCK 6
Test: api/javax_jnlp/SingleInstanceService/AddRemove2Tests[SingleInstanceService2005]
OS/platform: initially failure has been detected on WinXP ( Home && Pro ),
             also failed on Solaris10 sparc.
FAIL: JDK 1.6.0_10 b21
PASS: JDK 1.6.0_10 b20 ( also checked on b14 - test passed )

Desc: test launches two instances of application and tries to intall/remove listener for both
 instances.
 The first instance is launched from test harness, and the second one - from first 
 instance. It looks like test hangs during the second instace launching.
 1. Got jnlp app downloaded OK.
 2. Got warning for the first instance ( run or not app ) - OK
 3. Start the first instance - OK.
 4. Got warning for the second instance ( run or not app ) - OK
 5. Window with launching app  customer  doesn't disappeared.
 6. After timeout testlog reports about failure.
    ( see passed and failed test *.jtr files in attach )

Additional info: see source in attach ( AddRemove2Tests.java ),
   another src && jnlp templates are in
/net/stt-13/export/stt/tck_promotions/jnlp_tck/6.0/beta/b03/binaries/jnlp_tck60/tests/api/javax_jnlp/SingleInstanceService

How to reproduce: see in comment section
Posted Date : 2008-04-21 18:50:18.0
Work Around
N/A
Evaluation
This could be due to an excessive double launch of the application.
I will investigate.
Posted Date : 2008-04-22 16:46:21.0

The problem is due to a few new Trace.println in Launcher.java that always get printed out (even if tracing is not enabled), and it's messing up the socket message processing of the TCK harness.

e.g These printlns:

 public String toString() {
       return "DefaultMatchJRE: "+
              "\n  JREDesc:    "+getSelectedJREDesc()+
              "\n  JREInfo:    "+getSelectedJREInfo()+
              "\n  Init Heap:  "+getSelectedInitHeapSize()+
              "\n  Max  Heap:  "+getSelectedMaxHeapSize()+
              "\n  Satisfying: "+isRunningJVMSatisfying()+
              "\n  Selected JVMParam: "+getSelectedJVMParameters()+
              "\n  Running  JVMParam: "+JVMParameters.getRunningJVMParameters();
   }
}

Especially those that begin with a empty white space mess up the harness.
Posted Date : 2008-04-25 21:46:57.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang