Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 29th, 2004, 01:14 AM
Registered User
 
Join Date: Jun 2004
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)







Similar Threads
Thread Thread Starter Forum Replies Last Post
illegal State exception [applet in struts] niket Struts 0 July 29th, 2007 12:36 PM
need help in applet splashsvp Java Basics 1 March 4th, 2007 08:47 AM
Need help for Socket Program: dpkbahuguna Java Basics 1 May 17th, 2006 01:41 AM
socket connection in a .NET Applet slim_naldy General .NET 0 May 25th, 2005 08:04 PM
Socket Programming chinni Pro PHP 1 August 18th, 2003 03:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.