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

Exception while loading CSS in OSGi bundle

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx2.0.2
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Environment:

      OS: Windows 7 x64 SP1
      Java: 1.7.0_09
      JavaFx: bundled

    • Subcomponent:

      Description

      Within an application I run an embedded Apache Felix. The application exported javafx packages so that they can be used by plugins (bundles). Within the Plugins I use fxml to create the Views. Everything is going well.

      As soon as I import a css(in a fxml) that I have stored in the plugin(bundle), the following exception occurs:

      java.io.IOException: Resource does not exist: bundle://6.8:1/view/mystyle.bss
      java.io.IOException: Resource does not exist: bundle://6.8:1/view/mystyle.bss
      at org.apache.felix.framework.URLHandlersBundleURLConnection.<init>(URLHandlersBundleURLConnection.java:136)
      at org.apache.felix.framework.URLHandlersBundleStreamHandler.openConnection(URLHandlersBundleStreamHandler.java:64)
      at java.net.URL.openConnection(URL.java:971)
      at java.net.URL.openStream(URL.java:1037)
      at com.sun.javafx.css.Stylesheet.loadBinary(Stylesheet.java:201)
      at com.sun.javafx.css.StyleManager.loadStylesheetUnPrivileged(StyleManager.java:572)
      at com.sun.javafx.css.StyleManager.loadStylesheet(StyleManager.java:411)
      at com.sun.javafx.css.StyleManager.access$1900(StyleManager.java:72)
      at com.sun.javafx.css.StyleManager$StylesheetContainer.gatherParentStylesheets(StyleManager.java:1140)
      at com.sun.javafx.css.StyleManager$StylesheetContainer.getStyleHelper(StyleManager.java:1225)
      at com.sun.javafx.css.StyleManager$StylesheetContainer.access$1300(StyleManager.java:1031)
      at com.sun.javafx.css.StyleManager.getStyleHelper(StyleManager.java:968)
      at javafx.scene.Node.impl_createStyleHelper(Node.java:7433)
      at javafx.scene.Node.impl_processCSS(Node.java:7403)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
      at javafx.scene.Node.processCSS(Node.java:7383)
      at javafx.scene.Node.processCSS(Node.java:7377)
      at javafx.scene.Scene.doCSSPass(Scene.java:443)
      at javafx.scene.Scene.access$3800(Scene.java:169)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2198)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
      at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
      at java.lang.Thread.run(Thread.java:722)

      The interesting thing is that the CSS is applied anyway.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msladecek Martin Sládeček
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: