We help IT Professionals succeed at work.

running applet via proxy

daniel_sw
daniel_sw asked
on
339 Views
Last Modified: 2010-04-09
I'm using wingate for my internet proxy.
   Currently I have problem to run applet in a web page.
   the error is : applet sharing violation.....

   Need advice.
   thank you.
Comment
Watch Question


Nothing to do with your Proxy.
The applet has run into A Security restriction.

Try the latest Netscape, Or set IE Security to Low.

Author

Commented:
Yes, at least it's going better after I set the security to low.
But still I got error from the remote host.
It told me that there is a firewall that has forbidden my connection to the host, whereas I don't set anything on my wingate configuration.
FYI, I got this error when trying to access www.link.net.id/chat.htm using IE4.0

Author

Commented:
I reopen the question for others,
thanks anyway to idcjavateam.

Commented:
according to name of page you use a chat applet. And your applet use connection.
 It's not a problem but a security-issue. The problem is, that applets may only connect to the host where the loaded from. So if you load a applet from eg. www.test.com and
connect to www.not.com, that's not allowed. The only workaround that's possible if your browser uses JDK1.1.x or higher. You can sign your applet, so that the applet has more features what they can do. For e.g. connecting to a other host.


Author

Commented:
I know Java development kit, but I don't quite understand what you mean with browser that uses jdk 1.1 ? does IE4.0 support it ?


Author

Commented:
question re-open

Commented:
To run applet via proxy you need to use the JDK 1.1.x with
the RMI (Remote Method Invocation) API. (Client/Server architecture).  It's free (because include in the JDK...)

The problem is that IE 4.0 can't use RMI API but Microsoft give
the rmi classes on his web site here :
 http://www.microsoft.com/java/resource/misc.htm
You download the rmi.zip file and unpack it in your directory
"C:\Windows\Java\classes\"

No problem for this with Netscape 4.06

Another solution, is to use CORBA but I'm not sure that is the
best for a chat application...

You have several articles on JavaWolrd Online magazine on chat
application using at the end RMI.
 
  http://www.javaworld.com/javaworld/

Author

Commented:
Well, I have installed the classes into the directory, but it still fails.

Guys, you may have been mistaken about my problem.
I'm not applet developer ! I'm truly a user. When I visit the following site :
www.link.net.id/chat.htm
I was experiencing problem with the (chat) applet resides on that server. This problem occured if I access thru proxy, but it's ok if I access directly thru dial-up.

Author

Commented:
re-open

Commented:
Could it be that the applet opens a different port than the
default http-proxy-poort (usualy 80)
that other port could be blocked by your proxy of firewall
or simply not supported
I had an applet that was doing a telnet-emulation and it wouldend open because port 23 was blocked bij the firewall

Bluemoon
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.