• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AppletSecurityException

 
madhu vedhagiri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,
I am working in chatting system project. In my project i implemented applet on client side, when we are accessing applet on the Netscape Browser using IP address and host number it is working fine, but when we are accessing using localhost it is displaying following errors. when we are accessing same applet using remote system, it displays same errors.

please help me, what property i want set here etc.
Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
netscape.security.AppletSecurityException: security.Couldn't connect to 'xxx.xxx.x.xx' with origin from 'localhost'.
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at java.lang.SecurityManager.checkConnect(Compiled Code)
at sun.rmi.transport.tcp.TCPEndpoint.<init>(Compiled Code)
at sun.rmi.registry.RegistryHandler.registryStub(Compiled Code)
at java.rmi.registry.LocateRegistry.getRegistry(Compiled Code)
at java.rmi.Naming.getRegistry(Compiled Code)
at java.rmi.Naming.lookup(Compiled Code)
* at ChatClient.connect(Compiled Code)
at ChatClient$InputBoxProcessor.keyPressed(Compiled Code)
at java.awt.Component.processKeyEvent(Compiled Code)
at java.awt.Component.processEvent(Compiled Code)
at java.awt.TextComponent.processEvent(Compiled Code)
at java.awt.TextField.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
bye
meghanadham

------------------
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Madhu,
You are trying to have an applet play outside the sandbox. In order for that to happen you need to request each privelege from the user. You will need the netscape.security package and use the PrivelegeManager class to ask for each action.
This link should help you to use it.
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic