Forums Register Login

max-heap-size of greater than 256m causes JWS to restart

+Pie Number of slices to send: Send
If you enable the Java Console, and then start up the following JNLP, the console comes up and the warning comes up about the digital signature cannot be verified. Clicking Run closes the console and the warning, and then the console and the warning come up again. Clicking Run again then starts the program. If you reduce the max-heap-size to 256m or below, you only get asked once. Is there a way to use a max-heap-size of greater than 256m and have the console and the warning come up once only?


+Pie Number of slices to send: Send
Hi, Sam, and welcome to the Ranch!

I have a web-start application with max-heap-size set to 1024m, and even when I turn on the console, the signature warning appears only once. Can you reproduce the issue on another computer?
+Pie Number of slices to send: Send
Sorry, I had missed one line in the JNLP which needs to be there for the warning to appear twice, as long as you do not check the checkbox to "always trust content from this publisher". That one line is the <property> tag, like:

<property name="test" value="test"/>

Also, the <security> tag asking for all-permissions is important for my app. If I delete any one of the three items (max-heap-size, the security tag, or the property tag), the signature warning only appears once. Thanks for looking into this issue, I appreciate it. And yes, I can reproduce the issue on another computer. I can provide the link to the actual JNLP and the app I use but because it requires all permissions I don't think anyone would want to run it, and so I just provide an example. The app that I am using for testing is a very small one that does nothing other than display a frame.

So the whole JNLP is as follows:

When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2124 times.
Similar Threads
find out the variables' value in the jnlp file
FileNotFoundException - Access Denied
Use Eclipse to run JNLP
nothing is displayed after the application is loaded
Displaying Starting Application Progress bar
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:50:54.