Solved

2 questions about applet...

Posted on 2002-03-12
3
186 Views
Last Modified: 2010-03-31
Hi Guys,

Question #1
My chat applet throws the following exception when trying to connect to a non-http servlet(servlet that spawn a tcp server thread).

java.security.AccessControlException: access deined (java.net.SockPermission 127.0.0.1:9989 connect, resolve).

Question #2
I ran HTMLConverter to convert my html page on linux server. But when I attempt to load this page throught IE 5 on my client machine, an error message indicated that my existing IE security level does not allows activex to be run on this page.. WHY? I checked my security setting in "Internet Option", executing/downloading activex control option is enabled.


many many thanks.
stephen
0
Comment
Question by:zollen
3 Comments
 
LVL 6

Expert Comment

by:gadio
ID: 6858300
About 1:
It seems that you are tring to run the server and the client on the same machine. The applet security mechanizm may confuse in this situation, and get to the conclusion that you are tring to open a socket to a machine that is not the server - a thing that is forbidden in the applet security model. I noticed that to happen only when you are tring to run the server and the client on the same machine (also - it doesnt happen on all browsers). If you place the server on a different IP I think that it will be resolved (however - remember that the socket can only be opened from the applet to the server).

Regards,
gadio
0
 
LVL 1

Expert Comment

by:gigsvoo
ID: 6859144
2:

i think you should check whether any activex stuff inside the HTML page, should you goto windowsupdate.microsoft.com
to update IE first and try again?
0
 
LVL 9

Accepted Solution

by:
Ovi earned 300 total points
ID: 6859979
1. Keep in mind that the codebase of the applet and the server where you want to connect must be the same, otherwise, you must sign the applet. You can sign using VerySign certificate for example, or for testing (developing) purposes, you can use the tools availlable in your installed JDK (jarsigner, ... and so on). For more details about test signing, you have into your computer in the JDK\docs\tooldocs directory the documentation for usage.
2. HTMLConverter converts the page to be usable in conjunction with the JavaPlug-in. So, check if in your windoze machine you have the plug-in installed and activated, if your version of HTMLConverter match the version of the installed plug-in, and if still does not work, set your browser sequrity to low. Try all this stuff with netscape 4.x too and see the differences.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 77
java  and programming certification ? 4 86
Java and GPO 11 70
Spring Framework HTTPSession management 1 23
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now