Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?


 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sam Lalani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic