Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8110440

java.lang.SecurityException: class "javafx.scene.chart.part.MyTickMark" does not match trust level of other classes in the same package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • fx1.2
    • deploy
    • None
    • JDK6u20
      WinXP sp3 - works,
      Ubuntu 10.04 - does not

      the application by
      http://sfa.westhawk.co.uk/ssc2/ChartInvestigation.html
      cannot start on Mac and Linux because of the following exceptions.
      works well on WinXP


      Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.sun.javafx.runtime.adapter.AppletStartupRoutine.run(Unknown Source)
      at com.sun.javafx.tk.swing.SwingToolkit$StartupRoutine.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      Caused by: java.lang.SecurityException: class "javafx.scene.chart.part.MyTickMark" does not match trust level of other classes in the same package
      at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(CPCallbackHandler.java:482)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(DeployURLClassPath.java:790)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(DeployURLClassPath.java:890)
      at com.sun.deploy.security.DeployURLClassPath.getResource(DeployURLClassPath.java:231)
      at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:796)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:785)
      at sun.plugin2.applet.JNLP2ClassLoader.findClass(JNLP2ClassLoader.java:317)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at uk.co.westhawk.ssc2fx.chart.QosYAxis.addTickMark(QosYAxis.fx:76)
      at uk.co.westhawk.ssc2fx.chart.QosYAxis.updateTickMarks(QosYAxis.fx:60)
      at javafx.scene.chart.part.Axis.dataChanged(Unknown Source)
      at javafx.scene.chart.LineChart.userInit$(Unknown Source)
      at com.sun.javafx.runtime.FXBase.complete$(Unknown Source)
      at uk.co.westhawk.ssc2fx.chart.ChartRunBlock.applyDefaults$(ChartRunBlock.fx:46)
      at com.sun.javafx.runtime.FXBase.applyDefaults$(Unknown Source)
      at uk.co.westhawk.ssc2fx.chart.ChartRunBlock.initialize$(ChartRunBlock.fx:38)
      at uk.co.westhawk.ssc2fx.chart.ChartRunBlock.<init>(ChartRunBlock.fx:38)
      at uk.co.westhawk.ssc2fx.MainStage.<clinit>(MainStage.fx:229)

            kcr Kevin Rushforth
            akaraksi Alexey Karaksin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: