Hi all,
When I try to load a vCard from an applet, I get the following Exception :
java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source)
at org.jivesoftware.smackx.packet.VCard.copyFieldsFrom(VCard.java:360)
at org.jivesoftware.smackx.packet.VCard.doLoad(VCard.java:342)
at org.jivesoftware.smackx.packet.VCard.load(VCard.java:309)[/b] at fr.elh.cel.applet.TestApplet.init(TestApplet.java:47)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread “thread applet-fr.elh.cel.applet.TestApplet” java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
It seems to occurs when I try to load the vCard, but it works when I do the same thing using applet-viewer with Eclipse… I cannot understand…
PS: I’'m using Smack build of 20050809
Have you any ideas??
Thanks a lot…
Alex