JDK-7191616 : javaws.exe crashes when starting jnlp file
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 7,7u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_7
  • CPU: generic,x86
  • Submitted: 2012-08-15
  • Updated: 2016-04-19
  • Resolved: 2014-08-04
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.
JDK 7 JDK 8
7u10Fixed 8Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Client VM (build 23.2-b09, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows 7 64bit

A DESCRIPTION OF THE PROBLEM :
The jnlp file provided in the steps to reproduce always crashes javaws.exe in Java 7 Update 6.

No problems in Update 4.

The problem goes away if the first jar does not have the ?version=2012.301 parameter.

REGRESSION.  Last worked in version 7

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Save the following XML to test.jnlp and start it.


<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:40000/ulcjnlp">
  <information>
    <title>ABACUS</title>
    <vendor>ABACUS Research AG</vendor>
    <homepage href="http://www.abacus.ch"/>
    <icon href="http://localhost:40000/ulc/aba.jpg"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.6+" max-heap-size="200m" dock:name="ABACUS"/>
    
    <jar href="http://localhost:40000/ulc/lib/signed_atk_ulc_client.jar?version=2012.301"/>
    <jar href="http://localhost:40000/ulc/lib/signed_bc.jar?version=f2cuVtcllN73Gg4fTAeLf0CZTms%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_ib5core.jar?version=KLeEfUHquS9%2FJFIQfafvVpAz%2F4Q%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_ib5ref.jar?version=A8FvjuJWbCFmWsx3JLqW6Az9V9Q%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_ib5swing.jar?version=OVgE%2BaMjhD0V4sxKdnvXITZ303o%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_ib5util.jar?version=Z8gJLRinYEsxyUTbIGVwWWGIPOw%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_jai_codec.jar?version=MMsvhXkMtmqdLpaTW%2F5Uh2Vt9SY%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_jai_core.jar?version=NHYS8nSXr%2FE7nKudAdPNsH74N%2B4%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_jai_imageio.jar?version=TWZ0KB3jCcItfrQ2yzNbYp3jltE%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_jdic-win32.jar?version=Ny6UcfJLjLVMIbhy%2BYpFTFhNapg%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_jpedal-client.jar?version=jB%2BtxqyLBQIELfpfmpS%2FH8iXhgo%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_jsr305.jar?version=UWwDsh1QpkTVON4PA2nGIJic2PA%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_rhino.jar?version=9JfH4aPVU%2FfvE5DKnl2bJ2wxxjk%3D"/>
    <jar href="http://localhost:40000/ulc/lib/signed_ulc-core-client.jar?version=pINmmU5blq2fZlzkMBsWFa%2FpACo%3D"/>
  </resources>
  <application-desc main-class="ch.abacus.ulc.client.AbacusJnlpLauncher">
    <argument>scope=DefaultScope</argument>
    <argument>base-url=http://abaintern</argument>
    <argument>servlet-path=ulcmenu</argument>
    <argument>keep-alive-interval=900</argument>
    <argument>log-level=WARNING</argument>
    <argument>ulcURI=ulcmenu</argument>
    <argument>AbacusApplication=99</argument>
    <argument>AbacusProgramm=1</argument>
    <argument>client-coder-registry-provider=ch.abacus.ulc.client.serialization.AbaClientCoderRegistryProvider</argument>
    <argument>carrier-stream-provider=ch.abacus.ulc.shared.provider.AbaCarrierStreamProvider</argument>
    <argument>data-stream-provider=ch.abacus.ulc.shared.provider.StringCoderDataStreamProvider</argument>
  </application-desc>
</jnlp>


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Webstart should launch
ACTUAL -
Webstart crashes.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Problem signature:
  Problem Event Name:	BEX64
  Application Name:	javaws.exe
  Application Version:	10.6.2.24
  Application Timestamp:	50248e25
  Fault Module Name:	javaws.exe
  Fault Module Version:	10.6.2.24
  Fault Module Timestamp:	50248e25
  Exception Offset:	0000000000016448
  Exception Code:	c0000417
  Exception Data:	0000000000000000
  OS Version:	6.1.7601.2.1.0.256.48
  Locale ID:	2055
  Additional Information 1:	d806
  Additional Information 2:	d806766b06868b7edb630cb06c6aa7d0
  Additional Information 3:	9428
  Additional Information 4:	94288905092a426febff2b6139c6f8ed

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION Victor Drozdov wrote: The problem was that for Windows DEPLOY_STRNCPY is defined as _tcsncpy_s() - version of strncpy with security enhancements. And that requires destination size > sourse size for passed arguments. For Unix\MacOSX DEPLOY_STRNCPY, destination size is not used. 7191616 issue happens because of error in sysFindSiPort(), but I also fixed same problem in sysFindSiNumber(). For Unix\MacOSX the issue does not exist.
21-08-2012