JDK-6728843 : Limit on size of JVM arguments passed to application through -J option
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-07-23
  • Updated: 2017-12-22
  • Resolved: 2017-12-22
Description
FULL PRODUCT VERSION :
1.6.0_04

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Professional, Version 2002, Service Pack 2

A DESCRIPTION OF THE PROBLEM :
When passing vm arguments using -J option at command prompt to launch JNLP, the vm arguments are not  passed to the application. This restriction is probably on the size of characters present in jnlp command. If the size of arguments are reduced the vm arguments are correctly passed to the application.

This bug cannot be reproduced in 1.6.0_01

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a jnlp and execute from commad prompt as following

javaws http://test.new.com:7689 -J-Dprop1=test -J-Dprop2=test2 -J-Dprop3=test3 (char length of 1426 characters from -J-Dprop1 to last property).

Run the below command completely replacing the jnlp with a valid jnlp and keeping the same arguments.

javaws http://am1p456lon.ppt.alpinexion.com:5383/JNLPDispatcher/apps/NewAngleRepresentation_v3.x.jnlp -J-Xmx768m -J-Xms128m  -J-DApplicationID=NewAngleActions_v3.x -J-DDSOracleAOLUserName=******** -J-DDSOracleAOLReadPassword=*********** -J-DDSAOLOracleURL=jdbc:oracle:OCD:olpu016drty3409.atm.alpineexion.com:9996/test_QA_environment -J-DLogFile=NewAngleActions_0104564user20080721093723log -J-DDSOracleReadUserName=******* -J-DDevelopment=YES -J-DDSOracleWritePassword=******** -J-DProxyAOLHost=am1p456lon.ppt.alpinexion.com:5383 -J-DTestingproxy=am1p456lon.ppt.alpinexion.com:5383 -J-DWriteTestingproxy=am1p456lon.ppt.alpinexion.com:5383 -J-DDSApplication=NewAngle_Representation -J-DWriteDataSource=dbc:oracle:AOL:am1p456lon.ppt.alpinexion.com:5383 -J-DGenerateAOLReport=YES -J-DDSOracleDriver=com.jdbc.oracle.jdbc.Driver -J-DDSEnvironment=AOL/London/Manchester/City/Align/Unit/group/new -J-DDSReleaseIS=NewAngleRepresentation -J-DDSArea=spain -J-Dproxy.region=align.samlink.saphire.com:9435 -J-DLoggingLevel=Debug -J-DLaunchURL=http://am1p456lon.ppt.alpinexion.com:5383/JNLPDispatcher/apps/NewAngleRepresentation_v3.x.jnlp

Print the properties in application fetching them like System.getProperties(). The above properties will not be present

Reduce the no of argument (4-5) and repeat the above process. The properties will be present when System.getProperties() is called


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There should be no limit on the no of vm arguments passed

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 6u1
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Release Regression From : 6u1
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
tried all of the above -J args in the following command: javaws -J-DApplicationID=NewAngleActions_v3.x -J-DDSOracleAOLUserName=******** -J-DDSOracleAOLReadPassword=*********** -J-DDSAOLOracleURL=jdbc:oracle:OCD:olpu016drty3409.atm.alpineexion.com:9996/test_QA_environment -J-DLogFile=NewAngleActions_0104564user20080721093723log -J-DDSOracleReadUserName=******* -J-DDevelopment=YES -J-DDSOracleWritePassword=******** -J-DProxyAOLHost=am1p456lon.ppt.alpinexion.com:5383 -J-DTestingproxy=am1p456lon.ppt.alpinexion.com:5383 -J-DWriteTestingproxy=am1p456lon.ppt.alpinexion.com:5383 -J-DDSApplication=NewAngle_Representation -J-DWriteDataSource=dbc:oracle:AOL:am1p456lon.ppt.alpinexion.com:5383 -J-DGenerateAOLReport=YES -J-DDSOracleDriver=com.jdbc.oracle.jdbc.Driver -J-DDSEnvironment=AOL/London/Manchester/City/Align/Unit/group/new -J-DDSReleaseIS=NewAngleRepresentation -J-DDSArea=spain -J-Dproxy.region=align.samlink.saphire.com:9435 -J-DLoggingLevel=Debug -J-DLaunchURL=http://am1p456lon.ppt.alpinexion.com:5383 http://oklahoma.us.oracle.com/www/tests/sandbox/hello.jnlp the application ran fine and console showed all the above properties were set. (using JDK9 b103) so removing 9-test and adding 9-na labels
28-01-2016

EVALUATION regression caused by code put in to prevent buffer overflows. in GetVMArgaOption - if totla options > MAXBUFFER, we skip.
28-08-2008