Hi I am getting the SecurityExceptionEx -- error (given below) when I try to execute the applet. (I have given this applet in the trusted site and given all permissions in Internet Explorer.) I would be grateful to get a reply for this since this is very urgent for our project. com.ms.security.SecurityExceptionEx[Mainform/Frm_Main.<init>]: cannot access file C:\WINNT\Java\lib\swing.properties at com/ms/security/permissions/FileIOPermission.check at com/ms/security/PolicyEngine.deepCheck at com/ms/security/PolicyEngine.checkPermission at com/ms/security/StandardSecurityManager.chk at com/ms/security/StandardSecurityManager.checkRead at java/io/FileInputStream.<init> at java/io/FileInputStream.<init> at javax/swing/UIManager$3.run at javax/swing/SwingUtilities.doPrivileged at javax/swing/UIManager.loadSwingProperties at javax/swing/UIManager.initialize at javax/swing/UIManager.maybeInitialize at javax/swing/UIManager.getUI at javax/swing/JPanel.updateUI at javax/swing/JPanel.<init> at javax/swing/JPanel.<init> at javax/swing/JRootPane.createGlassPane at javax/swing/JRootPane.<init> at javax/swing/JApplet.createRootPane at javax/swing/JApplet.<init> at Mainform/Frm_Main.<init> at Integeration.<init> at com/ms/applet/BrowserAppletFrame.newInstance at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run com.ms.security.SecurityExceptionEx[Mainform/Frm_Main.<init>]: Event queue access denied. at com/ms/security/permissions/UIPermission.check at com/ms/security/PolicyEngine.deepCheck at com/ms/security/PolicyEngine.checkPermission at com/ms/security/StandardSecurityManager.chk at com/ms/security/StandardSecurityManager.checkAwtEventQueueAccess at java/awt/Toolkit.getSystemEventQueue at javax/swing/SystemEventQueueUtilities$SystemEventQueue.init at javax/swing/SystemEventQueueUtilities$SystemEventQueue.get at javax/swing/SystemEventQueueUtilities.postRunnable at javax/swing/SwingUtilities.invokeLater at javax/swing/JComponent.revalidate at javax/swing/JLabel.setText at javax/swing/tree/DefaultTreeCellRenderer.getTreeCellRendererComponent at javax/swing/plaf/basic/BasicTreeUI$NodeDimensionsHandler.getNodeDimensions at javax/swing/tree/AbstractLayoutCache.getNodeDimensions at javax/swing/tree/VariableHeightLayoutCache$TreeStateNode.updatePreferredSize at javax/swing/tree/VariableHeightLayoutCache$TreeStateNode.expand at javax/swing/tree/VariableHeightLayoutCache$TreeStateNode.expand at javax/swing/tree/VariableHeightLayoutCache.rebuild at javax/swing/tree/VariableHeightLayoutCache.setModel at javax/swing/plaf/basic/BasicTreeUI.setModel at javax/swing/plaf/basic/BasicTreeUI$PropertyChangeHandler.propertyChange at javax/swing/event/SwingPropertyChangeSupport.firePropertyChange at javax/swing/JComponent.firePropertyChange at javax/swing/JTree.setModel at javax/swing/JTree.<init> at javax/swing/JTree.<init> at Mainform/Frm_Main.<init> at Integeration.<init> at com/ms/applet/BrowserAppletFrame.newInstance at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run Swing: checked access to system event queue. java.lang.IllegalArgumentException: node is not a valid child for this transaction at com/ms/ui/windowmanager/Transaction.checkParent at com/ms/ui/windowmanager/Transaction.insertAfter at com/ms/ui/windowmanager/Node.insertNodeAfter at com/ms/awt/WComponentPeer.create at com/ms/awt/WComponentPeer.<init> at com/ms/awt/WComponentPeer.<init> at com/ms/awt/WCanvasPeer.<init> at com/ms/awt/WToolkit.createCanvas at java/awt/Canvas.addNotify at java/awt/Container.addImpl at javax/swing/JLayeredPane.addImpl at java/awt/Container.add at javax/swing/SystemEventQueueUtilities.addRunnableCanvas at javax/swing/JRootPane.addNotify at java/awt/Container.addNotify at java/awt/Panel.addNotify at Integeration.init at com/ms/applet/AppletPanel.securedCall0 at com/ms/applet/AppletPanel.securedCall at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run URL for Jaguar = iiop://10.236.50.6:9000 ------------------
Did you use a signed CAB file? Have you used custom Java security settings? (Internet Options -> Custom Level -> Microsoft VM -> Java Permissions: Custom -> Java Custom Settings button -> Permissions Given To Unsigned/Signed Content). Do you assert your permissions before attempting the access or use the new(ish) enhanced signed CAB format that is supposed to do away with the need for this? For more information, see Q175622 and Q193877 plus the other documents referenced therein. Microsoft's Java Security page is a useful general starting point for IE and applets. And don't expect any of this to work in a Netscape browser; you'd have to jump through completely different hoops for that. Between them, Microsoft and Netscape and to some extent Sun effectively killed the viability of running applets outside the sandbox in anything but a controlled, intranet-type environment. Have you considered Java WebStart for your project? - Peter [This message has been edited by Peter den Haan (edited December 12, 2001).]
Joined: Dec 11, 2001
This problem was solved. In the trusted site instead of giving http://10.236...., I gave https://10.236.... I gave https because the check box "Require Server Verification............." check box was enabled where as it should not.