Solved

2 questions about applet...

Posted on 2002-03-12
3
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Way to decrease size of apk file 9 109
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 77
java mysql insert application 14 46
wild fly 8 startup error 2 42
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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

733 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