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
Solved

2 questions about applet...

Posted on 2002-03-12
3
206 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 63
login form jsp example 2 37
collection output issue 9 36
jsp error 6 25
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

839 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