Hello everyone, I'm working on a project using ParallelGraphics
Cortona Client, and I met with a problem I really can't solve.
The issue is: I have a piece of java code linked to a Script node in a
VRML file, and that code must be able to connect to a class via RMI;
that class resides on the same machine the java code resides on, thus
I only need to connect to "locahost".
I first tried with IE5: everything worked fine til it tried to connect
calling Naming.lookup: here the JVM would pop up and give me an
exception; after some tries, I understood the problem was a security
problem, that is the "applet" linked to VRML wasn't granted the
permission to connect; in fact, trying to call
System.getSecurityManager().checkConnect("locahost", 1099) results in
an exception.
So I tried to give the requested permission adding the .java.policy
file in the ${user.home} directory... but it didn't work because (as I
discovered later) IE used its _own_ VM to execute java (I had tried
several Sun JRE without results).
So I changed the java authorization in Tools/Internet
Options/Security/Custom (or something like that), but surprisingly it
didn't work...
Then I tried other browsers, Mozilla 1.4, Opera 7, Netscape 4.7, but
none of them worked: either they wouldn't even load the VRML file,
telling me the header was missing or "unsupported encoding type", or
they would load the file but not the java code, without even giving me
any exception.
I understand from some search on groups.google that: Cortona supports
only Java 1.1. Maybe that's why it didn't work with other browser,
because they were using the Sun Java plug-in, version 1.3 or 1.4.1
Perhaps Cortona's java security is set somewhere else than in IE
internet options? If this is the case, where?
I've been working on this for days, lookin on the net for a solution,
but I couldn't find anything useful... can anyone help me?
Thanx a lot!
Michael Amling - 08 Aug 2003 13:10 GMT
> Hello everyone, I'm working on a project using ParallelGraphics
> Cortona Client, and I met with a problem I really can't solve.
[quoted text clipped - 11 lines]
> System.getSecurityManager().checkConnect("locahost", 1099) results in
> an exception.
You might try "localhost".
--Mike Amling