JDK-6695615 : Incorrect stclient found
  • Type: Bug
  • Component: install
  • Sub-Component: servicetags
  • Affected Version: 6u5
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: generic
  • Submitted: 2008-04-29
  • Updated: 2010-04-02
  • Resolved: 2008-04-29
Related Reports
Duplicate :  
Description
See http://www.netbeans.org/issues/show_bug.cgi?id=132941

java.lang.IllegalArgumentException: "null" expected to be an integer
	at com.sun.servicetag.Util.getIntValue(Util.java:66)
	at com.sun.servicetag.Registry.parseServiceTag(Registry.java:460)
	at com.sun.servicetag.Registry.getServiceTag(Registry.java:424)
	at org.netbeans.modules.reglib.NbServiceTagSupport.installSystemServiceTag(NbServiceTagSupport.java:639)
	at org.netbeans.modules.reglib.NbServiceTagSupport.createNbServiceTag(NbServiceTagSupport.java:194)
	at org.netbeans.modules.registration.NbInstaller.restored(NbInstaller.java:98)
	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:378)
[catch] at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:297)

------------------

As far as I understand, Tumbleweed has STClient.exe installed (probably) at 
C:\Program Files\Tumbleweed\STClient\STClient.exe

Sun`s client is usualy installed at
C:\Program Files\Sun\servicetag\stclient.exe

The stclient.exe (whatever installed) is also "registered" it at HKLM\software\microsoft\windows\currentversion\app 
paths\stclient.exe on the first execution (if I am not mistaken)

The JDK`s ServiceTag implementation reads this registry key (Util.getWindowsStClientFile()) and uses Tumbleweed`s 
stclient for the servicetag purposes. That is likely wrong...

Comments
EVALUATION The stclient locator logic needs to be reworked to accomodate Windows x64, this CR will be addressed as part of that fix, closing this as a duplicate of 6674101.
29-04-2008

EVALUATION Yes, This needs to be made more specific.
29-04-2008

EVALUATION The registry key for stclient should be specific to Sun's stclient to avoid conflicting with other product.
29-04-2008