In my application's JNLP file, I specify the PermGenSize in JNLP java-vm-args parameter. After upgrading Java on my MAC to Java7u13, the JNLP fails to launch with java-vm-args params. If I remove the java-vm-args parameter everything works fine.
My java-vm-args parameter is java-vm-args="-XX:MaxPermSize=128m"
Is this a Java 7 issue?. I am able reproduce the above problem in solaris also.
During the failure I see the following exception in trace file:
Log started: Tue, 19 Feb 2013 11:02:41 +0530
java.lang.StringIndexOutOfBoundsException: String index out of range: -8
at java.lang.String.substring(String.java:1911)
at com.sun.deploy.util.Property.<init>(Unknown Source)
at com.sun.deploy.util.Property.createProperty(Unknown Source)
at com.sun.deploy.util.JVMParameters$ArgumentSet.addArgument(Unknown Source)
at com.sun.deploy.util.JVMParameters.addArgumentImpl(Unknown Source)
at com.sun.deploy.util.JVMParameters.parseImpl(Unknown Source)
at com.sun.deploy.util.JVMParameters.parseTrustedOptions(Unknown Source)
at com.sun.javaws.Main.initializeExecutionEnvironment(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
java-vm-args
is specified? – Mauro