carookee - group communication for you
Home / JavaForum / Swing + AWT
Infos   |   Features   |   Gold-Edition   |   Kundenservice   
java
  Übersicht
  Forum
Beginner
Java allgemein
JDBC
JNI
Networking
Online-Ressourcen
Swing + AWT
XML
Meckerecke
  Mitglieder
LOGIN





· Passwort vergessen
· Kostenlos anmelden
  Information
  Demo
  Features
  Im Vergleich
  Anmeldung
SUCHE
Beiträge, Foren oder Verfasser finden:
  Kundenservice
  Impressum
  Datenschutz
  AGB
Status
4.389 User online
2 User eingeloggt
 

Beiträge
   Antworten     Neuer Beitrag    

Beitrag 1441 von 1460 (99%) |<   <   >   >|

Autor Jan27
Datum 05.05.06, 09:05
Betreff Java SecurityManager


Hallo zusammen,

mit NetBeans 5.0 habe ich eine grafische Oberfläche erstellt, die ich in ein Applet eingebaut habe, das kompilieren verläuft ohne Probleme, beim erstem Aufruf des Applets bekommen ich folgende Meldung (Fehler-Meldung unten).
Als die Fehlermeldung kommt wird noch kein Java "Element" betätigt (angklickt).

Applet Aufruf in der PHP Seite:
...
<applet code="MyArchiv.MyClasseNr_1.class" archive="MyArchiv.jar,jdom.jar,swing-layout-1.0.jar" codebase="." width="200" height="250">
</applet>
...

Java Plug-in 1.5.0_06, Win XP Prof.

Bevor ich das Applet starte, wird das Applte im NetBeans mit Hilfe von Ant signiert.
Die Archive "jdom.jar" und "swing-layout-1.0.jar" binde ich im NetBeans ein. Die beiden Archive sind auch im Webserver
Verzeichnis wo die PHP Datei sich befindet.
Aus der Meldung geht hervor, dass die grafischen Komponenten, dass Java aufruft entweder kann die "GroupLayout" nicht finden oder darf es nicht verwenden. Der "SecurityManager" bekommt es keine "Daten"?

Wie kann ich den Fehler beheben?
Danke im Voraus.

Grüße Jan27


Fehler-Meldung:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
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.checkMemberAccess(Unknown Source)
at java.lang.Class.checkMemberAccess(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at org.jdesktop.layout.Baseline.isOceanTheme(Baseline.java:811)
at org.jdesktop.layout.Baseline.getComboBoxBaseline(Baseline.java:715)
at org.jdesktop.layout.Baseline.getBaseline(Baseline.java:178)
at org.jdesktop.layout.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:2202)
at org.jdesktop.layout.GroupLayout$BaselineGroup.calculateBaseline(GroupLayout.java:2021)
at org.jdesktop.layout.GroupLayout$BaselineGroup.calculateSize(GroupLayout.java:1997)
at org.jdesktop.layout.GroupLayout$Group.getMinimumSize0(GroupLayout.java:1139)
at org.jdesktop.layout.GroupLayout$ParallelGroup.getMinimumSize0(GroupLayout.java:1892)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1188)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1175)
at org.jdesktop.layout.GroupLayout$Group.getMinimumSize0(GroupLayout.java:1139)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1188)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
at org.jdesktop.layout.GroupLayout$Group.getMinimumSize0(GroupLayout.java:1139)
at org.jdesktop.layout.GroupLayout$ParallelGroup.getMinimumSize0(GroupLayout.java:1892)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1188)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
at org.jdesktop.layout.GroupLayout$Group.getMinimumSize0(GroupLayout.java:1139)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout.resetAutopadding(GroupLayout.java:790)
at org.jdesktop.layout.GroupLayout.prepare(GroupLayout.java:808)
at org.jdesktop.layout.GroupLayout.minimumLayoutSize(GroupLayout.java:658)
at java.awt.Container.minimumSize(Unknown Source)
at java.awt.Container.getMinimumSize(Unknown Source)
at javax.swing.JComponent.getMinimumSize(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.minimumLayoutSize(Unknown Source)
at java.awt.Container.minimumSize(Unknown Source)
at java.awt.Container.getMinimumSize(Unknown Source)
at javax.swing.JComponent.getMinimumSize(Unknown Source)
at org.jdesktop.layout.GroupLayout$ComponentSpring.getMinimumSize1(GroupLayout.java:2118)
at org.jdesktop.layout.GroupLayout$ComponentSpring.getMinimumSize0(GroupLayout.java:2104)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1188)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1172)
at org.jdesktop.layout.GroupLayout$Group.getMinimumSize0(GroupLayout.java:1139)
at org.jdesktop.layout.GroupLayout$ParallelGroup.getMinimumSize0(GroupLayout.java:1892)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1188)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
at org.jdesktop.layout.GroupLayout$Group.getMinimumSize0(GroupLayout.java:1139)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout.resetAutopadding(GroupLayout.java:790)
at org.jdesktop.layout.GroupLayout.prepare(GroupLayout.java:807)
at org.jdesktop.layout.GroupLayout.minimumLayoutSize(GroupLayout.java:658)
at java.awt.Container.minimumSize(Unknown Source)
at java.awt.Container.getMinimumSize(Unknown Source)
at javax.swing.JComponent.getMinimumSize(Unknown Source)
at org.jdesktop.layout.GroupLayout$ComponentSpring.getMinimumSize1(GroupLayout.java:2118)
at org.jdesktop.layout.GroupLayout$ComponentSpring.getMinimumSize0(GroupLayout.java:2104)
at org.jdesktop.layout.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1005)
at org.jdesktop.layout.GroupLayout$ComponentSpring.getPreferredSize0(GroupLayout.java:2125)
at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
at org.jdesktop.layout.GroupLayout$Group.getSize(GroupLayout.java:1190)
at org.jdesktop.layout.GroupLayout$Group.calculateSize(GroupLayout.java:1170)
at org.jdesktop.layout.GroupLayout$Group.getPreferredSize0(GroupLayout.java:1143)
at org.jdesktop.layout.GroupLayout$Spring.getPreferredSize(GroupLayout.java:1015)
at org.jdesktop.layout.GroupLayout$SequentialGroup.setSize0(GroupLayout.java:1501)
at org.jdesktop.layout.GroupLayout$Group.setSize(GroupLayout.java:1128)
at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:681)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at sun.applet.AppletPanel$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)



Diskussionsverlauf:
Java SecurityManager
    Re: Java SecurityManager

 Auf diesen Beitrag antworten
 Neuen Beitrag verfassen


|<   <   >   >|

                                                                                                                                                                                                                           

Impressum  · Datenschutz  · AGB  · Infos  · Presse
Ein modernes Forum: teamturn.com