View Single Post
  #1 (permalink)  
Old June 29th, 2004, 01:14 AM
srinivasreddy srinivasreddy is offline
Registered User
 
Join Date: Jun 2004
Location: Bangkok, Bangkok, Thailand.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Socket Exception in Applet

 I am trying to ping an IP through a GUI in applet.

the Ping an IP works fine with standalone application, but not working with applet. I tried with port no 7, 8080 also, in both the cases, application is working fine, but not applet.

here is the Exception :

java.security.AccessCont********************ception: access denied (java.net.SocketPermission 192.168.0.251:8080 connect,resolve)

    at java.security.AccessControlContext.checkPermission (Unknown Source)

    at java.security.AccessController.checkPermission(Unk nown Source)

    at java.lang.SecurityManager.checkPermission(Unknown Source)

    at java.lang.SecurityManager.checkConnect(Unknown Source)

    at java.net.DatagramSocket.send(Unknown Source)

    at com.opnet.uiforms.config.PingForm.jButtonPing_acti onPerformed(PingForm.java:321)

    at com.opnet.uiforms.config.PingForm$4.actionPerforme d(PingForm.java:237)

    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)

    at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)

    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)

    at java.awt.Component.processMouseEvent(Unknown Source)

    at java.awt.Component.processEvent(Unknown Source)

    at java.awt.Container.processEvent(Unknown Source)

    at java.awt.Component.dispatchEventImpl(Unknown Source)

    at java.awt.Container.dispatchEventImpl(Unknown Source)

    at java.awt.Component.dispatchEvent(Unknown Source)

    at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)

    at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)

    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)

    at java.awt.Container.dispatchEventImpl(Unknown Source)

    at java.awt.Window.dispatchEventImpl(Unknown Source)

    at java.awt.Component.dispatchEvent(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

    at java.awt.Dialog.show(Unknown Source)

    at com.opnet.uilayout.MainWindow.actionPerformed_ping NodeAction(MainWindow.java:350)

    at com.opnet.uilayout.ActionManager$54.actionPerforme d1(ActionManager.java:1083)

    at com.opnet.uilayout.ActionManager$BaseAction.action Performed(ActionManager.java:755)

    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)

    at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)

    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

    at javax.swing.AbstractButton.doClick(Unknown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unk nown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputH andler.mouseReleased(Unknown Source)

    at java.awt.Component.processMouseEvent(Unknown Source)

    at java.awt.Component.processEvent(Unknown Source)

    at java.awt.Container.processEvent(Unknown Source)

    at java.awt.Component.dispatchEventImpl(Unknown Source)

    at java.awt.Container.dispatchEventImpl(Unknown Source)

    at java.awt.Component.dispatchEvent(Unknown Source)

    at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)

    at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)

    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)

    at java.awt.Container.dispatchEventImpl(Unknown Source)

    at java.awt.Component.dispatchEvent(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.run(Unknown Source)