Bonjour
j'ai un petit probleme avec les permissions d'accée enfaite j'ai utilisé la méthode : String user = System.getProperty("user.name");
quand je lance mon application sur mon pc en locale ça marche superr bien je récuper le user.name de la session en cours , mais le probleme c'est que quand je me connecte a distance sur ma machine avec un client léger il arrive pas a récupérer le user name il dit apparement qu'il a pas de permission et j'ai cette écxeption là :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 22/10/08 11:52:15.171 - Script Folio1024_010.DisplayName.start() throw java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read) java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read) 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.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at DisplayName.start(DisplayName.java:70) at globalscreen.application.NodeScript.start(Unknown Source) at globalscreen.system.node.ArchiveNode.start(Unknown Source) at globalscreen.plugins.engine.core.NodeComponentAbstract.start(Unknown Source) at globalscreen.plugins.view.NodeComponentView.start(Unknown Source) at globalscreen.system.node.ArchiveNode.start(Unknown Source) at globalscreen.system.kernel.KernelBase.start(Unknown Source) at globalscreen.plugins.view.Kernel2D.start(Unknown Source) at globalscreen.plugins.view.ViewItem.sstart(Unknown Source) at globalscreen.plugins.view.ViewItem.access$1700(Unknown Source) at globalscreen.plugins.view.ViewItem$ViewLoader$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(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)
est ce que y a une instruction qui permet d'attribuer les permission pour la lecture ???
merci pour votre aide .
Partager