Hi all,
I’‘ve met a huge problem with copyFieldsFrom() method of VCard class when I’'ve tried to run my applet (signed or not signed) which just do:
…
VCard vCard = new VCard();
try {
vCard.load(currentConnexion); //I’'m sure currentConnexion is ok…
} catch (XMPPException e) {
e.printStackTrace();
}
…
It runs nice with applet-viewer (Eclipse 3.1/jdk 1.5), and I can easily read data from vCard object set from Tomcat 5.5.9 using vCard dtd constraints and dom4J…
But when I try to do exactly the same, (same applet (signed or not)…) calling my applet from <APPLET…> html tag, I’'m getting this harmful error: (stacktrace from java IE console):
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) //fr*.class comes from us…
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Do you think there’'s a solution?
PS: This problem is serious for us, because it kill perspective about using Smack vCard API embedded in java applet client, indeed Smack…
Thanks…
Alex