Problem using SwiXML in applets
[email protected] Mon, 27 Jun 2005 19:29:09 +0100
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <20050627182919.DRLX11226.aamta11-winn.ispmail.ntl.com@plasmic> |
I've just upgraded a project I'm working on to the latest SwiXML and found
it now throws an exception when attempting to render the UI. It looks like
the applet is running in a restricted security manager that is denying the
call to setAccessible in the new code for mapping to private members. In
this case though all my fields are actually public, so there is no need to
call setAccessible, yet SwiXML still does and evidently java doesn't check
whether the setAccessible is doing anything before it throws the security
exception.
Dave
Exception thrown:
* 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.swixml.SwingEngine.mapMembers(Unknown Source)
* at org.swixml.SwingEngine.mapMembers(Unknown Source)
* at org.swixml.SwingEngine.insert(Unknown Source)
* at org.swixml.SwingEngine.insert(Unknown Source)
* at com.blueprintit.xui.UserInterface.buildUI(UserInterface.java:111)
* at com.blueprintit.xui.UserInterface.<init>(UserInterface.java:62)
* at com.blueprintit.webedit.WebEdit.init(WebEdit.java:44)
* at sun.applet.AppletPanel.run(Unknown Source)
* at java.lang.Thread.run(Unknown Source)
--
Mr. Dave Townsend MEng MIEE
Director, Blueprint IT Ltd.
Web: http://www.blueprintit.co.uk <http://www.blueprintit.co.uk/>
Tel: 029 2050 4006
_______________________________________________
Forum mailing list
[email protected]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com