[Java lista] AccessControlException

Kristof Jozsa dyn at ond.vein.hu
2006. Okt. 24., K, 13:46:05 CEST


AFAIK nem signed applet nem nyithat socketet csak a sajat hostja fele (ahonnan
letoltottek)

dyn

Schäfer Zoltán wrote:
> Sziasztok!
> 
> Egy kis segítségre lenne szükségem az alábbi Exception-nal kapcs. Egy 
> appletből szerettem volna mail-t küldeni...
> 
> java.security.AccessControlException: access denied 
> (java.net.SocketPermission mail.emszinet.hu resolve)
>     at java.security.AccessControlContext.checkPermission(Unknown Source)
>     at java.security.AccessController.checkPermission(Unknown Source)
>     at java.lang.SecurityManager.checkPermission(Unknown Source)
>     at java.lang.SecurityManager.checkConnect(Unknown Source)
>     at java.net.InetAddress.getAllByName0(Unknown Source)
>     at java.net.InetAddress.getAllByName0(Unknown Source)
>     at java.net.InetAddress.getAllByName(Unknown Source)
>     at java.net.InetAddress.getByName(Unknown Source)
>     at javax.mail.URLName.getHostAddress(URLName.java:473)
>     at javax.mail.URLName.hashCode(URLName.java:449)
>     at java.util.Hashtable.get(Unknown Source)
>     at javax.mail.Session.getPasswordAuthentication(Session.java:811)
>     at javax.mail.Service.connect(Service.java:258)
>     at javax.mail.Service.connect(Service.java:156)
>     at javax.mail.Service.connect(Service.java:105)
>     at javax.mail.Transport.send0(Transport.java:168)
>     at javax.mail.Transport.send(Transport.java:98)
>     at wicky.SendMailUsingAuthentication.postMail(Wicky.java:343)
>     at wicky.SendMailUsingAuthentication.send(Wicky.java:308)
>     at wicky.Wicky.reg(Wicky.java:279)
>     at wicky.Wicky$1.actionPerformed(Wicky.java:106)
>     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
> Source)
>     at java.awt.Component.processMouseEvent(Unknown Source)
>     at javax.swing.JComponent.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(Unknown Source)
>     at java.awt.LightweightDispatcher.dispatchEvent(Unknown 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.pumpOneEventForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.run(Unknown Source)
> 
> _______________________________________________
> Javalist mailing list
> Javalist at javagrund.hu
> http://javagrund.hu/mailman/listinfo/javalist



További információk a(z) Javalist levelezőlistáról