FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux dev 2.6.13-15.13-smp #1 SMP Tue Nov 28 13:43:50 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
I tested this under Windows and Linux and got the same warning.
A DESCRIPTION OF THE PROBLEM :
I have a java web start app that access a server app using RMI.
I don't don't sign my jar, because I stay in the sandbox (My RMI server app in on the same machine as the jnlp file).
Under jdk 1.5 everything was okay.
Under jdk 1.6 (for any platform) I get a warning that 'The application has requested permission to establish connections to localcomputer. Do you want to allow this action?' (where localcomputer is the host name of the client computer)
It doesn't matter whether I click 'OK' or 'Cancel' on this dialog box, my app continues running fine.
The problem is, most of my users will freak out when they see this box.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Since reproducing this takes a bunch of files, I just stuck it on my server so you can take a quick look.
Run app from this URL using jdk 1.5 and then jdk 1.6.
Ignore the error you get after the warning dialog (I don't have the RMI server running).
http://www.donandann.com/hellormi/
Notice the warning under jdk 1.6.
If you want to reproduce this, you can get this entire (small) project, including the jnlp file, here:
http://www.donandann.com/hellormi/docs/HelloRMI.jar
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I don't expect rmi to try to access my client computer's local resources.
ACTUAL -
I get a warning under jdk 1.6 that 'The application has requested permission to establish connections to localcomputer. Do you want to allow this action?'
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No errors
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
http://www.donandann.com/hellormi/docs/HelloRMI.jar
Sorry, but there are a few small source files and a jnlp file required to get this to fail.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
If I dismiss the dialog, everything is okay.