Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic


madhu vedhagiri
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 security.Couldn't connect to '' 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<init>(Compiled Code)
at<init>(Compiled Code)
at Code)
at Code)
at 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 Code)
at netscape.applet.DerivedAppletFrame$ Code)

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 package and use the PrivelegeManager class to ask for each action.
This link should help you to use it.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!