Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / August 2003

Tip: Looking for answers? Try searching our database.

Cortona & RMI: security problem?

Thread view: 
NeHE - 08 Aug 2003 10:02 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.