Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 29th, 2004, 02:14 AM
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)


Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
illegal State exception [applet in struts] niket Struts 0 July 29th, 2007 01: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 02:41 AM
socket connection in a .NET Applet slim_naldy General .NET 0 May 25th, 2005 09:04 PM
Socket Programming chinni Pro PHP 1 August 18th, 2003 04:59 PM



All times are GMT -4. The time now is 11:49 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.