Problem running javafx application in web browser

The application runs fine when i build it in netbeans and run it. but when i try running it in a web browser, it displays a blank square!
the following is the html page that netbeans generated:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>tasklistinbrowser</title>
</head>
<body>
<h1>tasklistinbrowser</h1>
<script src="http://dl.javafx.com/1.3/dtfx.js"></script>
<script>
javafx(
archive: "tasklistinbrowser.jar",
width: 1000,
height: 1000,
code: "tasklistinbrowser.Main",
name: "tasklistinbrowser"
</script>
</body>
</html>does anyone know where i'm going wrong?

I also have a problem when trying to run my application in a browser. (running with netbeans works)
Only a grey shape appears.
But it seems to be a problem with the application itself, because other applications can be run in my browser without any problems.
any ideas? thanks

Similar Messages

  • Problem running JavaFX application as web applet / web start

    Hi All,
    I need to run a JavaFX application as applet in a web page. To do that I use the html page
    generated by javafxpackager and all works fine if I launch the html page locally from my
    pc but when I load the html page from web server the application runs slow till freezing the browser.
    All jars are signed with a self-signed certificate, I've tried with Firefox, Chrome, IE and different servers.
    Same problem with web start (jnlp), locally works fine, launched from web it freezes.
    Enabling Java Console I've noticed a lot of log like:
    basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
    network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
    network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
    basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
    network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
    network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
    What am I doing wrong?
    This is my jnlp (MyApp.jnlp)
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec = "1.0" xmlns:jfx = "http://javafx.com" codebase = "http://www.mysite.com/applet/" href = "MyApp.jnlp">
    <information>
    <title>MyApp</title>
    <vendor>MyApp</vendor>
    <description>Sample JavaFX 2.0 application.</description>
    <homepage href = "http://www.mysite.com/applet/"/>
    <offline-allowed/>
    </information>
    <resources>
    <jfx:javafx-runtime version = "2.2+" href = "http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
    </resources>
    <resources>
    <j2se version = "1.6+" href = "http://java.sun.com/products/autodl/j2se"/>
    <jar href = "MyApp.jar" size = "2836601" download = "eager"/>
    <jar href = "libs/gson-2.2.2.jar" size = "189285" download = "eager"/>
    <jar href = "libs/sun.jar" size = "83743" download = "eager"/>
    </resources>
    <applet-desc width = "1280" height = "1024" main-class = "com.javafx.main.NoJavaFXFallback" name = "MyApp">
    <param name = "requiredFXVersion" value = "2.2+"/>
    </applet-desc>
    <jfx:javafx-desc width = "1280" height = "1024" main-class = "test.App" name = "MyApp"/>
    <update check = "background"/>
    </jnlp>
    and this my html page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>My App</title>
    <script src="http://java.com/js/dtjava.js"></script>
    <script>
    function launchApplication(jnlpfile) {
    dtjava.launch( {
    url : 'MyApp.jnlp'
    javafx : '2.2+'
    return false;
    </script>
    <script>
    function javafxEmbed_fxApplication() {
    dtjava.embed(
    id : 'fxApplication',
    url : 'MyApp.jnlp',
    placeholder : 'MyAppId',
    width : 1280,
    height : 1024
    javafx : '2.2+'
    <!-- Embed FX application into web page once page is loaded -->
    dtjava.addOnloadCallback(javafxEmbed_fxApplication);
    </script>
    </head>
    <body>
              <div id="MyAppId"></div>
    </body>
    </html>
    Thank you

    Some more info,
    I watched the web server logs and I found many repeated log entries like
    "GET /applet/myapplet.html/META-INF/services/javax.xml.stream.XMLInputFactory HTTP/1.1" 404 19023 "-" "Mozilla/4.0 (Windows 7 6.1) Java/1.7.0_09"
    Googling this I've found many posts regarding similar problems:
    http://stackoverflow.com/questions/7997566/web-service-client-applet-keeps-asking-for-meta-inf-services-javax-xml-ws-sp
    http://stackoverflow.com/questions/2340969/applet-served-by-java-web-start-resources-requested-to-web-server-before-look-i
    It seems to be a strange Behaviour of the JNLPClassLoader that tries to load classes from server instead from jar or local class path.
    Somebody suggests to remove all logging entries from code or to add "codebase_lookup = false" to applet parameters but this does not solve the problem.
    I use FXML to define my UI and I think that every time an fxml is loaded JNLPClassLoader tries to load the xml parser (javax.xml.stream.XMLInputFactory)
    from server.
    Somebody have any idea?
    Thank you.

  • Issue in running JavaFX application in web browser

    Our team currently was developing a desktop application which now needs to be run in a web browser. Deployment is successful, but while running it in IE 8, the background color of the IE outside the stage (from the desktop application) is coming in grey color. Our applucation's background color is white, hence, this makes it look odd. The more peculiar thing is when we run the url in IE8, the first page (login page) comes without the grey part, ie the whole window is white colored. But after logout, (the login page should be made visible) only the stage size comes in white and the rest of the window comes in grey background color. Please help in fixing this.

    to answer your questions:
    how to set the browser size according to stage sizeTo resize area reserved for application in a web page you can access web page from inside of your app and use javascript to get a handle of application in the web page DOM and then set size on it as you need.
    See
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIAGHE
    and
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIBFGD
    How to get the handle for browser size here?For embedded application you will get initial Stage in the start() sized to browser allocated area.
    And you can you tip i referenced before to resize app if browser will change allocated area (due to user requests).
    However, i think your real question is different:
    that in the login page the stage size is smaller than the browser size we set while packagingDoes it mean your app pops create login stage first and then populate main stage?
    Then good app behavior is like:
    if (runningEmbedded) { //see tip 2.3.1 in the same guide
    //fill given stage with something - e.g. same background as web page or some image
    popLoginPage();
    //once user logged populate main stage
    populateMainStage();
    And create all assets for all stages in the init(). So in start you will only adding panels to the stages and creating new stages.
    You may need to erase "dummy" content from the main stage before you populate it.
    Hope this helps. If not, please explain what you app is doing in more details. What do you do with stage provided in start, how you create login and other stages.
    What you size your application to and what are stage dimensions.

  • Problem in executing javaFX application in web browser.

    Hi,
      When i execute javafx application in web browser the outcome will not fit to the screen.
       so what modifications i have to make so that it fits to the screen.

    Hi,
    you embed a javafx app like this in your html-file:
    <script>
        function javafxEmbed() {
            dtjava.embed(
                    url : 'ASimpleApp.jnlp',
                    placeholder : 'javafx-app-placeholder',
                    width : 1024,
                    height : 768,
                    jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iUGVyc293YXJlLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPlBlcnNvd2FyZTwvdGl0bGU+DQogICAgPHZlbmRvcj5QTUEgU29sdXRpb25zIEdtYkg8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+U2FtcGxlIEphdmFGWCAyLjAgYXBwbGljYXRpb24uPC9kZXNjcmlwdGlvbj4NCiAgICA8aWNvbiBocmVmPSJmaWxlOnNyYy9kYXRhL2ljb25zL2ljb24uaWNvIiAvPg0KICA8L2luZm9ybWF0aW9uPg0KICA8cmVzb3VyY2VzPg0KICAgIDxqZng6amF2YWZ4LXJ1bnRpbWUgdmVyc2lvbj0iMi4yKyIgaHJlZj0iaHR0cDovL2phdmFkbC5zdW4uY29tL3dlYmFwcHMvZG93bmxvYWQvR2V0RmlsZS9qYXZhZngtbGF0ZXN0L3dpbmRvd3MtaTU4Ni9qYXZhZngyLmpubHAiLz4NCiAgPC9yZXNvdXJjZXM+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iUGVyc293YXJlLmphciIgc2l6ZT0iNTIxODkyNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL0N1c3RvbUNvbnRyb2xzRlguamFyIiBzaXplPSI4NjQ4NyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL2pkb20tMi4wLjUuamFyIiBzaXplPSIzMjE0OTIiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9qZnh0cmFzLWxhYnMtMi4yLXI2LmphciIgc2l6ZT0iMTcwNzM4MyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL2p0ZHMtMS4zLjAuamFyIiBzaXplPSIzMjY4NTQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9wZGZib3gtYXBwLTEuOC4xLmphciIgc2l6ZT0iMTA4MTQyMDQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9zcWxqZGJjNC5qYXIiIHNpemU9IjU4NzIyNyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL3N1cGVyLWNzdi0yLjEuMC5qYXIiIHNpemU9IjEwMjEzNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCjxzZWN1cml0eT4NCiAgPGFsbC1wZXJtaXNzaW9ucy8+DQo8L3NlY3VyaXR5Pg0KICA8YXBwbGV0LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSIyLjIrIi8+DQogIDwvYXBwbGV0LWRlc2M+DQogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0icGVyc293YXJlLk1haW4iICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8Zng6cGFyYW0gbmFtZT0iTmFtZU9mQ29tcGFueSIgdmFsdWU9IlRlc3RDb21wYW55Ii8+DQogIDwvamZ4OmphdmFmeC1kZXNjPg0KICA8dXBkYXRlIGNoZWNrPSJiYWNrZ3JvdW5kIi8+DQo8L2pubHA+DQo='
                    javafx : '2.2+'
        <!-- Embed FX application into web page once page is loaded -->
        dtjava.addOnloadCallback(javafxEmbed);
    </script>
    if you change the values of width and height to '100%', your app will use the hole place of your html site.

  • I'm having problems with JavaFX applications run on raspberry pi!

    I'm having problems with JavaFX applications run on raspberry pi. I did all the steps of the videos of the course: overclocking, uncommented what I had to uncomment about the framebuffer but Exceptions are still happening. The Fireworks demo example does not work. Someone went through this problem? Java applications are ok. As the versions of java in netbeans project and also on "properties" and they are all JDK 8. So if someone can give a hint, I'm very grateful!

    Can you provide the exceptions you got so I can help you better?
    Would you like to do a coaching session for this?
    -Vinicius

  • Requires a microsoft sharepoint foundation-compatible application and web browser

    SharePoint 2010 version 14.0.7102.5000.
    Clients are Windows 7 SP1, Browser is IE 10.0.9200.17296
    Problem is the well known famous message 'requires a microsoft sharepoint foundation-compatible application and web browser' when the user chooses the button New Document.
    Why this behaviour for this user is different then all the threads and blogs I read about this message is because of the  following: I am logged on using my Windows account on my computer (VDI so I have the same computer as the user experiencing the
    message) and don't have this problem. When the concerning user uses my logged on computer under my account and only logs in with his credentials within SharePoint (sign in as Different User) then the problem occures. I performed the same actions on the same
    library as the concerning user.
    So ruled out are:
    - Browser version
    - Office version
    - windows User Profile
    - x86 vs x64
    - MS Foundation Support installation
    - add on SharePoint OpenDocuments Class
    Please help me out.

    Do you have different versions of Office or SharePoint Designer or any Office product installed? 
    You can try repairing office installation in that particular user machine and see what happens.
    Thanks.
    Sorry to say but software versions can be ruled out as I mentioned the user have the same problem when using
    my logged on account in Windows on my computer. Only in the browser the user is logging in with his credentials. I don't have this problem when using this Document Library.

  • Closing an application and web browser at same time at runtime

    Does anyone have any ideas of code that addresses that problem of closes the web browser at runtime when the application closes?
    I've been converted about 140+ forms and 300+ reports to 10g from 6i client/server and I've got all the forms converted but now that I've got it up on a website at runtime, I'm documenting all these application issues that I just haven't had time to research.
    It sounded like I do write some Java Beans, based on some threads I've read. But I didn't fully understand.
    Any help is appreciated.
    Regards,
    Chris

    Ok, I was able to do it when I hard-coded to the http://servername:port in the web.show_document. My question is: I have a windows and Linux (Development and Test server). All 3 are different servers. How can I make it to where I don't have to hard-code the server name. I've put the html page in the ORACLE_HOME/forms/java folder. The application and web browser closes just fine when I hard-code the server name in the web.show_document command. Is there a way I can get around this where I don't have to hard-code the name, but still access it from the same path on all 3 servers?
    web.show_document(http://servername:port/forms/java/closewebbrowser.htm, -self)

  • Problem running java applications on Mac Mini.

    Hi all.
    I have a Mac Mini. Days ago, I started having problems running java applications. Right now, I can not run any java application or even a plugin into a web page.
    I downloaded and reinstalled java from Oracle website, but the problem remains unsolve.
    Anyone can help me?
    Thanks in advance.
    Carlos.

    azofra1 wrote:
    Hi all.
    I have a Mac Mini. Days ago, I started having problems running java applications. Right now, I can not run any java application or even a plugin into a web page.
    What error indications do you get? You have to enable error logging in the Java Control Panel to see the details.

  • Help, how can i run JavaFX as Applet in browse

    can someone please tell me, how can i run JavaFX as Applet in browse
    thanks

    http://jfx.wikia.com/wiki/FAQ#What_is_needed_on_a_machine_to_run_JavaFX_applications.3F

  • Running a Java application from web browser

    Hi,
    I'm not sure if this is the right place to put this, and it probably isn't, but I don't really know what else to do at the moment.
    I have a problem. I've written all these nice and pretty Java applications that do all this complicated junk that makes me proud. However...I have no idea how to actually run those applications.
    I've looked at guides on Java applets, Java Web Start, Java Server Pages, etc, and I still am not sure. JSP looked like the best option, until I figured out I can't use it with my web server. So, I've pretty much hit a wall here.
    If anyone could shed some light on this, I would be very appreciative. All I want is for a certain application to run when a user clicks a button on a simple HTML page. That's all I want...yet it seems so hard.
    Is there a simple way to do this, or do I need to use JWS or something and configure all these JARs and JNLP and classpaths and everything under the sun (no pun intended)?
    Again, I apologize if there is a better forum for this; I am just very confused right now and feel like I've hit a brick wall. If anyone can give me any advice, or point me in a good (easy) direction, I would truly be grateful.

    If anyone could shed some light on this, I would be
    very appreciative. All I want is for a certain
    application to run when a user clicks a button on a
    simple HTML page. That's all I want...yet it seems so
    hard. There's a lot of hidden details that make it so hard. What computer will run the application when the button is clicked? If the application will run on the client computer (within the web browser) there has to be a mechanism for allowing arbitrary code to be downloaded, verified and executed on any number of different target platforms. This is the problem that Java Applets address. Mostly this is a security issue, since a simple HTML page being able to run arbitary code without user interaction or approval is going to cause the world to be overrun by computer virii. There's also the multi-platform issue, but in many cases that can be avoided by requiring the client to use a single platform (the MS approach).
    If the application will run on the server, then the client code is much less difficult, as only a basic web browser is needed, and the server code is complicated, since it needs to keep track of multiple clients at the same time and process data in a request-response fashion.
    From the end-user's point-of-view, it certainly is simple though. Press the button and voila!
    "Any technology which is distinguishable from magic is insufficiently advanced"
    Brian

  • Problem with Acrobat X in web browser

    When I try to open .pdf files or, in this latest case, submit a job application I get the following dialog box:
    'The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser.
    Please exit Adobe Acrobat/Reader and exit your Web Browser and try again.'
    Any clues?

    Thanks for pointing out my errors in communication.
    I am referring to Windows 7.  I have Adobe Acrobat 8.0
    As for using the Adobe Reader forum, the problem is not reading, but the inability to "print" to .pdf, and so this would seem to be the more appropriate forum.  The reference is the Reader is just to communicate the error message I receive.

  • JNLP-run JavaFX application hangs in full screen on Mac

    Hi all,
    I am on Mac OS X 10.9 running JDK 7u45.
    I have the JNLP file below:
    <?xml version='1.0' encoding='UTF-8'?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/jnlpTester">
    <information>
    <title>Title</title>
    <vendor>Vendor</vendor>
    </information>
    <resources><jfx:javafx-runtime version="2.1+"/></resources>
    <resources><jar href="lib/jnlpTester.jar" main="true"/></resources>
    <application-desc main-class="application.JNLPTester"/>
    <security><all-permissions/></security>
    </jnlp>
    The jar file (jnlpTester.jar) contains the following JavaFX application:
    package application;
    import javafx.application.Application;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.ListView;
    import javafx.stage.Stage;
    public class JNLPTester extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) throws Exception {
            Parent root = new ListView<>();
            primaryStage.setTitle("Hello World");
            primaryStage.setScene(new Scene(root, 300, 275));
            primaryStage.show();
    The application starts without any problem (see http://tinypic.com/r/29glonq/5). However, when I click on the full screen icon, the application does not go to full screen and the interface hangs (see http://tinypic.com/r/2mwizk/5). When I run the application from my IDE (eclipse) there is no such problem (see http://tinypic.com/r/2gsleep/5).
    Would anyone have any idea about this?
    Many thanks in advance,
    Hayrettin

    No it's simple, but it's not exactly what you are looking for. What I use this for is just to be able to watch a video like an .avi on my tv while surfing the web or writing a document. I hook up the computer to the tv via HDMI and then set the screens up in extended mode(not mirroring) then just drag the VLC window to the TV screen and choose VLCs full screen once the video has started. The problem is it still acts like one monitor so if you do a desktop or full screen swipe on the MBP both screens swipe resulting in the video missing from the TV. So, as I said not excatly what you want, but works to some extent.

  • CSS Error in running javafx application after move to use jdk8

    Hi all,
    I'm running an javafx app fine with build: jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012 which uses jdk7 perfectly fine on the raspberry pi (which i also keep as backup until newer builds well, are starting to work with my app).
    I'm getting an exception related to CSS (seems to me) when i try to run my javafx app (as well through netbeans on windows xp as through command line on the raspberry pi):
    I've try'd two netbeans versions, the stable 7.3 with jdk 1.8 build 100 and nightly 7.4 with the same jdk 1.8 build. Building goes fine on both these versions.
    The exception is:
    Exception in thread "JavaFX Application Thread"
       java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.rangeCheck(ArrayList.java:638)
       at java.util.ArrayList.get(ArrayList.java:414)
       at com.sun.javafx.css.StyleMap.getCascadingStyles(StyleMap.java:121)
       at javafx.scene.CssStyleHelper.getStyle(CssStyleHelper.java:683)
       at javafx.scene.CssStyleHelper.lookupFont(CssStyleHelper.java:1548)
       at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:460)
       at javafx.scene.Node.impl_processCSS(Node.java:8665)
       at javafx.scene.Parent.impl_processCSS(Parent.java:1192)
       at javafx.scene.Parent.impl_processCSS(Parent.java:1204)
       at javafx.scene.Node.processCSS(Node.java:8575)
       at javafx.scene.Scene.doCSSPass(Scene.java:538)
       at javafx.scene.Scene.preferredSize(Scene.java:1503)
       at javafx.scene.Scene.impl_preferredSize(Scene.java:1570)
       at javafx.stage.Window$9.invalidated(Window.java:733)
       at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
       at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
       at javafx.stage.Window.setShowing(Window.java:799)
       at javafx.stage.Window.show(Window.java:814)
       at javafx.stage.Stage.show(Stage.java:243)
       at pidome.client.PidomeClient$1$1.run(Unknown Source)
       at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:244)
       at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:241)
       at java.security.AccessController.doPrivileged(Native Method)
       at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:241)
       at com.sun.glass.ui.lens.LensApplication$RunnableEvent.dispatch(LensApplication.java:169)
       at com.sun.glass.ui.lens.LensApplication._runLoop(LensApplication.java:756)
       at com.sun.glass.ui.lens.LensApplication.access$700(LensApplication.java:55)
       at com.sun.glass.ui.lens.LensApplication$4.run(LensApplication.java:815)
       at java.lang.Thread.run(Thread.java:724)
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.rangeCheck(ArrayList.java:638)
       at java.util.ArrayList.get(ArrayList.java:414)
       at com.sun.javafx.css.StyleMap.getCascadingStyles(StyleMap.java:121)
       at javafx.scene.CssStyleHelper.getStyle(CssStyleHelper.java:683)
       at javafx.scene.CssStyleHelper.lookupFont(CssStyleHelper.java:1548)
       at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:460)
       at javafx.scene.Node.impl_processCSS(Node.java:8665)
       at javafx.scene.Parent.impl_processCSS(Parent.java:1192)
       at javafx.scene.Parent.impl_processCSS(Parent.java:1204)
       at javafx.scene.Node.processCSS(Node.java:8575)
       at javafx.scene.Node.processCSS(Node.java:8566)
       at javafx.scene.Scene.doCSSPass(Scene.java:538)
       at javafx.scene.Scene.access$3600(Scene.java:189)
       at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2294)
       at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:325)
       at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:533)
       at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:513)
       at com.sun.javafx.tk.quantum.QuantumToolkit$16.run(QuantumToolkit.java:380)
       at com.sun.glass.ui.lens.LensApplication$RunnableEvent.dispatch(LensApplication.java:169)
       at com.sun.glass.ui.lens.LensApplication._runLoop(LensApplication.java:756)
       at com.sun.glass.ui.lens.LensApplication.access$700(LensApplication.java:55)
       at com.sun.glass.ui.lens.LensApplication$4.run(LensApplication.java:815)
       at java.lang.Thread.run(Thread.java:724)
    On line 22 is where i think my problem really begins. This line correspondents to my code on line 14:
        @Override
        public void start(Stage primaryStage) {
            redirectOutputToLog();
            rootStage = primaryStage;
            rootStage.setTitle("PiDome Client");
            rootStage.setFullScreen(true);
            rootStage.initStyle(StageStyle.UNDECORATED);
            ready.addListener(new ChangeListener<Boolean>(){
                @Override
                public void changed(
                    ObservableValue<? extends Boolean> ov, Boolean t, Boolean t1) {
                        if (Boolean.TRUE.equals(t1)) {
                            rootStage.setScene(mainStage.scene());
                            rootStage.show();
            initialize();
    The rest of my main file is as follows (snippet):
    public class PidomeClient extends Application implements NetworkingEventListener,ClientDataConnectionListener,DomoticsEventListener,MainSceneEventListener,PreloaderCredentials {
    MainScene mainStage;
    BooleanProperty ready = new SimpleBooleanProperty(false);
      public void start(Stage primaryStage){
      /* See above snippet */
        public final void initialize(){
            /* code */
            mainStage = new MainScene();
            /* code */
      /* some functions for the listeners added */
        @Override
        public void handleMainSceneEvent(MainSceneEvent event) {
            if(event.getEventType().equals(MainSceneEvent.SCENEBUILDDONE)){
                notifyPreloader(new StateChangeNotification(StateChangeNotification.Type.BEFORE_START));
                ready.setValue(Boolean.TRUE);
    Some code from my MainScene class:
    public final class MainScene {
        Pane root = new Pane();
        Scene appScene = new Scene(root, DisplayConfig.getScreenWidth(), DisplayConfig.getScreenHeight());
        String theme = Theme.getCurrent();
        NotificationBar notBar = new NotificationBar();
        TopBar topBar          = new TopBar();
        MainControl mainControl= new MainControl();
        BottomBar bottomBar    = new BottomBar();
        //Console   console      = new Console();
        SubControl subControl     = new SubControl();  
      public MainScene(){
        public final void createScene(){
            LOG.debug("Screen dimensions: width: {}, height: {}",DisplayConfig.getScreenWidth(), DisplayConfig.getScreenHeight());
            root.getStylesheets().add(theme + "main.css");
            root.getChildren().add(notBar);
            root.getChildren().add(topBar);
            root.getChildren().add(mainControl);
            root.getChildren().add(bottomBar);
            root.getChildren().add(subControl);
            //console.show();
            _fireSceneBuildDone();
        public final Scene scene(){
            return appScene;
        public final void stop(){
            //topBar.stopThreads();
        public synchronized static void addDoneListener(MainSceneEventListener l){
            _listeners.add(l);
        final synchronized void _fireSceneBuildDone(){
            LOG.debug("New event: {}", MainSceneEvent.SCENEBUILDDONE);
            MainSceneEvent serviceEvent = new MainSceneEvent(this, MainSceneEvent.SCENEBUILDDONE);
            Iterator listeners = _listeners.iterator();
            while (listeners.hasNext()) {
                ((MainSceneEventListener) listeners.next()).handleMainSceneEvent(serviceEvent);
    Further explanation:
    The lines 8 until 14 are the children that have they're own CSS files which are included, they do not contain the .root element. This element is only present in the main.css class. As you can see i'm using a preloader which also has it's own CSS but with the .root element, but this one does not contain anything related to fonts. I have try'd a lot of things because i'm thinking i'm in error because i have seen this on the javafx 8 Performance ideas page (https://wiki.openjdk.java.net/display/OpenJFX/Performance+Ideas): "Rather than running CSS at start up, precompute the defaults and initialize FX to have these values.  This should improve start up time." I do not know if this is related. What i've tryed is
    - move the children created in MainScene to another location,
    - Completely discard the preloader (as wel as in netbeans is in the code),
    - Removed everything that was font related out of my css,
    - Removed everything that was font related from my code,
    - Removed the traling slash to the path to the css returned by my function theme.getCurrent(); But then i get the error that the file is not found.
    - Went completely procedural when creating the scene objects and children.
    I posted a recent amount of  code, and, i'm out of options at the moment. So, is there a bug or am i doing something wrong and should i rethink on how CSS is handled in FX 8?
    Best regards,
    John
    Some changes in explanation.
    Message was edited by: JohnMefster

    Well, i found the/a solution for the above:
    I've put all my css in one file, and found some empty declarations like #mainbottomcontainer .content .label { }. I removed these 3 empty declarations and now my app also works in build 101. So i do now think this has to do with the CSS remark posted above. And i do think this is due to setting CSS in the declaration part of a class at startup (like in my MainScene class above), but i'm not sure. But, it is fixed for now.
    John.

  • Getting GTK error while running javaFX application on linux

    I developed an JavaFX application that works fine on Windows. So, I tried to run this same application on Linux (ubuntu x86) and it is not working. I setup all the environment with following this article : http://docs.oracle.com/javafx/2.0/release_notes_linux/jfxpub-release_notes_linux.htm. The Sample JavaFX applications available at http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html work great on Linux. But when I run my application, I got this error:
    java -jar prototipoGui.jar
    Exception in thread "main" java.lang.RuntimeException: Application launch error
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:122)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.UnsatisfiedLinkError: com.sun.glass.ui.gtk.GtkApplication._invokeLater(Ljava/lang/Runnable;)V
    at com.sun.glass.ui.gtk.GtkApplication._invokeLater(Native Method)
    at com.sun.glass.ui.Application.invokeLater(Application.java:336)
    at com.sun.javafx.tk.quantum.QuantumToolkit.defer(QuantumToolkit.java:617)
    at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:138)
    at com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:171)
    at com.sun.javafx.application.PlatformImpl.tkExit(PlatformImpl.java:264)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:417)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
    ... 1 more

    I get the same message, when running my application in stand alone.
    May be there is a problem when running in aa KDE environment.
    But I developed my app in Eclipse under KDE4. If the app is started by IDE it runs.

  • What are the steps required for running a form in web browser in form10g

    Hi All,
    I want to run my form in web i.e forms10g. Please guide me what are the application server, configuation files and built in packages required to set up.
    Thanks

    You have to do some homework before you post here. You're very unlikely to get any help without explaining what you already tried and what your specific problem is. I guess your best of to start reading the Forms Services Deployment Guide.
    I can't point you to the correct location since you didn't even mention the version you're using. If it's 10.1.2.0.2 you can find it at http://download-uk.oracle.com/docs/cd/B14099_19/web.1012/b14032/toc.htm
    Otherwise have a look around at http://docs.oracle.com

Maybe you are looking for

  • How to check if the file already exists in the client directory

    Hi all. I'm on devsuite 10g. I'm using webutil to download files from DB using webutil function db_to_client. What I need is to check if the file already exists in the client directory and if yes to display a message to ask the user if he wants to ov

  • High Def shot material burning as normal dvd?

    Hi all, I'm thinking of buying a new camcorder. Now i was wondering... When i shoot my movie in high definition and use FCE 4 for the montage, can i burn the final movie than as a normal dvd? This i want to do cause i make copies for friends who do n

  • No sound in videos problem!

    Ever since I updated my desktop Mac with Mavericks I have been having ongoing issues with movies I have on my Mac. They were originally downloaded as (.avi) format however with the new Mavericks these videos go through a conversion process turning th

  • Problem with importing images into time lapse

    Hi I am having problems with importing still images into a time lapse sequence in photoshop and would appreciate any suggestions! I want to create a time lapse using a sequence of still photographs.  All file names are sequentially name/numbered.  I

  • Mountain Lion wifi WEP security connection issues

    After installing Mountain Lion I experienced connection issues with my linksys router when waking from sleep. After trying numerous recommended fixes that would only work for a short period of time I have come across a fix that resolved all issues. 1