[GLASSFISH-18729] set VMARGS=-version cause appclient to fail Created: 14/May/12 Updated: 14/May/12
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
If VMARGS=-version is set, appclient fails with "Error occurred during initialization of VM". It is difficult for a user to find the cause of the problem.
C:\eclipsews\glassfishfeedback\4801\bin>appclient -client .\client\warehouseClient.jar
|Comment by Tim Quinn [ 14/May/12 ]|
While I agree that this is a bug, it seems very minor to me and I have changed the priority accordingly.
The appclient command attempts to emulate the java command as much as possible. In doing so, it passes any non-ACC-specific options through to the java command it generates to actually launch the app client container. The -version option is not an ACC-specific option, as indicated in the documentation and the appclient help and usage output. So this option is passed on to the generated java command.
The help for the java command states that the -version option will display the version and then exit the JVM, without running the program.
Although the way the appclient script behaves now with -version is certainly not good, most users will have no reason to try this.
We might fix this at some point but it is a very low frequency problem and there is an easy workaround - don't specify the -version option!